mrghg / agage-archive

Code for producing AGAGE archival files
MIT License
3 stars 0 forks source link

Improved path handling in run script #57

Closed mrghg closed 3 months ago

mrghg commented 3 months ago

Aiming to make it easier to start from a clean repository. A lot of the error checking for paths is suppressed. The output_path functionality is improved, and public/private is now passed to Paths.

This is still a work in progress. The run scripts need to be edited to make use of this new functionality

qq23840 commented 3 months ago

Looks good to me - just added a line to setup the flask path in config.py

lukewestern commented 3 months ago

I'm getting 3 test failures:

============================================ short test summary info ============================================= FAILED tests/test_config.py::test_paths - KeyError: 'output_path_private' FAILED tests/test_config.py::test_output_path - KeyError: 'output_path_private' FAILED tests/test_io.py::test_read_gcwerks_flask - AttributeError: 'Paths' object has no attribute 'gcms_flask_path' ============================= 3 failed, 17 passed, 95 warnings in 180.66s (0:03:00) ==============================

qq23840 commented 3 months ago

I'm not getting these, I think because I've changed my config file and made appropriate directories while testing. Probably worth checking that the config.py sets up the default config file in such a way that these errors don't occur?

lukewestern commented 3 months ago

Good point. I forgot to update the config paths. Tests are passing now