chore: sync project state and current artifacts

This commit is contained in:
Sepehr
2026-02-22 23:27:31 +01:00
parent 1b6415776e
commit dd77089b22
232 changed files with 37056 additions and 4296 deletions

13
fix_coolprop.py Normal file
View File

@@ -0,0 +1,13 @@
with open('crates/fluids/src/coolprop.rs', 'r') as f:
text = f.read()
# 1. Bring FluidBackend into scope at the top of the file
text = text.replace('use crate::backend::DampedBackend;', 'use crate::backend::{DampedBackend, FluidBackend};')
if 'use crate::backend::FluidBackend;' not in text and 'use crate::backend::{DampedBackend, FluidBackend};' not in text:
text = text.replace('use crate::errors::{FluidError, FluidResult};', 'use crate::errors::{FluidError, FluidResult};\nuse crate::backend::FluidBackend;')
# 2. Fix _fluid back to fluid in phase_mix
text = text.replace('fn phase_mix(&self, _fluid: FluidId, state: FluidState)', 'fn phase_mix(&self, fluid: FluidId, state: FluidState)')
with open('crates/fluids/src/coolprop.rs', 'w') as f:
f.write(text)