Conversation
kevin218
left a comment
There was a problem hiding this comment.
I've reviewed a few files and have made suggestions on how to economize the code (i.e. reduce duplication). I'm happy to chat more after you review my suggestions.
|
Here are some additional suggestions based on my experiences in playing with the code:
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #757 +/- ##
==========================================
- Coverage 60.18% 59.98% -0.20%
==========================================
Files 107 114 +7
Lines 14084 14722 +638
==========================================
+ Hits 8476 8831 +355
- Misses 5608 5891 +283 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@taylorbell57 I've made significant changes to this PR, so I would appreciate your independent review. |
|
@taylorbell57 After running more extensive tests and tracking down some corner-case issues, I think this PR is finally ready for review. |
|
This is on my to-do list and I haven't forgotten it, FYI - I've just been swamped with research travel, a week of sick leave, and a week of personal vacation |
taylorbell57
left a comment
There was a problem hiding this comment.
I haven't gotten into reviewing the major edits of this PR yet, but here's some preliminary feedback
taylorbell57
left a comment
There was a problem hiding this comment.
Here are a couple more comments on some basic aspects before I dive into the bigger parts of this PR on Thursday/Friday this week.
Please also note that there will need to be a bunch of additions to the docs to describe these new features and plots.
| # There were no metadata files in that folder, so let's see if | ||
| # there are in children folders | ||
| newfnames = glob.glob(meta.inputdir+'**'+os.sep+stage+'_' + | ||
| newfnames = glob.glob(meta.inputdir+os.sep+'**'+os.sep+stage+'_' + |
There was a problem hiding this comment.
meta.inputdir should be normalized to always end with an os.sep already. If that wasn't the case for you somewhere, we should fix that at the source to avoid having a tonne of os.sep scattered throughout the code
There was a problem hiding this comment.
inputdir is either user defined or as follows in s3_meta.py: self.inputdir = getattr(self, 'inputdir', 'Stage2'). The formatting is similar for other stages. While I support minimizing the use of os.sep, I feel this proposed change is outside the scope of this PR.
There was a problem hiding this comment.
inputdir is regularized within readECF here:
Eureka/src/eureka/lib/readECF.py
Lines 239 to 253 in 764a234
| This script is designed to optimize the Stage 1,3, and 4 ECF parameters for | ||
| JWST time-series observations. |
There was a problem hiding this comment.
How time consuming would it be to add support for running/skipping flat-field in Stage 2?
There was a problem hiding this comment.
Adding a Stage 2 optimization would be quite a bit of work for this PR, but we could explore that option in a subsequent PR.
There was a problem hiding this comment.
Can you open an Issue to look into that so we don't forget
Initial upload of MIRI-LRS, NIRSpec-PRISM, NIRSpec-G395H, and NIRISS-SOSS parametric optimizers.