Skip to content

Commit

Permalink
Adjust collection labelling so that multiple VOBS can be fetched (#104)
Browse files Browse the repository at this point in the history
* Adjust collection labelling

* Format fix
  • Loading branch information
smithara committed Jan 20, 2024
1 parent 75c0c79 commit b2cabf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/viresclient/__init__.py
Expand Up @@ -35,4 +35,4 @@
from ._config import ClientConfig, set_token
from ._data_handling import ReturnedData, ReturnedDataFile

__version__ = "0.11.5"
__version__ = "0.11.6"
6 changes: 2 additions & 4 deletions src/viresclient/_client_swarm.py
Expand Up @@ -308,10 +308,8 @@ def collection_ids(self, collection_ids):
@staticmethod
def _spacecraft_from_collection(collection):
"""Identify spacecraft (or ground observatory name) from collection name."""
if "AUX_OBS" in collection:
name = "AUX_OBS"
if ":" in collection:
name = f"{name}:{collection[19:22]}"
if "AUX_OBS" in collection or "VOBS" in collection:
name = collection
elif collection[:3] == "SW_":
# 12th character in name, e.g. SW_OPER_MAGx_LR_1B
sc = collection[11]
Expand Down

0 comments on commit b2cabf8

Please sign in to comment.