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

Merge escape2 branch to master #140

Merged
merged 19 commits into from
Aug 22, 2024
Merged

Merge escape2 branch to master #140

merged 19 commits into from
Aug 22, 2024

Conversation

EmmaPostolec
Copy link
Contributor

Hi, I would like to merge the escape2 branch to master. The difference with the master branch is a change for 2 variables (Fxuv_star_SI_full and age_star_mors) in utils/escape.py to global variables to avoid loading the entire Mors Fxuv track at each iteration. I also modified the configuration files a bit to make them consistent for comparison (dummy2.cfg and escape.cfg.) I deleted all the new files/folders created to validate the escape calculations in PROTEUS and I put them in my private repository, as discussed in the last meeting.

tools/GridPROTEUS.py Outdated Show resolved Hide resolved
start_proteus.py Outdated
@@ -462,8 +462,8 @@ def main():
solvevol_target[e] = esc_m

# print info to user
log.debug(" escape %s: m=%.2e kg, dm=%.2e (%.3f%%)"%
(e, esc_m, esc_dm, 100*esc_dm/esc_m))
#log.debug(" escape %s: m=%.2e kg, dm=%.2e (%.3f%%)"%
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two lines could remain uncommented.

Copy link
Collaborator

@timlichtenberg timlichtenberg Aug 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue here was that this line lead to a runtime error when remaining in. Can you confirm this @lsoucasse?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree but I did it because otherwise I got an error when running start_porteus.py which stopped the simulation completely. I can't run a new simulation right now because my PROTEUS version is having some conflict with the merging process I guess.

input/t1c.cfg Outdated Show resolved Hide resolved
input/dummy.cfg Outdated Show resolved Hide resolved
input/escape.cfg Outdated Show resolved Hide resolved
input/dummy2.cfg Outdated Show resolved Hide resolved
Copy link
Member

@lsoucasse lsoucasse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @EmmaPostolec, the escape.py file looks good. However, it seems to me there are some unvoluntary changes in the config files, because there is a lot of renaming and/or deletion. Could you answer my comments to confirm what you want to modify or not? I can take care of reverting the files accordingly. Thanks.

lsoucasse
lsoucasse previously approved these changes Aug 21, 2024
@lsoucasse
Copy link
Member

Hi @EmmaPostolec, I reverted some additional changes and I think we are ready now. As I did the last commit, we did an external reviewer to finally approve and merge, could you do that @timlichtenberg?

@EmmaPostolec
Copy link
Contributor Author

Hi Laurent, thanks a lot for all of your comments and your help on this :)

timlichtenberg
timlichtenberg previously approved these changes Aug 21, 2024
Copy link
Collaborator

@timlichtenberg timlichtenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but I am unsure if the comment in start_proteus.py will crash the simulation.

@EmmaPostolec
Copy link
Contributor Author

Ok, should I still merge it now despite the commented part in start_proteus.py @timlichtenberg ?

@lsoucasse
Copy link
Member

Ok, should I still merge it now despite the commented part in start_proteus.py @timlichtenberg ?

If it crashes the simulation the lines should be deleted, not commented. Sorry I did not understand why it was commented.

@EmmaPostolec
Copy link
Contributor Author

Ok, should I still merge it now despite the commented part in start_proteus.py @timlichtenberg ?

If it crashes the simulation the lines should be deleted, not commented. Sorry I did not understand why it was commented.

Lines 501 and 502 in start_proteus.py : log.debug(" escape %s: m=%.2e kg, dm=%.2e (%.3f%%)"%
(e, esc_m, esc_dm, 100*esc_dm/esc_m))
were commented in my previous version of start_proteus.py in my escape2 branch. I commented it out because it was crashing the simulation. In the current version of start_proteus.py in escape2 and master, these 2 lines are no longer commented and can cause a crash when running a simulation.

@lsoucasse lsoucasse dismissed stale reviews from timlichtenberg and themself via 2d23c35 August 21, 2024 16:08
@lsoucasse
Copy link
Member

lsoucasse commented Aug 21, 2024

Deleted the bugging lines. But it needs new approval @timlichtenberg.

@EmmaPostolec
Copy link
Contributor Author

Hi @timlichtenberg and @lsoucasse should I do a squash and merge now ? :)

@timlichtenberg
Copy link
Collaborator

Yes, "Squash and merge" using the arrow on the green "Merge pull request" button. :)

@EmmaPostolec EmmaPostolec merged commit b001481 into master Aug 22, 2024
2 checks passed
@EmmaPostolec EmmaPostolec deleted the escape2 branch August 22, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants