From a9e98b0c8ec506186ea88d258adc84d3e713b5d0 Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Wed, 24 May 2023 09:59:06 -0400 Subject: [PATCH] update for upstream changes to get_data --- lcviz/helper.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lcviz/helper.py b/lcviz/helper.py index d4be0353..a49fb376 100644 --- a/lcviz/helper.py +++ b/lcviz/helper.py @@ -140,7 +140,7 @@ def load_data(self, data, data_label=None): data_label=data_label ) - def get_data(self, data_label=None, cls=LightCurve, subset_to_apply=None): + def get_data(self, data_label=None, cls=LightCurve, subset=None): """ Returns data with name equal to data_label of type cls with subsets applied from subset_to_apply. @@ -151,12 +151,12 @@ def get_data(self, data_label=None, cls=LightCurve, subset_to_apply=None): Provide a label to retrieve a specific data set from data_collection. cls : light curve class, optional The type that data will be returned as. - subset_to_apply : str, optional - Subset that is to be applied to data before it is returned. + subset : str, optional + Subset that is to be applied (as a mask) to the data before it is returned. Returns ------- data : cls Data is returned as type cls with subsets applied. """ - return super()._get_data(data_label=data_label, cls=cls, subset_to_apply=subset_to_apply) + return super()._get_data(data_label=data_label, mask_subset=subset, cls=cls)