Skip to content

Commit

Permalink
lustre_netatmo: rename variable values to data for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
intarga committed Nov 5, 2024
1 parent eaf9862 commit cc4f2a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions met_connectors/src/lustre_netatmo/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fn read_netatmo(timestamp: Timestamp) -> Result<DataCache, data_switch::Error> {
let mut lats = Vec::new();
let mut lons = Vec::new();
let mut elevs = Vec::new();
let mut values = Vec::new();
let mut data = Vec::new();

let mut rdr = csv::ReaderBuilder::new().delimiter(b';').from_reader(file);
for result in rdr.deserialize() {
Expand All @@ -60,7 +60,7 @@ fn read_netatmo(timestamp: Timestamp) -> Result<DataCache, data_switch::Error> {
lats.push(record.lat);
lons.push(record.lon);
elevs.push(record.elev);
values.push(Timeseries {
data.push(Timeseries {
// would be nice if we could come up with better identifiers for this
tag: format!("({},{})", record.lat, record.lon),
values: vec![Some(record.value)],
Expand All @@ -69,7 +69,7 @@ fn read_netatmo(timestamp: Timestamp) -> Result<DataCache, data_switch::Error> {
}

Ok(DataCache::new(
values, lats, lons, elevs, timestamp, period, 0, 0,
data, lats, lons, elevs, timestamp, period, 0, 0,
))
}

Expand Down

0 comments on commit cc4f2a0

Please sign in to comment.