Skip to content

Commit

Permalink
NPI-3688 fix realignment issue in date formatting (year had been padd…
Browse files Browse the repository at this point in the history
…ed to 6 chars as a way of adding leading whitespace, which was confusing)
  • Loading branch information
treefern committed Jan 17, 2025
1 parent a5e49f5 commit c3a90a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnssanalysis/gn_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def j2000_to_igs_dt(j2000_secs: _np.ndarray) -> _np.ndarray:
hour = datetime.astype("datetime64[h]")
minute = datetime.astype("datetime64[m]")

date_y = _pd.Series(year.astype(str)).str.rjust(6).values
date_y = _pd.Series(year.astype(str)).str.rjust(4).values
date_m = _pd.Series(((month - year).astype("int64") + 1).astype(str)).str.rjust(3).values
date_d = _pd.Series(((day - month).astype("int64") + 1).astype(str)).str.rjust(3).values

Expand Down

0 comments on commit c3a90a1

Please sign in to comment.