-
Notifications
You must be signed in to change notification settings - Fork 26
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
Short comment on A.1 #10
Comments
(Without looking at the code) could a solution be:
|
I have tested this and I think this code doesn't work: AFAIK it's shell and ipython doesn't allow this. With ipython you can do something like There is a pure python solution: import pathlib, shutil
env_path = pathlib.Path(shutil.which("lalinference_nest")).parent.parent A bit verbose. I have looked a bit at the code: |
I implemented the approach described above in branch which_which. AFAIK, the generated bash file ( |
If nobody is opposed, I will merge this. @ElBardo99, @agoodmanjerry, any comment ? |
My only suggestion would be that of adding:
- nodefaults
in channels in the environment.yml, just to speed up installation (not necessary, anyway).
All good IMO,
Giuseppe
Inviato da Outlook per Android<https://aka.ms/AAb9ysg>
…________________________________
From: Mathieu Dubois ***@***.***>
Sent: Tuesday, April 16, 2024 10:06:19 AM
To: gw-odw/odw-2024 ***@***.***>
Cc: ElBardo99 ***@***.***>; Mention ***@***.***>
Subject: Re: [gw-odw/odw-2024] Short comment on A.1 (Issue #10)
I implemented the approach described above in branch which_which<https://github.com/gw-odw/odw-2024/tree/which_which>.
If nobody is opposed, I will merge this. @ElBardo99<https://github.com/ElBardo99>, @agoodmanjerry<https://github.com/agoodmanjerry>, any comment ?
—
Reply to this email directly, view it on GitHub<#10 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BH24FWFJMD2O4CFFLX5YIVDY5TLXXAVCNFSM6AAAAABGHP7Z62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJYGQ4DMNBRGY>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I think you are talking about the other issue (updating the environment), right ? |
My God, sorry. I misread the subject of the mail.
BTW, seems all good on the A.1 issue, as far as I can see ( on smartphone now).
Sorry again,
Giuseppe
Inviato da Outlook per Android<https://aka.ms/AAb9ysg>
…________________________________
From: Mathieu Dubois ***@***.***>
Sent: Tuesday, April 16, 2024 10:14:40 AM
To: gw-odw/odw-2024 ***@***.***>
Cc: ElBardo99 ***@***.***>; Mention ***@***.***>
Subject: Re: [gw-odw/odw-2024] Short comment on A.1 (Issue #10)
My only suggestion would be that of adding: - nodefaults in channels in the environment.yml, just to speed up installation (not necessary, anyway).
I think you are talking about the other issue (updating the environment), right ?
—
Reply to this email directly, view it on GitHub<#10 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BH24FWBVISPDSXYCQN46KVDY5TMXBAVCNFSM6AAAAABGHP7Z62VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJYGUYDGOBQG4>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I will add |
OK, I have merged the branch (see #11). |
Hello @duboism , I've just tested the
and it still causes an error, namely because of a missed "/" at the end. This one works without changing other cells:
|
You're right, I haven't tested the whole notebook based on this approach. However, it's no longer necessary after #11. |
Here are my thought on the other problem you raised (re-running the notebook fails because some files are left):
Therefore, I propose a middle ground: we check if the directory exists before trying to create it; if so, we stop with the clearest (possible) error message, inviting people to save valuable data and delete the folder (and maybe providing a simple commented-out line to do that). |
Tutorial A.1 fetches data creating a new directory
If the whole tutorial is not completed within the same session, future sessions show an error at:
However, this error is harmless, since one can go on to the next cell and complete the tutorial. However, even if now the tutorial is completed, the error is displayed for future sessions. Only solution at this point is ''' rm -rf tuto_A.1 ''' from shell. People using the tutorials should be aware of this.
Moreover, it is not clearly explained how to deal with (pasting here the original, unmodified version):
In fact
! which lalinference_nest
gives:/path/you/actually/need/bin/lalinference_nest
, and one should have:env_path = /path/you/actually/need/
. To new users, it is not 100% clear this is actually what the code needs to work IMO.The text was updated successfully, but these errors were encountered: