nathanieljevans / cyclicIF_registration

Registration pipeline for cyclic immuno-fluorescence.
MIT License
0 stars 0 forks source link

only use local config file in both pipeline (local) and libraries/scripts (repo) #22

Open nathanieljevans opened 4 years ago

nathanieljevans commented 4 years ago

Right now, config.py is imported from the .../lib/. folder, which cannot be maintained/documented through multiple experiments (if they require non-default parameters). What we need is to use the local config file even in repo-located libraries/scripts.

The best way I can think to do this is to create a config class that acts as the namespace, and which we can pass to any methods that need it. This way, we remove the import config.py in each lib and be certain that config parameters are coming through the local config.py file.

[file (location)]

some_script (local) -> loads config.py and creates config class. some_script (local) -> imports library (repo) some_script (local) -> calls function from library (repo) and passes the function a copy ofconfig` class.