Skip to content

add integrability filter#29

Open
vschutze-alt wants to merge 7 commits into
mainfrom
integrability
Open

add integrability filter#29
vschutze-alt wants to merge 7 commits into
mainfrom
integrability

Conversation

@vschutze-alt

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread wmin/basis.py Outdated
Comment thread wmin/basis.py Outdated
Comment thread wmin/basis.py
Comment thread wmin/basis.py Outdated
Comment on lines +125 to +127
mask = (
np.abs(v_grid[:, :20].sum(axis=1)) <= integrability_threshold
) # Sum first 20 x-points

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

20 is a number that we might want to not keep hardcoded? If we want to keep it hardcoded, instead, then it needs explaining (eg 1e-7 ...)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think it should be hardcoded. If someone wants to make the integrability condition more or less stringent they can change the threshold, I don't see huge benefit in being able to change both from the runcard.

It seems a bit arbitrary to choose 20 points but I think this is reasonable.

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.

2 participants