Skip to content

Commit

Permalink
merge adler_day changes from main
Browse files Browse the repository at this point in the history
  • Loading branch information
jrob93 committed Nov 7, 2024
2 parents cf65398 + 7da879f commit 0c8fd35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/adler/adler_day.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from adler.objectdata.AdlerPlanetoid import AdlerPlanetoid
from adler.science.PhaseCurve import PhaseCurve
import os
import pandas as pd
import astropy.units as u
import numpy as np
Expand All @@ -24,10 +25,12 @@ def run_adler_day(ssobject_list):
planetoid = AdlerPlanetoid.construct_from_cassandra(ssoid, date_range=[60290.0, 61902])

try:
planetoid.attach_previous_adler_data("adler-day-testing.db")
dirname = os.path.dirname(__file__)
database_path = os.path.join(dirname, "../../tests/data/adler-day-testing.db")
planetoid.attach_previous_adler_data(database_path)
previousAdlerData = True # this could be a flag on the AdlerPlanetoid object
except ValueError:
# no AdlerData for this object ID as yet
print("No data found for this object in AdlerDatabase.")
previousAdlerData = False

for filt in planetoid.filter_list:
Expand Down
Binary file added tests/data/adler-day-testing.db
Binary file not shown.

0 comments on commit 0c8fd35

Please sign in to comment.