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

Provide a way to query parameters with a category #1884

Open
drewj-tp opened this issue Sep 16, 2024 · 1 comment
Open

Provide a way to query parameters with a category #1884

drewj-tp opened this issue Sep 16, 2024 · 1 comment
Assignees
Labels
feature request Smaller user request

Comments

@drewj-tp
Copy link
Contributor

In order to do better rotation of assembly / block parameters, we need a way to find out what parameters are rotatable. The plan proposed in #1860 // #1877, I propose a new category rotatable for parameters.

We don't have a simple way to check if a parameter has a given category. Something like Parameter.atLocation

def atLocation(self, loc):
"""True if parameter is defined at location."""
return self.location and self.location & loc

A corollary would be something like Parameter.hasCategory? Uses could check Parameter.categories but let's make something a little simpler

@drewj-tp drewj-tp self-assigned this Sep 16, 2024
@john-science
Copy link
Member

Drew and I talked about this, and I think it seems like a fine feature.

I'm on board.

@john-science john-science added the feature request Smaller user request label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Smaller user request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants