11"""Defines the TessCoord and TessCoordList classes."""
22from collections import UserList
3- from typing import Union , Optional
3+
4+ # from typing import Union, Optional
45
56import attr
67import numpy as np
@@ -79,41 +80,41 @@ def to_skycoord(self) -> SkyCoord:
7980 crd .obstime = self .time
8081 return crd
8182
82- def is_observed (self ) -> bool :
83- """Returns true if this coordinate has been observed."""
84- return len (self .list_images ()) > 0
85-
86- def list_images (
87- self ,
88- time : Union [str , Time ] = None ,
89- author : str = "spoc" ,
90- provider : Optional [str ] = None ,
91- ):
92- """Returns a `TessImageList` detailing the FFI images which include the coordinate.
93-
94- Parameters
95- ----------
96- author : str
97- "spoc" or "tica"
98-
99- Notes
100- -----
101- This feature will use the `tess-cloud` package to query a catalog of
102- TESS images.
103- """
104- # local import to avoid circular dependency
105- from tess_cloud import list_images
106-
107- if time is None :
108- time = self .time
109- return list_images (
110- sector = self .sector ,
111- camera = self .camera ,
112- ccd = self .ccd ,
113- time = time ,
114- author = author ,
115- provider = provider ,
116- )
83+ # def is_observed(self) -> bool:
84+ # """Returns true if this coordinate has been observed."""
85+ # return len(self.list_images()) > 0
86+
87+ # def list_images(
88+ # self,
89+ # time: Union[str, Time] = None,
90+ # author: str = "spoc",
91+ # provider: Optional[str] = None,
92+ # ):
93+ # """Returns a `TessImageList` detailing the FFI images which include the coordinate.
94+ #
95+ # Parameters
96+ # ----------
97+ # author : str
98+ # "spoc" or "tica"
99+ #
100+ # Notes
101+ # -----
102+ # This feature will use the `tess-cloud` package to query a catalog of
103+ # TESS images.
104+ # """
105+ # # local import to avoid circular dependency
106+ # from tess_cloud import list_images
107+ #
108+ # if time is None:
109+ # time = self.time
110+ # return list_images(
111+ # sector=self.sector,
112+ # camera=self.camera,
113+ # ccd=self.ccd,
114+ # time=time,
115+ # author=author,
116+ # provider=provider,
117+ # )
117118
118119
119120class TessCoordList (UserList ):
@@ -134,29 +135,29 @@ def __eq__(self, obj):
134135 obj .to_pandas ()
135136 )
136137
137- def list_images (
138- self ,
139- time : Union [str , Time ] = None ,
140- author : str = "spoc" ,
141- provider : Optional [str ] = None ,
142- ):
143- """Returns a `TessImageList` detailing the FFI images which include the coordinates.
144-
145- Parameters
146- ----------
147- author : str
148- "spoc" or "tica"
149- """
150- # local import to avoid circular dependency
151- from tess_cloud import TessImageList
152-
153- if len (self ) == 0 :
154- return TessImageList ([])
155-
156- result = self [0 ].list_images (time = time , author = author , provider = provider ).copy ()
157- for img in self [1 :]:
158- result += img .list_images (time = time , author = author , provider = provider )
159- return result
138+ # def list_images(
139+ # self,
140+ # time: Union[str, Time] = None,
141+ # author: str = "spoc",
142+ # provider: Optional[str] = None,
143+ # ):
144+ # """Returns a `TessImageList` detailing the FFI images which include the coordinates.
145+ #
146+ # Parameters
147+ # ----------
148+ # author : str
149+ # "spoc" or "tica"
150+ # """
151+ # # local import to avoid circular dependency
152+ # from tess_cloud import TessImageList
153+ #
154+ # if len(self) == 0:
155+ # return TessImageList([])
156+ #
157+ # result = self[0].list_images(time=time, author=author, provider=provider).copy()
158+ # for img in self[1:]:
159+ # result += img.list_images(time=time, author=author, provider=provider)
160+ # return result
160161
161162 def to_pandas (self ) -> DataFrame :
162163 data = {
0 commit comments