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

count_rate2counts should be dealing with the average, so no need for integers #87

Merged
merged 4 commits into from Feb 16, 2023

Conversation

KriSun95
Copy link
Collaborator

@KriSun95 KriSun95 commented Dec 6, 2022

Not right to cast model counts to integers since this is supposed to be the model average in the time range being looked at and so it can be a float, it is the count data that must be integers. Casting to integers the way I did can also cause weird value overflows.

@codecov-commenter
Copy link

codecov-commenter commented Dec 6, 2022

Codecov Report

Base: 32.47% // Head: 54.63% // Increases project coverage by +22.16% 🎉

Coverage data is based on head (5b2764d) compared to base (67509e3).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff             @@
##           master      #87       +/-   ##
===========================================
+ Coverage   32.47%   54.63%   +22.16%     
===========================================
  Files          18       19        +1     
  Lines        3098     3115       +17     
===========================================
+ Hits         1006     1702      +696     
+ Misses       2092     1413      -679     
Impacted Files Coverage Δ
sunxspex/sunxspex_fitting/fitter.py 53.59% <ø> (+40.32%) ⬆️
sunxspex/logging.py 100.00% <0.00%> (ø)
sunxspex/sunxspex_fitting/instruments.py 21.89% <0.00%> (+3.64%) ⬆️
sunxspex/sunxspex_fitting/data_loader.py 17.22% <0.00%> (+4.49%) ⬆️
sunxspex/sunxspex_fitting/likelihoods.py 68.57% <0.00%> (+20.00%) ⬆️
sunxspex/sunxspex_fitting/parameter_handler.py 71.34% <0.00%> (+52.04%) ⬆️
sunxspex/sunxspex_fitting/rainbow_text.py 82.35% <0.00%> (+70.58%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

Looks good thanks. Small suggestion for the change log you can take it or leave it.

changelog/87.bugfix.rst Outdated Show resolved Hide resolved
KriSun95 and others added 3 commits February 15, 2023 12:35
Co-authored-by: Shane Maloney <shane.maloney@dias.ie>
@samaloney samaloney merged commit d4341f4 into sunpy:master Feb 16, 2023
@KriSun95 KriSun95 deleted the kris-floatModel branch March 6, 2023 22:26
settwi pushed a commit to settwi/sunkit-spex that referenced this pull request Sep 18, 2023
…integers (sunpy#87)

* count_rate2counts should be dealing with the average, so should not be cast to int
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.

None yet

3 participants