Skip to content

Commit

Permalink
Query length of time array to determine n_int
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin218 committed Oct 17, 2022
1 parent c16d2b7 commit b67b937
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/eureka/S6_planet_spectra/s6_spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,9 @@ def convert_s5_LC(meta, log):
# Get remaining column names and number
colnames = lc_table.colnames
n_col = len(colnames)
n_int = len(time)
# Create numpy array to hold data
lc_array = np.zeros((n_col, niter, meta.n_int))
lc_array = np.zeros((n_col, niter, n_int))
else:
lc_table.remove_column('time')
# Assign remaining values to array
Expand Down

0 comments on commit b67b937

Please sign in to comment.