Skip to content
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

Allow Non-Vector Input for Infinite Parameter Supports #358

Merged
merged 5 commits into from
Jul 30, 2024
Merged

Conversation

pulsipher
Copy link
Collaborator

Previously, only scalars or vectors were accepted when specifying infinite parameter supports. This PR generalizes this to now accept:

  • UnitRanges
  • StepRanges
  • StepRangeLens
  • Tuples
  • Base.Generators
  • Matrices (for dependent parameters)

A common use case this enables is specifying a grid based on a step size:

@infinite_parameter(model, t in [0, 1], supports = 0:0.1:1)

which errored previously.

@pulsipher pulsipher added the enhancement New feature or request label Jul 30, 2024
@pulsipher pulsipher added this to the v0.6 milestone Jul 30, 2024
Copy link

codecov bot commented Jul 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.77%. Comparing base (c1f2545) to head (0f94150).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #358   +/-   ##
=======================================
  Coverage   99.77%   99.77%           
=======================================
  Files          35       35           
  Lines        6721     6741   +20     
=======================================
+ Hits         6706     6726   +20     
  Misses         15       15           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pulsipher pulsipher merged commit c64333f into master Jul 30, 2024
10 checks passed
@pulsipher pulsipher deleted the supp_input branch July 30, 2024 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant