Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed May 27, 2024
1 parent 04a1986 commit b27212b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygmt/src/x2sys_cross.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def x2sys_cross(
t_or_i = result.columns[2][0] # "t" or "i".
to_func = {"t": pd.to_datetime, "i": pd.to_timedelta}[t_or_i]
to_args = {"unit": {"d": "D", "s": "s"}[time_unit]}
if t_or_i == "i":
if t_or_i == "t":
to_args["origin"] = lib.get_default("TIME_EPOCH")

result[result.columns[2:4]] = result[result.columns[2:4]].apply(
Expand Down

0 comments on commit b27212b

Please sign in to comment.