NSLS-II / PyXRF

Fluorescence fitting GUI.
http://nsls-ii.github.io/PyXRF
BSD 3-Clause "New" or "Revised" License
31 stars 23 forks source link

Use host name to identify beamline #250

Closed dmgav closed 3 years ago

dmgav commented 3 years ago

Use host name to identify beamline if there is no /etc/pyxrf/pyxrf.json file. If json file exists, then it is still takes precedence. The approach is identical to the one taken in ptycho-gui.

mrakitin commented 3 years ago

I am using the /etc/n2sn_tools.yml file (that should be deployed to every BL) to identify the current beamline, e.g.:

...
common:
  default_instrument: srx
...
dmgav commented 3 years ago

@mrakitin Interesting. I will think how to implement unified approach that could be used in all 3 packages. I am not sure what would be the best way to use it if someone wants to use Data Broker on a local computer. There could be an option to use /etc/pyxrf/pyxrf.yaml, then n2sn_tools.yaml and then host name. For now I will just merge this PR. It seems to satisfy immediate needs.