Skip to content

Commit

Permalink
Merge pull request #348 from dirac-institute/dep_fix
Browse files Browse the repository at this point in the history
Fix deprecation warning
  • Loading branch information
jeremykubica authored Sep 27, 2023
2 parents 17fd2b5 + 8241902 commit 95701ed
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/kbmod/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,13 @@ def trajectory_from_np_object(result):
The corresponding trajectory object.
"""
trj = kb.Trajectory()
trj.x = int(result["x"])
trj.y = int(result["y"])
trj.vx = float(result["vx"])
trj.vy = float(result["vy"])
trj.flux = float(result["flux"])
trj.lh = float(result["lh"])
trj.obs_count = int(result["num_obs"])
trj.x = int(result["x"][0])
trj.y = int(result["y"][0])
trj.vx = float(result["vx"][0])
trj.vy = float(result["vy"][0])
trj.flux = float(result["flux"][0])
trj.lh = float(result["lh"][0])
trj.obs_count = int(result["num_obs"][0])
return trj

@staticmethod
Expand Down

0 comments on commit 95701ed

Please sign in to comment.