Closed gfabbris closed 2 weeks ago
After running the setup, the ipython session will move to that folder.
What about log files.
After running the setup, the ipython session will move to that folder.
What about log files.
Good point. What do you think about saving all logs to the same folder? I can see the advantage of getting the logs to the "appropriate" folder, but at the same time I think the users will rarely use it.
You can save all the log files to a specific directory by configuring the logging to use an absolute directory address instead of a relative address. In the newer ms_model_instrument
, there are two configuration items (logger and IPython In/Out).
The older configuration used one directory in the iconfig.yml
file.
These log file locations are configured only at startup of each session. Since you are changing the user's present working directory, a single directory might work better for you. You would not have to restart logging each time the PWD is changed.
experiment
class that will hold the experiment information.experiment.base_experiment_path
andexperiment.file_base_name
, as the scans will raise an error if these are not setup.setup_experiment()
and follow the prompts, or pass the information as keyword arguments.change_sample
to change to a new sample.