Skip to content

Date parsing warning. #103

Description

@darrendezeeuw

I am seeing the following warning when using hapiclient in Kamodo. I have version 0.3.1 installed of hapiclient. I have not tried with other Python versions, this warning was using Pythobn 3.10.

/Users/ddezeeuw/micromamba/envs/NEW310/lib/python3.10/site-packages/hapiclient/hapitime.py:271: UserWarning:

Could not infer format, so each element will be parsed individually, falling back to dateutil. To ensure parsing is consistent and as-expected, please specify a format.

Activity

  1. rweigel commented on Jul 14, 2026

    @rweigel
    Collaborator

    This is due to

    Time = pandas.to_datetime(Time).tz_convert(tzinfo).to_pydatetime()
    

    It is an annoying new behavior by the Pandas reader. It is the fastest time parser, but they recently changed its behavior.

    Do you think I should suppress this warning in hapitime.py?

  2. darrendezeeuw commented on Jul 14, 2026

    @darrendezeeuw
    Author

    If you have tested that the parsing works as expected despite the warning, I would go ahead and suppress it. Glad to know it's a known issue and is nothing to be concerned about.

  3. rweigel commented on Jul 16, 2026

    @rweigel
    Collaborator

    What was the string that triggered the warning? Also, what version of pandas?

  4. darrendezeeuw commented on Jul 17, 2026

    @darrendezeeuw
    Author

    The pandas version is 2.3.3.
    I will have to work to tease out the exact hapiclient call that triggered this as I am calling a Kamodo routine with many hapi calls embedded and many options that tweak the call parameters depending on needs. I will not have time to do that till next week.

  5. linked a pull request that will close this issue103 date parsing warning #104on Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions