-
Notifications
You must be signed in to change notification settings - Fork 107
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 astropy.units support to config layer. #1311
Conversation
1cfd499
to
26b74b3
Compare
I think this is ready now. I added
I think there are a lot of places where this will particularly benefit ImSim. |
4c6308e
to
0db480e
Compare
This is great Josh. FYI, here is an old imSim issue about this: |
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.
Looks great Josh! Just a couple minor doc errors.
docs/config_values.rst
Outdated
* A string interpretable by `astropy.units.Quantity` (e.g. '8.7 m') | ||
* A dict with: | ||
|
||
* ``type`` = *str* (required) There is only one valid option: |
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.
There seem to be two valid options.
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.
Looks like I mimicked the sky_value
section, which also technically has two valid options. I'll fix that one too.
docs/config_values.rst
Outdated
* A string interpretable by `astropy.units.Unit` (e.g. 'm') | ||
* A dict with: | ||
|
||
* ``type`` = *str* (required) There is only one valid option: |
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.
Here too.
031adb6
to
dc14a00
Compare
dc14a00
to
35de439
Compare
Starting to add astropy Quantity/Unit support to GalSim config layer... WIP, but could be worth a quick look at what's here so far.