Commit 092aceb
remove parameters.py under romanisim folder (#356)
* add romanisim.models
* in romanisim.models.wcs: change wcs.numerical_inverse() to wcs.invert()
* update import models.wcs, models.parameters
* modify romanisim.models APIs, now they also takes image_mod, reffiles as valid inputs
* modify texts in example_APIs notebook
* fix a wcs call error in image.py
* mv bandpass name conversions into models.bandpass. Fix a duplicated file read in models.bandpass
* fix a coner case in models.nonlinearity
* update models.bandpass to stick to SOC filter naming convention. Pass test_image, test_l1 unit tests
* update example API notebook
* add galsim_filter_name boolean option to read_gsfc_effarea in models.bandpass to make it also compatible with SOC naming convention.
* remove all galsim.roman dependence, replace the calls of romanisim.(parameters, wcs, psf, bandpass) with romanisim.models.(parameters, wcs, psf, bandpass)
* fix a bug in models.wcs
* update integral nonlinearity correction to the current implementation in romanisim
* for reading files in the roman-tech-info, change: RuntimeError to Exception. Add this try except block to models.bandpass
* update example notebook
* fix a bug in read_gsfc_effarea, remove unused import of asdf astropy.unit etc.
* Squashed 'romanisim/data/roman-technical-information/' content from commit 229bd3c
git-subtree-dir: romanisim/data/roman-technical-information
git-subtree-split: 229bd3ccc23e1a37fba76b62ed537a24d31f2e13
* add roman-technical-information repo as a subtree in romanisim.data, fix galsim.roman calls in docstring examples
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* ignore pre-commit check for roman-technical-information subtree
* fixed a typo in read_noise.py
* removed redundant fermi parameters
* default values for gain, dark_current, and read_noise are now retrieved from models.parameters, and can be updated via passing a metadata dict to the constructor
* moved romanisim.models.psf to romanisim.psf, modified the corresponding imports
* add __all__ to romanisim.psf
* import romanisim in bandpass docstring
* add a helper function to get the reference files (from local or crds)
* deprecated the contents in romanisim.wcs and romanisim.bandpass; corrct for an typo in the docstring in romanisim.models.bandpass
* update models.nonlinearity so it takes a integralnonlinearity datamodel as an input. Correspondingly updated the implementations in tests (test_l1 and test_linear).
* Added deprecation warnings in romanisim.nonlinearity. Also introduced backward compatibility in romanisim.models.nonlinearity for the functions repair_coefficients and evaluate_nl_polynomial. Note that romanisim.nonlinearity.NL is deprecated and is replaced by romanisim.models.nonlinearity.Nonlinearity.
* added a README.md for romanisim.data; changed the logic of accessing the default per SCA throughputs (now the defaults point to roman-tech-info local copy)
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* removed the unused throughput files in romanisim.data
* expose psf_utils and wcs_utils in romanisim.models.__init__
* fix a typo in nonlinearity, add reciprocity failure method in nonlinearity
* update bandpass to allow for getting a subset of Roman bandpasses
* add a getBandpass function (for getting a single band) to models.bandpass
* add relevant galsim.roman unittests
* fixed bugs in image.py and docstring
* fix style failures
* update docstrings for model classes
* remove romanisim/models/example_APIs.ipynb
* patch: remove parameters.py from romanisim folder
* remove romanisim.parameters in docstrings etc.
* fix a typo in index.rst
---------
Co-authored-by: Eddie Schlafly <eschlafly@stsci.edu>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent d69c51c commit 092aceb
5 files changed
Lines changed: 5 additions & 322 deletions
File tree
- docs/romanisim
- romanisim
- models
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1176 | 1176 | | |
1177 | 1177 | | |
1178 | 1178 | | |
1179 | | - | |
| 1179 | + | |
1180 | 1180 | | |
1181 | 1181 | | |
1182 | 1182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
| 620 | + | |
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments