CHIMEFRB / fitburst

An open-source package of utilities for direct modeling of radio dynamic spectra.
https://chimefrb.github.io/fitburst/
MIT License
11 stars 2 forks source link

Update run_fitburst -> fitburst_example_generic #59

Open DanielaBreitman opened 2 years ago

DanielaBreitman commented 2 years ago

To do this, we just need to change how we run fitburst from the notebook i.e. pass a command using os.

emmanuelfonseca commented 2 years ago

there's apparently a way to turn python source code into a notebook, check out the answer to this stack overflow issue: https://stackoverflow.com/questions/62510114/converting-from-py-to-ipynb

DanielaBreitman commented 2 years ago

Oh, we don't need to turn it into a notebook. We just need to run it as a bash command from the notebook. For example: import os

os.system('python /data/user-data/efonseca/code/fitburst/fitburst/pipelines/fitburst_example_generic.py /data/user-data/danielabreitman/Baseband/fitburst_195718715.npz --width 0.00022 --arrival_time 0.00358 --amplitude 1.0 --verbose')