Skip to content

mtholyoke/specx

 
 

Repository files navigation

specx

Mossbauer Spectrum Explorer using Flask

Server environment

www-data or another nonprivileged user should own all the files in a clone of this repo. That user should install dependencies using

pip3 install -r requirements.txt

Most config options are set by copying config-sample.yml (which shows default values) to config.yml and uncommenting anything that needs to be changed.

load_mossbauer.py is currently hardcoded to run out of /opt/specx but that’s easily changed in a local copy. Specifically, /opt/specx/data_Moss/ should contain mlogbook.xlsx and a subdirectory data/ with data files in it. This will be moved to a config option in a future version.

Logging expects the file /var/log/specx to be writable and owned by www-data. This also should be moved to a config option.

Production at MHC

The app runs as a systemd service on its default port of 51515 behind a reverse proxy.

data_Moss/ is NFS mounted by the data store to receive nightly updates.

TODO

  • Replace xlrd with openpyxl
  • Make data and logging paths configurable
  • Remove dependence on jQuery
  • Get the dev environment working and documented

Releases

No releases published

Packages

No packages published

Languages

  • Python 41.5%
  • HTML 36.8%
  • CSS 21.7%