Skip to content

Conversation

momchil-flex
Copy link
Collaborator

Final proposal for reorganization of FieldSource-s

@momchil-flex momchil-flex requested a review from tylerflex March 22, 2022 19:18
@pd.validator("angle_theta", allow_reuse=True, always=True)
def glancing_incidence(cls, val):
"""Warn if close to glancing incidence."""
if np.abs(np.pi / 2 - val) < GLANCING_CUTOFF:
Copy link
Collaborator

Choose a reason for hiding this comment

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

could try this too
np.isclose(val, np.pi/2, atol=GLANCING_CUTOFF)

@momchil-flex momchil-flex merged commit 398533c into develop Mar 22, 2022
@momchil-flex momchil-flex deleted the momchil/sources branch March 23, 2022 23:04
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