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

ZeroField #317

Merged
merged 2 commits into from
Oct 25, 2024
Merged

ZeroField #317

merged 2 commits into from
Oct 25, 2024

Conversation

pablosanjose
Copy link
Owner

@pablosanjose pablosanjose commented Oct 25, 2024

We change missing as the default value for missing mean field arrays (i.e. the seed non-interacting case) by the singleton zerofield = ZeroField(). It has the property that it returns 0.0 I no matter how it is indexed. This is conceptually cleaner than overloading Base.getindex(::Missing, ::CellSitePos, ::CellSitePos...) as we did before.

We also add some numerical stabilization to the mean field machinery to make the default behaviour more predictable.

zerofield

fix
@pablosanjose pablosanjose changed the title ZeroMeanField ZeroField Oct 25, 2024
docstring fixes

fix

fix
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 92.47%. Comparing base (13c2be2) to head (534306e).

Files with missing lines Patch % Lines
src/meanfield.jl 85.71% 1 Missing ⚠️
src/tools.jl 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #317   +/-   ##
=======================================
  Coverage   92.46%   92.47%           
=======================================
  Files          39       39           
  Lines        6903     6906    +3     
=======================================
+ Hits         6383     6386    +3     
  Misses        520      520           

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

@pablosanjose pablosanjose merged commit 53fbafc into master Oct 25, 2024
9 checks passed
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.

2 participants