Skip to content

Singlesfix#705

Merged
katiebreivik merged 18 commits into
COSMIC-PopSynth:developfrom
katiebreivik:singlesfix
Jul 10, 2025
Merged

Singlesfix#705
katiebreivik merged 18 commits into
COSMIC-PopSynth:developfrom
katiebreivik:singlesfix

Conversation

@katiebreivik

Copy link
Copy Markdown
Collaborator
  • Remove the extra return from the initial sampler to handle the single stars properly.
  • Also cleaned up the warnings

…also removed warning for pickling objects since we only save them once and its not too much overhead
…rent numbers of singles for filtering in conv, this should work better and will save all the single data to the dat file as needed
@katiebreivik

Copy link
Copy Markdown
Collaborator Author

Hey @aliperego -- Can you check out the changes I made to see if this will still work with your keep_singles use case?

@codecov

codecov Bot commented Jun 4, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 23.07692% with 10 lines in your changes missing coverage. Please review.

Project coverage is 78.51%. Comparing base (8772c07) to head (3ac9823).
Report is 111 commits behind head on develop.

Files with missing lines Patch % Lines
src/cosmic/utils.py 0.00% 4 Missing ⚠️
src/cosmic/sample/initialcmctable.py 0.00% 3 Missing ⚠️
src/cosmic/sample/sampler/independent.py 0.00% 2 Missing ⚠️
src/cosmic/sample/sampler/multidim.py 0.00% 1 Missing ⚠️

❌ Your patch status has failed because the patch coverage (23.08%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #705      +/-   ##
===========================================
- Coverage    86.91%   78.51%   -8.40%     
===========================================
  Files           40       49       +9     
  Lines        25542    27118    +1576     
  Branches         0      843     +843     
===========================================
- Hits         22198    21289     -909     
- Misses        3344     5557    +2213     
- Partials         0      272     +272     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@katiebreivik
katiebreivik merged commit 14e000b into COSMIC-PopSynth:develop Jul 10, 2025
2 of 4 checks passed
@katiebreivik
katiebreivik deleted the singlesfix branch July 10, 2025 13:44
TristanBruel added a commit to TristanBruel/COSMIC that referenced this pull request Jul 21, 2025
CPiyumal pushed a commit to CPiyumal/COSMIC that referenced this pull request Oct 3, 2025
* removed passback on singles since we already have it with n_singles; also removed warning for pickling objects since we only save them once and its not too much overhead

* removing the n singles return here as well

* rigggghhhhttttt I forgot that if we specify kstars, then we get different numbers of singles for filtering in conv, this should work better and will save all the single data to the dat file as needed

* fix warnings too

* final updates and warnings

* fixing secondary mass sampling to not allow both qmin and m2min

* fix call to utils.pop_write and some warning messages

* I think this is just a spacing diff

* fixed this to set kstar_2 to 15 for singles

* renaming write to initC

* fix chained assignment

* fix chained assignment but acutally dont break it

* updating the build for python 3.11 and 3.12

* remove extra commented out text

* add docs in for keep singlse

* version bump

* we dont want that commit hash
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.

1 participant