Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update run_fitburst -> fitburst_example_generic #59

Open
DanielaBreitman opened this issue Apr 6, 2022 · 2 comments
Open

Update run_fitburst -> fitburst_example_generic #59

DanielaBreitman opened this issue Apr 6, 2022 · 2 comments
Assignees
Labels
Baseband Related to integrating Fitburst into baseband enhancement New feature or request

Comments

@DanielaBreitman
Copy link
Contributor

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

@ketansand ketansand added enhancement New feature or request Baseband Related to integrating Fitburst into baseband labels Apr 6, 2022
@emmanuelfonseca
Copy link
Collaborator

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
Copy link
Contributor Author

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')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Baseband Related to integrating Fitburst into baseband enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants