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

Rhessi srm editable (post rename) #143

Merged
merged 9 commits into from
Jun 14, 2024

Conversation

settwi
Copy link
Contributor

@settwi settwi commented May 16, 2024

Addresses issue #116 by

  • auto-picking the correct RHESSI SRM based on the selected time range of the data.
  • making it easy to add systematic error e.g.: sunkit_fitter.systematic_error = 0.1

Also deletes the STIX loader. I think I did that in the past when I was frustrated with how it (didn't really) work.
We should probably add that back before this gets merged... if it ever does :p

This change makes it actually possible to do good analysis on RHESSI data.
I am going to use this branch in a paper so it would be great if we could get the changes merged in.

- WS

@codecov-commenter
Copy link

codecov-commenter commented May 16, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (main@eb860e9). Learn more about missing BASE report.

Files Patch % Lines
sunkit_spex/fitting_legacy/instruments.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #143   +/-   ##
=======================================
  Coverage        ?   61.21%           
=======================================
  Files           ?       18           
  Lines           ?     2741           
  Branches        ?        0           
=======================================
  Hits            ?     1678           
  Misses          ?     1063           
  Partials        ?        0           

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

@KriSun95
Copy link
Collaborator

This PR is looking good. Would it be worth while creating the extern module in fitting_legacy and moving the RHESSI code there in this PR as well?

@samaloney
Copy link
Collaborator

samaloney commented May 31, 2024

This PR is looking good. Would it be worth while creating the extern module in fitting_legacy and moving the RHESSI code there in this PR as well?

The extern module is already there just need to move the code and maybe convert the ipynb to py for easier diffs or at least strip out the cell outputs.

@settwi settwi marked this pull request as ready for review June 13, 2024 16:10
@settwi
Copy link
Contributor Author

settwi commented Jun 13, 2024

@DanRyanIrish @samaloney @KriSun95

pre-comit.ci is failing because autopep8, etc. are failing on poorly-formatted code in lots of files. i don't really want to touch them in this commit.

@samaloney
Copy link
Collaborator

I think you'll either need to rebase or merge in main as theses have all been fixed and pre-commit passes on main.

@settwi
Copy link
Contributor Author

settwi commented Jun 13, 2024

ok. i'll work on it

@samaloney
Copy link
Collaborator

It looks like pre-commit was able to fix all the issues so if you run pre-commit run -a double check the diff and then add the changes should be good to go.

@settwi
Copy link
Contributor Author

settwi commented Jun 13, 2024

oh wow, i didn't know you could do that :p

@settwi
Copy link
Contributor Author

settwi commented Jun 13, 2024

ruh roh readthedox failed one second.

@settwi settwi force-pushed the rhessi-srm-editable-post-rename branch from 1d07b32 to c955bdb Compare June 13, 2024 16:31
Copy link
Collaborator

@samaloney samaloney left a comment

Choose a reason for hiding this comment

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

LGTM. If the RHESSI loader tests are still valid would be good to move them over to extern too.

@settwi
Copy link
Contributor Author

settwi commented Jun 13, 2024

I’m pretty sure they aren’t valid because i condensed the code. but we could add some version back if need be.

@samaloney
Copy link
Collaborator

I think it would be good but as this is't in the main package I'm not going to hold it up over that but I would strongly encourage you too add some tests at some point 😉

sunkit_spex/fitting_legacy/tests/test_io.py Outdated Show resolved Hide resolved
sunkit_spex/fitting_legacy/instruments.py Outdated Show resolved Hide resolved
@DanRyanIrish DanRyanIrish merged commit 8021cd6 into sunpy:main Jun 14, 2024
11 checks passed
@settwi settwi deleted the rhessi-srm-editable-post-rename branch November 23, 2024 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants