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

Add Eval type for gsobjects in config #1250

Merged
merged 4 commits into from
Oct 10, 2023
Merged

Add Eval type for gsobjects in config #1250

merged 4 commits into from
Oct 10, 2023

Conversation

rmjarvis
Copy link
Member

I suggested to @beckermr that he use an Eval type for a GSObject for something, where that would be particularly convenient. Turns out we don't have one of those. This is an oversight on my part, since several other things do, leveraging the code for Evals of value types.
This PR remedies this oversight, so now you can use Eval as an object type to evaluate arbitrary strings as GSObjects.

@beckermr
Copy link
Contributor

Thank you!

galsim/config/gsobject.py Outdated Show resolved Hide resolved
@rmjarvis rmjarvis merged commit 5f652af into main Oct 10, 2023
9 checks passed
@rmjarvis rmjarvis deleted the eval_gsobj branch October 10, 2023 15:55
@rmjarvis rmjarvis added this to the v2.5 milestone Oct 12, 2023
@rmjarvis rmjarvis added feature request Request for a new feature in GalSim config Related to the config-processing functionality. labels Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config Related to the config-processing functionality. feature request Request for a new feature in GalSim
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants