Makes a new cache directory where settings and logs can be stored. Currently these files are automatically saved and loaded to the directory with python code and does not belong there.
Also moves the setup_log method from cs_errors.py to cs.py because this way it isn't being constantly re-called when multi-threading reload modules.
You will want to copy your settings.hdf5 file from the python directory to the __project_cache__ directory prior to running cspy on this branch. If you don't, that's fine. You can just load it via the menu and continue running your experiment. Once you have a settings.hdf5 file in the cache, you should delete all hdf5 and log.txt files from the python directory to clean up your repo.
Additionally, I've changed the way these files are referenced so that we can in principle launch cs.py from a directory other than the python directory of this repo. If there are experiment specific relative paths explicitly used elsewhere, you still won't be able to launch from another directory and have it work until those locations are patched as well.
Makes a new cache directory where settings and logs can be stored. Currently these files are automatically saved and loaded to the directory with python code and does not belong there.
Also moves the
setup_log
method fromcs_errors.py
tocs.py
because this way it isn't being constantly re-called when multi-threading reload modules.You will want to copy your
settings.hdf5
file from the python directory to the __project_cache__ directory prior to running cspy on this branch. If you don't, that's fine. You can just load it via the menu and continue running your experiment. Once you have asettings.hdf5
file in the cache, you should delete all hdf5 and log.txt files from the python directory to clean up your repo.Additionally, I've changed the way these files are referenced so that we can in principle launch cs.py from a directory other than the python directory of this repo. If there are experiment specific relative paths explicitly used elsewhere, you still won't be able to launch from another directory and have it work until those locations are patched as well.