Skip to content

Changes made on the private repo for uncertainties paper#363

Merged
jorindevandevis merged 25 commits intoWall-Go:mainfrom
jorindevandevis:changesApplicationsRepo
Aug 29, 2025
Merged

Changes made on the private repo for uncertainties paper#363
jorindevandevis merged 25 commits intoWall-Go:mainfrom
jorindevandevis:changesApplicationsRepo

Conversation

@jorindevandevis
Copy link
Collaborator

This is a PR for all changes made on a private repository that we used for our upcoming paper investigating the uncertainties in the bubble wall velocity.

@jorindevandevis jorindevandevis requested a review from og113 August 20, 2025 15:57
Truncation update, and printing fixes
og113
og113 previously approved these changes Aug 21, 2025
Copy link
Collaborator

@og113 og113 left a comment

Choose a reason for hiding this comment

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

I have checked that the tests pass locally, and the Model files run as expected locally. I've also compared the files against those in the Applications repo and everything looks as expected.

@pschicho pschicho self-requested a review August 21, 2025 14:24
@benoitlaurent96 benoitlaurent96 self-requested a review August 21, 2025 14:42
import importlib


class ETruncationOption(Enum):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this classname descriptive enough?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I would say TruncationOption is quite descriptive. What is your concern?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this supposed to be TruncationEstimateOption? I was just confused by the "E" in front.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We have used the same convention for other Enums across WallGo, including WallGo.EExtrapolationType, WallGo.ESolutionType and WallGoCollision.EParticleType. I think the convention was introduced by Lauri. I don't think we should consider changing it in this PR.

Copy link
Collaborator

@pschicho pschicho left a comment

Choose a reason for hiding this comment

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

Checked the PR and ran tests and examples. I didn't run examples with new collision integration though.

  • Tests pass
  • Examples did not cause errors
  • Update collisions if needed?

@pschicho
Copy link
Collaborator

For yukawa.py, I get less detailed out put and the following overflow issue:

/Users/schicho/Documents/projects/wallgo/path/to/WallgoVenv/lib/python3.13/site-packages/WallGo/equationOfMotion.py:1585: RuntimeWarning: overflow encountered in cosh
  / np.cosh(z[:, None] / wallParams.widths[None, :] + wallParams.offsets) ** 2
/Users/schicho/Documents/projects/wallgo/path/to/WallgoVenv/lib/python3.13/site-packages/WallGo/equationOfMotion.py:1585: RuntimeWarning: overflow encountered in square
  / np.cosh(z[:, None] / wallParams.widths[None, :] + wallParams.offsets) ** 2

@og113
Copy link
Collaborator

og113 commented Aug 21, 2025

For yukawa.py, I get less detailed out put and the following overflow issue:

/Users/schicho/Documents/projects/wallgo/path/to/WallgoVenv/lib/python3.13/site-packages/WallGo/equationOfMotion.py:1585: RuntimeWarning: overflow encountered in cosh
  / np.cosh(z[:, None] / wallParams.widths[None, :] + wallParams.offsets) ** 2
/Users/schicho/Documents/projects/wallgo/path/to/WallgoVenv/lib/python3.13/site-packages/WallGo/equationOfMotion.py:1585: RuntimeWarning: overflow encountered in square
  / np.cosh(z[:, None] / wallParams.widths[None, :] + wallParams.offsets) ** 2

See Issue #364. The less detailed output is because the logging level is higher.

Copy link
Collaborator

@benoitlaurent96 benoitlaurent96 left a comment

Choose a reason for hiding this comment

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

I haven't had the time to review all the files changed, but everything seems to work as intended locally. Great job everybody!

Ignoring overflow warnings where we think they are benign
@og113
Copy link
Collaborator

og113 commented Aug 26, 2025

For yukawa.py, I get less detailed out put and the following overflow issue:

/Users/schicho/Documents/projects/wallgo/path/to/WallgoVenv/lib/python3.13/site-packages/WallGo/equationOfMotion.py:1585: RuntimeWarning: overflow encountered in cosh
  / np.cosh(z[:, None] / wallParams.widths[None, :] + wallParams.offsets) ** 2
/Users/schicho/Documents/projects/wallgo/path/to/WallgoVenv/lib/python3.13/site-packages/WallGo/equationOfMotion.py:1585: RuntimeWarning: overflow encountered in square
  / np.cosh(z[:, None] / wallParams.widths[None, :] + wallParams.offsets) ** 2

This is fixed in d9bcbf3

@jorindevandevis
Copy link
Collaborator Author

I think everything has been addressed now. There is just one open question from Philipp about the name ETruncationOption.
I don't know the answer, I assumed it was standard naming for Enums?

Added ESolutionType from results, as it is already a type which is exposed to the user.
Copy link
Collaborator

@pschicho pschicho left a comment

Choose a reason for hiding this comment

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

All comments resolved. I think, we can merge now.

@jorindevandevis jorindevandevis merged commit 7a8cc1d into Wall-Go:main Aug 29, 2025
6 checks passed
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.

5 participants