Skip to content

Commit

Permalink
add heat pump module
Browse files Browse the repository at this point in the history
  • Loading branch information
shieldo committed Feb 9, 2024
1 parent 3cb2ab1 commit e3d3f9c
Show file tree
Hide file tree
Showing 6 changed files with 4,193 additions and 33 deletions.
111 changes: 108 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,27 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
arrayvec = { version = "0.7.4", features = ["serde"] }
clap = { version = "4.3.10", features = ["derive"] }
csv = "1.2.2"
derivative = "2.2.0"
indexmap = { version = "2.0.0", features = ["serde"] }
interp = "1.0.2"
is_close = "0.1.3"
itertools = "0.11.0"
lazy_static = "1.4.0"
log = "0.4.20"
nalgebra = "0.32.3"
ordered-float = "4.2.0"
polyfit-rs = "0.2.1"
rstest = "0.17.0"
serde = { version = "1.0.164", features = ["derive", "rc"] }
serde-enum-str = "0.4.0"
serde_json = "1.0.100"
variants-struct = "0.1.1"

[dev-dependencies]
pretty_assertions = "1.4.0"
walkdir = "2.3.3"

[lib]
Expand Down
5 changes: 2 additions & 3 deletions src/compare_floats.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
pub fn min_of_2<T: PartialOrd>(first: T, second: T) -> T {
pub fn min_of_2<T: PartialOrd + Copy>(first: T, second: T) -> T {
if first < second {
first
} else {
second
}
}

pub fn max_of_2<T: PartialOrd>(first: T, second: T) -> T {
pub fn max_of_2<T: PartialOrd + Copy>(first: T, second: T) -> T {
if first > second {
first
} else {
second
}
}

#[cfg(test)]
#[cfg(test)]
mod tests {
use super::*;
Expand Down
Loading

0 comments on commit e3d3f9c

Please sign in to comment.