Skip to content

Commit

Permalink
Merge pull request #65 from metno/64-variablenamechangingreader-is-mi…
Browse files Browse the repository at this point in the history
…ssing-metadata

add metadata property to the VariableNameChangingReader
  • Loading branch information
jgriesfeller authored Nov 12, 2024
2 parents 584770a + acda157 commit 7fd66d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pyaro/timeseries/Wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def data(self, varname):
def stations(self):
return self._reader.stations()

def metadata(self):
return self._reader.metadata()

def variables(self):
"""Variables with new variable names
Expand Down
1 change: 1 addition & 0 deletions tests/test_CSVTimeSeriesReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ def test_wrappers(self):
engine.open(self.file, filters=[]), {"SOx": newsox}
) as ts:
self.assertEqual(ts.data(newsox).variable, newsox)
self.assertGreater(len(ts.metadata()), 0)
pass

def test_variables_filter(self):
Expand Down

0 comments on commit 7fd66d8

Please sign in to comment.