APS-4ID-POLAR / polar_instrument

Bluesky setup for the POLAR beamline
0 stars 0 forks source link

Create the experiment class and move all scans to have HDF5 files saved #37

Closed gfabbris closed 2 weeks ago

gfabbris commented 2 weeks ago
prjemian commented 2 weeks ago

After running the setup, the ipython session will move to that folder.

What about log files.

gfabbris commented 2 weeks ago

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.

prjemian commented 2 weeks ago

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.