Skip to content

Commit 3b2da9c

Browse files
Cast to arrays (#156)
* Cast to arrays * Fix code typo
1 parent 3142dda commit 3b2da9c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

fink_utils/tg_bot/utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,12 @@ def get_curve(
422422
# Rescale dates
423423
dates = np.array([i - jd[-1] for i in jd])
424424

425+
# work with arrays
426+
fid = np.array(fid)
427+
magpsf = np.array(magpsf)
428+
sigmapsf = np.array(sigmapsf)
429+
diffmaglim = np.array(diffmaglim)
430+
425431
# loop over filters
426432
plt.figure(num=1, figsize=(12, 4))
427433

0 commit comments

Comments
 (0)