meas: add a missing unit to the Energy measurement

This commit is contained in:
2022-07-30 21:21:02 -07:00
parent 530ab890e6
commit b5c58c03ce

View File

@@ -645,8 +645,8 @@ impl<S: AbstractSim> AbstractMeasurement<S> for Energy {
fn key_value(&self, state: &S) -> Vec<Measurement> {
let e = self.data(state);
vec![
Measurement::new_unitless(
&format!("U({})", self.name), e
Measurement::new(
&format!("U({})", self.name), e, "J"
)
]
}