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
Attempting to invoke CellmapsImageDownloader run() method fails because it expects samples and unique keys with values in input_data_dict parameter in constructor
What I Did
imagegen = ImageGeneNodeAttributeGenerator(
unique_list=ImageGeneNodeAttributeGenerator.get_unique_list_from_csvfile(<unique APMS csv file>),
samples_list=ImageGeneNodeAttributeGenerator.get_samples_from_csvfile(<samples APMS csv file>))
CellmapsImageDownloader(outdir='/tmp/foo, imagedownloader=FakeImageDownloader(), imagegen=imagegen, provenance=self._provenance).run()Above outputs:2023-05-19 15:34:27,637 ERROR 950ms cellmaps_pipelinecmd.py::main():157 Caught exception: 'NoneType' object is not subscriptableTraceback (most recent call last): File "/Users/churas/anaconda3/envs/python382/bin/cellmaps_pipelinecmd.py", line 153, in main return CellmapsPipeline(outdir=theargs.outdir, File "/Users/churas/anaconda3/envs/python382/lib/python3.8/site-packages/cellmaps_pipeline/runner.py", line 142, in run exit_status = self._runner.run() File "/Users/churas/anaconda3/envs/python382/lib/python3.8/site-packages/cellmaps_pipeline/runner.py", line 73, in run if self._download_images() != 0: File "/Users/churas/anaconda3/envs/python382/lib/python3.8/site-packages/cellmaps_pipeline/runner.py", line 93, in _download_images return CellmapsImageDownloader(outdir=self._image_dir, File "/Users/churas/anaconda3/envs/python382/lib/python3.8/site-packages/cellmaps_imagedownloader/runner.py", line 606, in run self._register_input_datasets() File "/Users/churas/anaconda3/envs/python382/lib/python3.8/site-packages/cellmaps_imagedownloader/runner.py", line 403, in _register_input_datasets source_file=self._input_data_dict[CellmapsImageDownloader.SAMPLES_FILEKEY],TypeError: 'NoneType' object is not subscriptable
The text was updated successfully, but these errors were encountered:
coleslaw481
changed the title
input_data_dict should NOT be required to run `CellmapsImageDownloader
input_data_dict should NOT be required to run CellmapsImageDownloader
May 19, 2023
The code expected input_data_dict to have the path to the input samples and unique files, but a user could create both without having ever input a file.
To handle this the code will write out the samples and the unique list to the output directory in the case where the input_data_dict lacks needed information and then register those files as input datasets. It would be up to the caller to provide adequate provenance for the samples and unique data to FAIRSCAPE
0.1.0a4
3.8
mac
Description
Attempting to invoke CellmapsImageDownloader run() method fails because it expects
samples
andunique
keys with values ininput_data_dict
parameter in constructorWhat I Did
The text was updated successfully, but these errors were encountered: