Open DanielaBreitman opened 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
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')
To do this, we just need to change how we run fitburst from the notebook i.e. pass a command using os.