meas: add a missing unit to the Energy measurement
This commit is contained in:
@@ -645,8 +645,8 @@ impl<S: AbstractSim> AbstractMeasurement<S> for Energy {
|
|||||||
fn key_value(&self, state: &S) -> Vec<Measurement> {
|
fn key_value(&self, state: &S) -> Vec<Measurement> {
|
||||||
let e = self.data(state);
|
let e = self.data(state);
|
||||||
vec![
|
vec![
|
||||||
Measurement::new_unitless(
|
Measurement::new(
|
||||||
&format!("U({})", self.name), e
|
&format!("U({})", self.name), e, "J"
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user