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

Alternate Stage 3 Inputs #603

Merged
merged 29 commits into from
Jun 17, 2024
Merged

Alternate Stage 3 Inputs #603

merged 29 commits into from
Jun 17, 2024

Conversation

AarynnCarter
Copy link
Collaborator

@AarynnCarter AarynnCarter commented Jan 11, 2024

Pull request to allow for non-Eureka! inputs to Stage 4.

  • Remove saving of MetaSave.dat file and allocate values to SpecData.h5 file for Stage 3
  • Enable Stage 4 to read information from Stage 3 SpecData.h5 file
  • Write notebook tutorial for formatting some generic data in the Eureka! SpecData format.
  • Get notebook uploaded to documentation
  • Check things are working for photometric data

Leaving for a future PR:

  • Develop default conversion functions for other pipelines
  • Add documentation on supported pipelines.
  • Stretch goal: Tutorial on how to create a built-in conversion function

This PR resolves part of #404

@AarynnCarter AarynnCarter marked this pull request as draft January 11, 2024 22:25
@codecov-commenter
Copy link

codecov-commenter commented Jan 11, 2024

Codecov Report

Attention: Patch coverage is 69.04762% with 26 lines in your changes missing coverage. Please review.

Project coverage is 54.28%. Comparing base (a344dbe) to head (ab7a32a).
Report is 3 commits behind head on main.

Files Patch % Lines
src/eureka/S4_generate_lightcurves/s4_genLC.py 23.80% 16 Missing ⚠️
src/eureka/lib/manageevent.py 77.77% 8 Missing ⚠️
src/eureka/S3_data_reduction/s3_reduce.py 75.00% 1 Missing ⚠️
src/eureka/lib/util.py 95.45% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #603      +/-   ##
==========================================
- Coverage   54.29%   54.28%   -0.01%     
==========================================
  Files         101      101              
  Lines       12713    12779      +66     
==========================================
+ Hits         6902     6937      +35     
- Misses       5811     5842      +31     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Owner

@kevin218 kevin218 left a comment

Choose a reason for hiding this comment

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

Great job with the tutorial! Most of the requested changes are pretty small, but we should talk about placing default values into the MetaClass.

docs/source/notebooks.rst Outdated Show resolved Hide resolved
src/eureka/S3_data_reduction/s3_reduce.py Show resolved Hide resolved
src/eureka/S4_generate_lightcurves/s4_genLC.py Outdated Show resolved Hide resolved
src/eureka/S4_generate_lightcurves/s4_genLC.py Outdated Show resolved Hide resolved
src/eureka/lib/manageevent.py Show resolved Hide resolved
@taylorbell57 taylorbell57 added documentation Improvements or additions to documentation enhancement New feature or request labels Feb 5, 2024
@AarynnCarter
Copy link
Collaborator Author

AarynnCarter commented Apr 30, 2024

@kevin218 , @taylorbell57 Okay I made some tweaks based on the comments. Sorry if I couldn't get absolutely everything done, I think we at least have a good foundation to build from for more specific custom data inputs and / or changes to the tutorial. I don't think I'll have a chance to put more work into this, so if there's any more tweaks you'd like to make, it would probably be best to checkout my branch and incorporate them directly - I'll be sure to leave it as it currently is! 😄

@kevin218 kevin218 marked this pull request as ready for review May 16, 2024 20:42
@kevin218 kevin218 self-requested a review May 16, 2024 20:42
kevin218
kevin218 previously approved these changes May 16, 2024
@kevin218
Copy link
Owner

@taylorbell57 Do you also want to review changes to this PR before merging into main?

@taylorbell57
Copy link
Collaborator

@taylorbell57 Do you also want to review changes to this PR before merging into main?

Yes please, I'll likely do so this weekend or on Monday

docs/source/conf.py Outdated Show resolved Hide resolved
setup.cfg Outdated Show resolved Hide resolved
src/eureka/S3_data_reduction/s3_reduce.py Show resolved Hide resolved
src/eureka/S4_generate_lightcurves/s4_genLC.py Outdated Show resolved Hide resolved
src/eureka/S4_generate_lightcurves/s4_genLC.py Outdated Show resolved Hide resolved
src/eureka/S4_generate_lightcurves/s4_genLC.py Outdated Show resolved Hide resolved
src/eureka/lib/manageevent.py Outdated Show resolved Hide resolved
src/eureka/lib/util.py Outdated Show resolved Hide resolved
@taylorbell57
Copy link
Collaborator

I know you're busy right now @AarynnCarter, so I'll try to address my own comments in the next week or so

@AarynnCarter
Copy link
Collaborator Author

Thanks @taylorbell57, sorry to drop the PR on you not quite finished!

@taylorbell57
Copy link
Collaborator

Alright, I've fixed most of the known issues with the PR. I still need to review the new tutorial and potentially make some changes to the S4 checks (depending on whether this PR gets merged after or before PR #632).

@taylorbell57
Copy link
Collaborator

@AarynnCarter, I fixed some very minor typos in your excellent tutorial, but there was also an error in how you setup the photometry SpecData.h5 file. To be sure that Stage 4 functions properly, the wave_1d array must still be defined, otherwise integrations with ExoTiC-LD and some of the Eureka! code is going to break.

I believe my implemented change should work well, but I need you to re-run the notebook to update all the notebook outputs; hopefully this should take only ~1 minute of your time. It's possible that I should've done wave_1d = np.array([2.1,]) instead of wave_1d = 2.1 - if you get an error message, then try adjusting the code to that.

@AarynnCarter
Copy link
Collaborator Author

@taylorbell57 No worries, I'll aim to update things by the end of next week!

@AarynnCarter
Copy link
Collaborator Author

@taylorbell57 Okay, all done! You were right about it needing to be cast as a numpy array. There was also a typo I fixed in the allocation of the x value.

@taylorbell57 taylorbell57 merged commit a939236 into main Jun 17, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants