I am encountering an error when I am running the latest version of cnmf from the command line. Specifically, when I use the option --skip-completed-runs I get the following error:
Traceback (most recent call last):
File "~/opt/miniconda3/envs/cnmf/lib/python3.11/site-packages/pandas/core/indexes/base.py", line 3790, in get_loc
return self._engine.get_loc(casted_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "index.pyx", line 152, in pandas._libs.index.IndexEngine.get_loc
File "index.pyx", line 181, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 7080, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 7088, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'completed'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "~/opt/miniconda3/envs/cnmf/bin/cnmf", line 8, in <module>
sys.exit(main())
^^^^^^
File "~/opt/miniconda3/envs/cnmf/lib/python3.11/site-packages/cnmf/cnmf.py", line 1212, in main
cnmf_obj.factorize(worker_i=args.worker_index, total_workers=args.total_workers,
File "~/opt/miniconda3/envs/cnmf/lib/python3.11/site-packages/cnmf/cnmf.py", line 666, in factorize
jobs_for_this_worker = worker_filter(run_params.index[run_params['completed']==False],
~~~~~~~~~~^^^^^^^^^^^^^
File "~/opt/miniconda3/envs/cnmf/lib/python3.11/site-packages/pandas/core/frame.py", line 3896, in __getitem__
indexer = self.columns.get_loc(key)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "~/opt/miniconda3/envs/cnmf/lib/python3.11/site-packages/pandas/core/indexes/base.py", line 3797, in get_loc
raise KeyError(key) from err
KeyError: 'completed'
I have previously rerun the "cnmf prepare" step. The factorization step runs without an error if I remove the parameter --skip-completed-runs.
Hi,
Thank you for the amazing tool!
I am encountering an error when I am running the latest version of cnmf from the command line. Specifically, when I use the option
--skip-completed-runsI get the following error:I have previously rerun the "cnmf prepare" step. The factorization step runs without an error if I remove the parameter
--skip-completed-runs.Thank you for your time!