Skip to content

Conversation

@jokasimr
Copy link
Contributor

@jokasimr jokasimr commented Oct 14, 2024

Fixes #86
Fixes #96

Draft because needs tests and docs

@jokasimr jokasimr marked this pull request as ready for review October 18, 2024 12:03
@jokasimr jokasimr force-pushed the scale-critical-edge branch from 2740bd6 to 0732434 Compare October 18, 2024 12:17
@jokasimr jokasimr force-pushed the scale-critical-edge branch from 0732434 to 6b85d5c Compare October 18, 2024 13:17
coords={'Q': sc.linspace('Q', *critical_edge_interval, N + 1)},
)
curves, factors = scale_reflectivity_curves_to_overlap([edge, *curves])
return curves[1:], factors[1:]
Copy link
Member

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.

Copy link
Contributor Author

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?

jokasimr and others added 3 commits October 21, 2024 09:17
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>
@jokasimr jokasimr merged commit c9318ba into main Oct 21, 2024
4 checks passed
@jokasimr jokasimr deleted the scale-critical-edge branch October 21, 2024 08:32
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.

Change interface of scale_curves_to_overlap Add feature to scale critical edge to 1

3 participants