From 7e12c8fd16eaa9896f1dc5762eca0b34602bcd6d Mon Sep 17 00:00:00 2001 From: "Brett M. Morris" Date: Thu, 4 May 2023 09:33:57 -0400 Subject: [PATCH] adding TODO comment, fixing up rebase --- lcviz/utils.py | 8 ++------ lcviz/viewers.py | 4 ++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lcviz/utils.py b/lcviz/utils.py index 67ff06c6..4eaa0664 100644 --- a/lcviz/utils.py +++ b/lcviz/utils.py @@ -3,11 +3,8 @@ from ipyvue import watch import os -from lightkurve import LightCurve -from ndcube.extra_coords import TimeTableCoordinate from glue.core.coordinates import Coordinates import numpy as np -from gwcs.wcs import WCS from astropy import units as u from astropy.time import Time @@ -193,7 +190,6 @@ def parse_attributes(attributes): return LightCurve(**data_kwargs, **kwargs) -<<<<<<< HEAD def enable_hot_reloading(watch_jdaviz=True): """ Use ``watchdog`` to perform hot reloading. @@ -212,7 +208,8 @@ def enable_hot_reloading(watch_jdaviz=True): print(( 'Watchdog module, needed for hot reloading, not found.' ' Please install with `pip install watchdog`')) -======= + + @data_translator(KeplerLightCurve) class KeplerLightCurveHandler(LightCurveHandler): # Works the same as LightCurve @@ -223,4 +220,3 @@ class KeplerLightCurveHandler(LightCurveHandler): class TessLightCurveHandler(LightCurveHandler): # Works the same as LightCurve pass ->>>>>>> ff59ea9 (First working subset fixes) diff --git a/lcviz/viewers.py b/lcviz/viewers.py index 6efaa46b..0558a5cc 100644 --- a/lcviz/viewers.py +++ b/lcviz/viewers.py @@ -51,6 +51,10 @@ def __init__(self, *args, **kwargs): def data(self, cls=None): data = [] + # TODO: generalize upstream in jdaviz. + # This method is generalized from + # jdaviz/configs/specviz/plugins/viewers.py + # to support non-spectral viewers. for layer_state in self.state.layers: if hasattr(layer_state, 'layer'): lyr = layer_state.layer