rosalindfranklininstitute / parakeet

Phantom generator
GNU General Public License v3.0
18 stars 5 forks source link

Exporting metadata to specified directory broken due to unpassed arguments #48

Closed JatGreer closed 1 year ago

JatGreer commented 1 year ago

In file src/parakeet/metadata.py, the arguments --directory and --relion are not passed from function export() to functionexport_Config()`.

Single line fix of line 283 from return _export_Config(config, sample) to return _export_Config(config, sample, directory, relion) should fix this.

Test via parakeet.metadata.export -c config.yaml -s sample.h5 --directory new_dir --relion True or similar. Metadata output should now be created in directory new_dir/relion instead of relion