You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ods_tools check --account PF1_acc.parquet --location PF1_loc_CAFL.csv
Traceback (most recent call last):
File "/home/sam/repos/venv/3py/bin/ods_tools", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/ods_tools/main.py", line 135, in main
command_action[kwargs.pop('command')](** kwargs)
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/ods_tools/main.py", line 49, in check
oed_exposure.check()
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/ods_tools/oed/exposure.py", line 230, in check
validator = Validator(self)
^^^^^^^^^^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/ods_tools/oed/validator.py", line 28, in __init__
self.column_to_field_maps[oed_source] = oed_source.get_column_to_field()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/ods_tools/oed/source.py", line 390, in get_column_to_field
self.dataframe.columns,
^^^^^^^^^^^^^^
File "/usr/lib/python3.11/functools.py", line 1001, in __get__
val = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/ods_tools/oed/source.py", line 360, in dataframe
df = self.load_dataframe()
^^^^^^^^^^^^^^^^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/ods_tools/oed/source.py", line 416, in load_dataframe
oed_df = self.as_oed_type(oed_df, column_to_field)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/ods_tools/oed/source.py", line 314, in as_oed_type
oed_df.loc[oed_df[column].isin(BLANK_VALUES), column] = ''
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/pandas/core/indexing.py", line 849, in __setitem__
iloc._setitem_with_indexer(indexer, value, self.name)
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/pandas/core/indexing.py", line 1835, in _setitem_with_indexer
self._setitem_with_indexer_split_path(indexer, value, name)
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/pandas/core/indexing.py", line 1928, in _setitem_with_indexer_split_path
self._setitem_single_column(loc, value, pi)
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/pandas/core/indexing.py", line 2034, in _setitem_single_column
self.obj._mgr.column_setitem(loc, plane_indexer, value)
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/pandas/core/internals/managers.py", line 1384, in column_setitem
new_mgr = col_mgr.setitem((idx,), value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/pandas/core/internals/managers.py", line 394, in setitem
return self.apply("setitem", indexer=indexer, value=value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/pandas/core/internals/managers.py", line 352, in apply
applied = getattr(b, f)(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/pandas/core/internals/blocks.py", line 1622, in setitem
values[indexer] = value
~~~~~~^^^^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/pandas/core/arrays/_mixins.py", line 250, in __setitem__
self._ndarray[key] = value
~~~~~~~~~~~~~^^^^^
ValueError: assignment destination is read-only
Steps to Reproduce (Bugs only)
$ git clone [email protected]:OasisLMF/OasisAzureModels.git
$ cd OasisAzureModels/test_data
$ ods_tools check --account PF1_acc.csv --location PF1_loc_CAFL.csv
(passes validation)$ ods_tools convert --account PF1_acc.csv -c parquet --output-dir .
(works) creating a new file PF1_acc.parquet$ ods_tools check --account PF1_acc.parquet --location PF1_loc_CAFL.csv
(fails with trace below)Version / Environment information
ods_tools==3.1.0
Example data / logs
File seems to load ok (outside of ods_tools)
The text was updated successfully, but these errors were encountered: