-
Notifications
You must be signed in to change notification settings - Fork 3
feat: scale critical edge to 1 #95
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
Conversation
2740bd6 to
0732434
Compare
0732434 to
6b85d5c
Compare
| coords={'Q': sc.linspace('Q', *critical_edge_interval, N + 1)}, | ||
| ) | ||
| curves, factors = scale_reflectivity_curves_to_overlap([edge, *curves]) | ||
| return curves[1:], factors[1:] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to set the scale factor as a coord in each curve? Returning a tuple of lists seems a bit error prone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now I prefer the tuple of lists because it's simple and obvious. For example, setting it as a coord requires the user to know the name of the coord to extract the return value. I don't directly see why it would be more error prone, did you have a particular situation in mind?
Co-authored-by: Simon Heybrock <12912489+SimonHeybrock@users.noreply.github.com>
Co-authored-by: Simon Heybrock <12912489+SimonHeybrock@users.noreply.github.com>
Co-authored-by: Simon Heybrock <12912489+SimonHeybrock@users.noreply.github.com>
Fixes #86
Fixes #96
Draft because needs tests and docs