Skip to content

Commit 4c57e72

Browse files
committed
models.geodetic.GeodeticComposite.get_all_dataset_ids: return datasets of requested typ
1 parent 56ba38d commit 4c57e72

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

beat/models/geodetic.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,10 @@ def n_t(self):
133133

134134
def get_all_dataset_ids(self, hp_name):
135135
"""
136-
Return unique GNSS stations and radar acquisitions.
136+
Return unique GNSS stations and radar acquisitions for a hyperparameter.
137137
"""
138-
return [dataset.id for dataset in self.datasets]
138+
hp_dataset_typ = hp_name.split("_")[1]
139+
return [dataset.id for dataset in self.datasets if dataset.typ == hp_dataset_typ]
139140

140141
def analyse_noise(self, tpoint=None):
141142
"""

0 commit comments

Comments
 (0)