Skip to content

Commit b2cabf8

Browse files
authored
Adjust collection labelling so that multiple VOBS can be fetched (#104)
* Adjust collection labelling * Format fix
1 parent 75c0c79 commit b2cabf8

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/viresclient/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@
3535
from ._config import ClientConfig, set_token
3636
from ._data_handling import ReturnedData, ReturnedDataFile
3737

38-
__version__ = "0.11.5"
38+
__version__ = "0.11.6"

src/viresclient/_client_swarm.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,8 @@ def collection_ids(self, collection_ids):
308308
@staticmethod
309309
def _spacecraft_from_collection(collection):
310310
"""Identify spacecraft (or ground observatory name) from collection name."""
311-
if "AUX_OBS" in collection:
312-
name = "AUX_OBS"
313-
if ":" in collection:
314-
name = f"{name}:{collection[19:22]}"
311+
if "AUX_OBS" in collection or "VOBS" in collection:
312+
name = collection
315313
elif collection[:3] == "SW_":
316314
# 12th character in name, e.g. SW_OPER_MAGx_LR_1B
317315
sc = collection[11]

0 commit comments

Comments
 (0)