Skip to content

Commit

Permalink
changed n-body abstraction of Tsec to take the minimum of the set of …
Browse files Browse the repository at this point in the history
…trios, this does not effect any tests since all training/testing is done on three planet case
  • Loading branch information
Elio Thadhani committed Dec 24, 2024
1 parent a24aa8d commit 7f970f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spock/featureclassifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ def run(self, s):

trios = [[j, j+1, j+2] for j in range(1, s.N_real - 2)] # list of adjacent trios

maxList = []
minList = []
for each in trios:
maxList.append(ClassifierSeries.getsecT(s, each)) # gets secular time
intT = TIMES_TSEC * max(maxList)# finds the trio with longest time scale
minList.append(ClassifierSeries.getsecT(s, each)) # gets secular time
intT = TIMES_TSEC * min(minList)# finds the trio with longest time scale
if intT > 1e6:
intT = 1e6 # check to make sure time scale is not way to long
warnings.warn('Sim Tsec > 1e6 orbits of inner most planet '\
Expand Down

0 comments on commit 7f970f7

Please sign in to comment.