-
Notifications
You must be signed in to change notification settings - Fork 0
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
[NERSC] Add DESC product #66
Comments
Hi @Catarina-Alves Thank you for reaching out about snmachine. This looks like a request to add |
Thank you, I look forward to it. |
Hi @heather999, I just wanted to follow up on this. |
Hi @Catarina-Alves I'm really hoping to have snmachine in desc-python this week and certainly before September. Once I have it included - can you recommend an easy way to test it? I suspect it'll be fine, but having some way to confirm that it's working properly would be helpful. I'll let you know as soon as it is available! |
Thank you. |
HI @Catarina-Alves I made an initial test of installing |
Hi @heather999, thank you, I tried to fix the issue. |
Hi @Catarina-Alves Thank you - that's a start, I'm not sure this is a list of what |
Thank you @heather999. Regarding the second part of your answer. I will tag and upload to pypi after solving this issue. |
Hi @Catarina-Alves I'm going to make some suggestions on your open |
Hi @Catarina-Alves |
Hi @heather999 I just wanted to know if you found any issues, or if snmachine was able to be integrated into desc-python (thus closing this issue and issue LSSTDESC/snmachine#255). |
hi @Catarina-Alves Sorry for the delay! I haven't found any issues. I'm working to get a new version of desc-python out, first as |
Thank you. I am glad that there were no issues |
@Catarina-Alves sorry for the long delay! There is now a new |
Hi @heather999, thank you. |
Hi @Catarina-Alves Here is snmachine in
and here is
so both packages are "top-level". I do think that utils could be made a subpackage of snmachine, which might make more sense. For now I think this works, but it could be something to think about for an upcoming release. You're right the example notebooks are not included in the PyPI distribution. I'm curious what others think but I would rather users copy the notebooks from github. Pinging more knowledgeable folks than I for their opinions @beckermr & @rmjarvis. |
No comment here on the notebooks but naming your python project |
I thought everything would be included in |
I am confused with what is desirable to include when packaging a library. At the moment the |
All good questions!
|
furthermore conda/pip installation typically install stuff away from the user work directory (under a virtual env directory in .local or under the conda distrib etc...) so quickly it becomes impractical to leave them there. Likewise for tests actually, though I understand the point of having them around..... one can actually pytest on them, but one has to find them and likely chdir first (running tests can also suppose a certain way to preload the packages/module that may be different than the install final system if I am not mistaken). |
|
Hi @Catarina-Alves Great! |
Hi @heather999, yes, it seems great. Thank you |
HI @Catarina-Alves There is also a new jupyter kernel for this environment available named The next time you start up a fresh jupyter.nersc.gov, the desc-td-env should be one of the available kernels. We're hoping to make this new td_env the "stable" TD environment in the next two weeks - so please give it a try and let me know if you have trouble or success! |
Hi @heather999, I find a problem when I import the modules |
Thank you @Catarina-Alves |
Hi @Catarina-Alves |
I updated the environment but I now find a strange problem. When I run |
Hi @Catarina-Alves I do see the same error and I traced it back to this pymultinest has an optional dependency on mpi4py, it doesn't absolutely need it to run, and the code is written to check if importing mpi4py works, and if it doesn't, then the mpi4py features are just not available. In this case at NERSC, the attempt to import mpi4py results in a fatal error which the exception handling in pymultinest doesn't catch. I have some ideas about how to deal with this.. hope to know more in the morning. |
I do not use |
I've opened an issue on pymultinest: JohannesBuchner/PyMultiNest#209 with one potential way to work around this. |
@Catarina-Alves I have a work-around in place that prevents MPI from being used if we run python from a login node or jupyter session, but allows MPI if we're on a batch/compute node. I'm now able to successfully execute: |
Seems all right now, thanks |
This issue is stale because it has been 90 days since last activity. |
Description
I would like to add the DESC product snmachine to NERSC so anyone could use it in their analysis. What should I do it include it there?
Choose all applicable topics by placing an 'X' between the [ ]:
The text was updated successfully, but these errors were encountered: