Skip to content

Refactoring#7

Draft
RemDelaporteMathurin wants to merge 42 commits intomainfrom
refactoring
Draft

Refactoring#7
RemDelaporteMathurin wants to merge 42 commits intomainfrom
refactoring

Conversation

@RemDelaporteMathurin
Copy link
Copy Markdown
Member

No description provided.

)
if not arg.check(expected_dimension):
if not arg.dimensionality == ureg(expected_dimension).dimensionality:
breakpoint()
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Note should remove this

Comment on lines +77 to +80
warnings.warn(
f"Correlation with identifier {identifier} not found in correlation group"
)
return None
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think this should fail and not just raise an error

identifier="drho",
function=lambda rho_l, rho_g: (rho_l - rho_g).to(
"kg/m**3"
), # density difference between liquid and gas
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Suggested change
), # density difference between liquid and gas
),
description="density difference between liquid and gas",

identifier="rho_g",
function=lambda temperature, P_bottom: ureg.Quantity(
(P_bottom * he_molar_mass / (const_R * temperature.to("kelvin"))).to("kg/m**3")
), # ideal gas law for density of gas phase
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Suggested change
), # ideal gas law for density of gas phase
),

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

we should maybe move this file to an example folder and add it to the CI

hmonroedd and others added 4 commits April 7, 2026 13:35
Co-authored-by: Rémi Delaporte-Mathurin <40028739+RemDelaporteMathurin@users.noreply.github.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 7, 2026

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

output_units: str | None = None

def __call__(self, **kwargs):
def __call__(self, **kwargs: pint.Quantity) -> pint.Quantity:
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

kwargs here is not a pint.Quantity but a Dict[str: pint.Quantity]

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