From 632b52de1b98d6d0d15e4609b6b830f6446472cc Mon Sep 17 00:00:00 2001 From: Rodrigo Boufleur Date: Wed, 8 May 2024 08:31:16 -0700 Subject: [PATCH] fixes list typing in get_topic_corresponding_indexes --- python/lsst/consdb/transform_efd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/lsst/consdb/transform_efd.py b/python/lsst/consdb/transform_efd.py index 2e4a214e..5531b00d 100644 --- a/python/lsst/consdb/transform_efd.py +++ b/python/lsst/consdb/transform_efd.py @@ -265,7 +265,7 @@ def get_visits_by_period( def butler_query_results_to_pandas(query): return pandas.DataFrame([q.toDict() for q in query]) -def get_topic_correponding_indexes(butler_table: pandas.DataFrame, topic_time_array: Union[[list],numpy.ndarray]) -> List: +def get_topic_correponding_indexes(butler_table: pandas.DataFrame, topic_time_array: Union[List,numpy.ndarray]) -> List: """ Returns a list of topic indexes corresponding to each row in the butler_table. It is assumed that the butler_table and the topic_time_array are sorted in time ascending order.