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

notebooks\devs\toy-strain-model.ipynb #113

Open
Florent566 opened this issue Jun 7, 2024 · 2 comments
Open

notebooks\devs\toy-strain-model.ipynb #113

Florent566 opened this issue Jun 7, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@Florent566
Copy link

In the notebooks\devs\toy-strain-model.ipynb, "import holodeck.evolution" and "import holodeck.population" weren't working, so I replaced them with "import holodeck.discrete.evolution" and "import holodeck.discrete.population". Maybe the directory was changed? "import zcode.math" is also not working, but I don't know what to change it by.

@lzkelley
Copy link
Member

lzkelley commented Jun 7, 2024

Thanks for pointing this out. This notebook is very old and almost completely deprecated. (Much of the materials in the notebooks/devs subfolder are deprecated/defuct in some way.) That being said: the two zmath methods that are being used are (1) random_power (which can also be found in holodeck.utils), and (2) spacing -- and this one can be replaced by np.logspace(*np.log10(masses), NBINS+1). Let me know if there are particular components from this notebook that would be helpful for you!

@lzkelley lzkelley self-assigned this Jun 7, 2024
@lzkelley lzkelley added the question Further information is requested label Jun 7, 2024
@Florent566
Copy link
Author

Okay thank you! No worries, I was just wondering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants