Skip to content

Commit

Permalink
adding TODO comment, fixing up rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorris3 committed May 10, 2023
1 parent 4489399 commit 7e12c8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lcviz/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -223,4 +220,3 @@ class KeplerLightCurveHandler(LightCurveHandler):
class TessLightCurveHandler(LightCurveHandler):
# Works the same as LightCurve
pass
>>>>>>> ff59ea9 (First working subset fixes)
4 changes: 4 additions & 0 deletions lcviz/viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e12c8f

Please sign in to comment.