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

Couple small fixes to LRS support #850

Merged
merged 3 commits into from
May 20, 2024

Conversation

mperrin
Copy link
Collaborator

@mperrin mperrin commented May 16, 2024

Fixes two small issues missed in recent PR #785.

  • makes setup_sim_to_match_file better at inferring LRS slit for the specific case of LRS TACONFIRM exposures
  • Fixes a bug which would happen if you set the aperture name to MIRIM_SLIT then tried to set it back to some regular aperture such as MIRIM_FULL, due to the SLIT type apertures in pysiaf not having a defined pixescale.

For testing, an example MIRI LRS TACONFIRM exposure is jw01529001001_03102_00001_mirimage_cal.fits.

@mperrin mperrin requested a review from obi-wan76 May 16, 2024 20:49
@mperrin mperrin self-assigned this May 16, 2024
@pep8speaks
Copy link

pep8speaks commented May 16, 2024

Hello @mperrin, Thank you for updating !

Line 1:1: E266 too many leading '#' for block comment
Line 159:45: E203 whitespace before ':'

Line 30:11: E271 multiple spaces after keyword
Line 31:17: E126 continuation line over-indented for hanging indent
Line 38:13: E126 continuation line over-indented for hanging indent
Line 138:1: E302 expected 2 blank lines, found 1
Line 150:28: E225 missing whitespace around operator
Line 157:28: E225 missing whitespace around operator
Line 163:5: E303 too many blank lines (2)
Line 163:31: W291 trailing whitespace
Line 166:28: E225 missing whitespace around operator
Line 175:28: E225 missing whitespace around operator
Line 183:28: E225 missing whitespace around operator
Line 192:31: E226 missing whitespace around arithmetic operator
Line 197:51: E226 missing whitespace around arithmetic operator
Line 200:5: E303 too many blank lines (2)
Line 204:28: E225 missing whitespace around operator
Line 209:28: E225 missing whitespace around operator

Line 303:126: E501 line too long (148 > 125 characters)
Line 390:47: E114 indentation is not a multiple of four (comment)
Line 390:47: E116 unexpected indentation (comment)
Line 729:126: E501 line too long (152 > 125 characters)
Line 732:29: E201 whitespace after '('
Line 756:1: E266 too many leading '#' for block comment
Line 980:126: E501 line too long (133 > 125 characters)
Line 982:57: E225 missing whitespace around operator
Line 986:126: E501 line too long (165 > 125 characters)
Line 994:32: E201 whitespace after '('
Line 1006:126: E501 line too long (145 > 125 characters)
Line 1007:126: E501 line too long (136 > 125 characters)
Line 1008:126: E501 line too long (133 > 125 characters)
Line 1011:24: E271 multiple spaces after keyword
Line 1028:126: E501 line too long (134 > 125 characters)
Line 1046:82: E202 whitespace before ')'
Line 1087:52: E225 missing whitespace around operator
Line 1258:91: E231 missing whitespace after ','
Line 1258:126: E501 line too long (139 > 125 characters)
Line 1445:126: E501 line too long (200 > 125 characters)
Line 1601:126: E501 line too long (131 > 125 characters)
Line 1837:9: E303 too many blank lines (2)
Line 1845:126: E501 line too long (165 > 125 characters)
Line 1868:9: E266 too many leading '#' for block comment
Line 1901:9: E266 too many leading '#' for block comment
Line 1902:9: E266 too many leading '#' for block comment
Line 1942:1: E302 expected 2 blank lines, found 1
Line 1946:5: E303 too many blank lines (2)
Line 1947:26: E201 whitespace after '('
Line 1961:5: E303 too many blank lines (2)
Line 2019:126: E501 line too long (127 > 125 characters)
Line 2044:126: E501 line too long (155 > 125 characters)
Line 2064:17: E126 continuation line over-indented for hanging indent
Line 2206:126: E501 line too long (141 > 125 characters)
Line 2348:36: E225 missing whitespace around operator
Line 2388:5: E303 too many blank lines (2)
Line 2407:5: E303 too many blank lines (2)
Line 2424:13: E265 block comment should start with '# '
Line 2427:13: E265 block comment should start with '# '
Line 2429:13: E265 block comment should start with '# '
Line 2430:13: E265 block comment should start with '# '
Line 2431:13: E265 block comment should start with '# '
Line 2432:9: E265 block comment should start with '# '
Line 2440:24: E225 missing whitespace around operator
Line 2444:65: E226 missing whitespace around arithmetic operator
Line 2601:126: E501 line too long (130 > 125 characters)
Line 2645:126: E501 line too long (130 > 125 characters)
Line 2655:126: E501 line too long (141 > 125 characters)
Line 2679:126: E501 line too long (130 > 125 characters)
Line 2705:31: E225 missing whitespace around operator
Line 2919:23: E272 multiple spaces before keyword
Line 3028:126: E501 line too long (134 > 125 characters)
Line 3094:33: E116 unexpected indentation (comment)
Line 3125:33: E221 multiple spaces before operator
Line 3195:71: E231 missing whitespace after ','
Line 3196:126: E501 line too long (145 > 125 characters)
Line 3200:9: E303 too many blank lines (2)
Line 3209:5: E303 too many blank lines (2)
Line 3225:126: E501 line too long (139 > 125 characters)
Line 3240:126: E501 line too long (145 > 125 characters)
Line 3241:126: E501 line too long (137 > 125 characters)
Line 3254:126: E501 line too long (142 > 125 characters)
Line 3262:126: E501 line too long (134 > 125 characters)
Line 3265:43: E261 at least two spaces before inline comment
Line 3268:5: E303 too many blank lines (2)
Line 3299:24: E225 missing whitespace around operator
Line 3321:5: E303 too many blank lines (2)

Comment last updated at 2024-05-20 12:24:33 UTC

@mperrin mperrin added bug Something isn't working JWST Affects JWST models in WebbPSF labels May 16, 2024
@mperrin mperrin added this to the Release 1.3 milestone May 16, 2024
Copy link
Collaborator

@obi-wan76 obi-wan76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, works as intended.

@obi-wan76 obi-wan76 merged commit b2a9ad8 into spacetelescope:develop May 20, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working JWST Affects JWST models in WebbPSF
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants