Skip to content

Conversation

@slayoo
Copy link
Member

@slayoo slayoo commented Feb 25, 2025

No description provided.

@codecov
Copy link

codecov bot commented Feb 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.33%. Comparing base (6187706) to head (96fb10f).
Report is 27 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1516   +/-   ##
=======================================
  Coverage   85.33%   85.33%           
=======================================
  Files         379      379           
  Lines        9332     9332           
=======================================
  Hits         7963     7963           
  Misses       1369     1369           

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

assert not inspect.isclass(backend)
self.formulae = backend.formulae
self.particulator = Particulator(n_sd, backend)
self.req_attr_names = ["multiplicity", "water mass", "cell id"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we change it also here?

Copy link
Member Author

Choose a reason for hiding this comment

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

IIUC, the idea here is that we always require the water mass attribute (which might be a derived one) to be available

)
self.request_attribute("volume")

if (
Copy link
Collaborator

Choose a reason for hiding this comment

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

and maybe it is not needed anymore?

Copy link
Member Author

@slayoo slayoo Nov 18, 2025

Choose a reason for hiding this comment

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

here, the scenario is as follows:

  • user supplies volume (which is a derived attribute - in principle should not be supplied by the used)
  • at the same time, the user does not supply water mass (we should also check if signed water mass is not supplied!)
  • we know how to compute mass from volume
  • hence, we compute signed water mass and delete the volume attribute
  • for the user to (intuitively) be able to retrieve values of volume (given it was part of the input), we also request this derived attribute to be among the available ones

So, there is some reason to do it this way, but at the same time, we are also now in a v3.0.0-pre.XXX stage, hence it is OK to change the API and remove such logic - we could just require to provide water mass or signed water mass without any exceptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants