Skip to content

Commit

Permalink
Black format
Browse files Browse the repository at this point in the history
  • Loading branch information
dulte committed Sep 23, 2024
1 parent 692342a commit 4b52805
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/pyaro_readers/eeareader/EEATimeseriesReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,14 @@ def _read_polars(self, filters, filename) -> None:
file_unit = self._convert_unit(df.row(0)[df.get_column_index("Unit")])

for key in PARQUET_FIELDS:
array[key][current_idx : current_idx + file_datapoints] = (
df.get_column(PARQUET_FIELDS[key]).to_numpy()
)
array[key][
current_idx : current_idx + file_datapoints
] = df.get_column(PARQUET_FIELDS[key]).to_numpy()

for key, value in METADATA_FILEDS.items():
array[key][current_idx : current_idx + file_datapoints] = (
station_metadata[value]
)
array[key][
current_idx : current_idx + file_datapoints
] = station_metadata[value]

current_idx += file_datapoints

Expand Down
8 changes: 5 additions & 3 deletions src/pyaro_readers/eeareader/eeadownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,13 @@ def postprocess(

pollutants = [
"SO2",
"SO4--",
"SO4 (H2SO4 aerosols) (SO4--)",
# "SO4--",
# "SO4 (H2SO4 aerosols) (SO4--)",
]
eead = EEADownloader()
eead.download_default(Path("/nird/home/dulte/data/EEA"), pollutants=pollutants)
eead.download_default(
Path("/home/danielh/Documents/pyaerocom/test_data/EEA"), pollutants=pollutants
)

# eead.postprocess_all_files(
# Path(
Expand Down

0 comments on commit 4b52805

Please sign in to comment.