Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/strptime osmose format #217

Merged

Conversation

Gautzilla
Copy link
Contributor

This PR fixes a bug where the timestamp strings in OSmOSE format were not correctly parsed to Timestamps.

It also:

  • resolves ambiguity with the %f strftime code, which should now account for precision from 10⁻¹ up to 10⁻⁶ second.
  • fixes a bug with the tests where 2 tests had duplicate names and only one of them was ran by pytest
  • change [0-9] to \d in the regex expressions

Note that the pandas.to_date function used by strptime_from_time allows for a precision up to 10⁻⁹ second. It was not implemented in the current PR, but it would require very minor changes to the code for implementing it.

@Gautzilla Gautzilla added the short term Issue that takes a short time to be corrected label Oct 23, 2024
@Gautzilla Gautzilla requested a review from mathieudpnt October 23, 2024 08:21
@Gautzilla Gautzilla self-assigned this Oct 23, 2024
@Gautzilla Gautzilla merged commit ecaf003 into Project-OSmOSE:main Oct 23, 2024
1 check passed
@Gautzilla Gautzilla deleted the hotfix/strptime-osmose-format branch October 23, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
short term Issue that takes a short time to be corrected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants