Skip to content

Commit cdbefab

Browse files
committed
Web interface compatibility changes
1 parent 8ec058b commit cdbefab

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lcc/db_tier/connectors/ogle_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
class OgleII(LightCurvesDb):
1515
'''
16-
OgleII class is responsible for searching stars in OGLE db according
17-
to query. Then it can download light curves and saved them or retrieve
18-
stars object (with lc, coordinates, name...).
16+
Connector to OGLEII. It is divided into two subdatabases - "phot" and "bvi".
17+
The first one contains light curves and metadata about coordinates, identifiers
18+
and V magnitude. The second one also contains information about V and I.
1919
2020
Identifier of the stars in OgleII db are: field, starid and target.
2121

lcc/stars_processing/systematic_search/stars_searcher.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ def failProcedure(self, query, err=""):
156156
-------
157157
None
158158
'''
159-
raise
160159
warnings.warn("Error occurred during filtering: %s" % err)
161160

162161
def statusFile(self, query, status, delimiter="\t"):
@@ -218,7 +217,6 @@ def queryStars(self, queries):
218217
except (KeyboardInterrupt, SystemExit):
219218
raise
220219
except:
221-
raise
222220
warn("Couldn't download any light curve")
223221
stars = []
224222
# Check if the searched star was found
@@ -244,8 +242,10 @@ def queryStars(self, queries):
244242

245243
# TODO
246244
if self.save_coords and self.stars_filters:
247-
self._saveCoords([one_star.name] +
248-
self.stars_filters[0].getSpaceCoordinates([one_star]).values[0].tolist())
245+
spc = self.stars_filters[
246+
0].getSpaceCoordinates([one_star]).values
247+
if len(spc):
248+
self._saveCoords([one_star.name] + spc[0].tolist())
249249

250250
# Try to apply filters to the star
251251
try:

0 commit comments

Comments
 (0)