Skip to content

Commit a5f324a

Browse files
committed
Fix some formatting
1 parent ab11774 commit a5f324a

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ message: >-
88
99
“We use the Python package, viresclient [1], to access [ name the datasets ] from ESA's VirES for Swarm service [2]"
1010
11-
[1] Smith, A. R. A., Pačes, M., & Santillan, D. (2025). ESA-VirES/VirES-Python-Client. Zenodo. Smith, A. R. A., Pačes, M., & Santillan, D. (2025). ESA-VirES/VirES-Python-Client. Zenodo. Smith, A. R. A., Pačes, M., & Santillan, D. (2025). ESA-VirES/VirES-Python-Client (v0.14.1). Zenodo. Smith, A. R. A., Pačes, M., & Santillan, D. (2025). ESA-VirES/VirES-Python-Client (v0.14.1). Zenodo. https://doi.org/10.5281/zenodo.2554162
11+
[1] Smith, A. R. A., Pačes, M., & Santillan, D. (2025). ESA-VirES/VirES-Python-Client. Zenodo. https://doi.org/10.5281/zenodo.2554162
1212
[2] https://vires.services
1313
1414
You may also wish to cite this paper:

src/viresclient/_data_handling.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,10 +395,12 @@ def _reshape_two_codes(self, ds):
395395
Merges IAGA_code and ObsIndex into a single SiteCode variable
396396
(e.g. "ABG0", "ALE1"), then delegates to _reshape_one_code.
397397
"""
398-
site_codes = numpy.array([
399-
f"{iaga}{obs}"
400-
for iaga, obs in zip(ds["IAGA_code"].values, ds["ObsIndex"].values)
401-
])
398+
site_codes = numpy.array(
399+
[
400+
f"{iaga}{obs}"
401+
for iaga, obs in zip(ds["IAGA_code"].values, ds["ObsIndex"].values)
402+
]
403+
)
402404
keep = [v for v in ds.data_vars if v not in {"IAGA_code", "ObsIndex"}]
403405
ds = ds[keep].assign(SiteCode=((self._time_variable,), site_codes))
404406
return self._reshape_one_code(ds, "SiteCode")

0 commit comments

Comments
 (0)