Skip to content

Conversation

@DanielaBreitman
Copy link
Contributor

Fix error when setting vectorized = False in the MCMC options while using 21cmEMU.

@codecov
Copy link

codecov bot commented Apr 10, 2024

Codecov Report

❌ Patch coverage is 50.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.44%. Comparing base (a4e1484) to head (1d8d5a6).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/py21cmmc/core.py 66.66% 2 Missing ⚠️
src/py21cmmc/likelihood.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #81      +/-   ##
==========================================
- Coverage   73.53%   73.44%   -0.09%     
==========================================
  Files           8        8              
  Lines        2154     2158       +4     
==========================================
+ Hits         1584     1585       +1     
- Misses        570      573       +3     
Flag Coverage Δ
unittests 73.44% <50.00%> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

Copy link
Member

@steven-murray steven-murray left a comment

Choose a reason for hiding this comment

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

Great! I just made one comment, but then it's fine

for t in zip(*values):
ap.append(dict(zip(keys, t)))
astro_params = np.array(ap, dtype=object)
if all(isinstance(v, (float, int)) for v in values) and len(values) > 0:
Copy link
Member

Choose a reason for hiding this comment

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

this should probably be an elif

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.

3 participants