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

Investigate some warnings in the tests #10091

Open
4 tasks
micheles opened this issue Oct 25, 2024 · 0 comments
Open
4 tasks

Investigate some warnings in the tests #10091

micheles opened this issue Oct 25, 2024 · 0 comments

Comments

@micheles
Copy link
Contributor

micheles commented Oct 25, 2024

  • fiona warning
 $ pytest openquake/commands/ -k test_convert_mixed_nrml_from_gpkg
  <frozen _collections_abc>:918: FionaDeprecationWarning: instances of this class -- CRS, geometry, and feature objects -- will become immutable in fiona version 2.0
  • chiou_youngs warning
openquake/hazardlib/tests/gsim/chiou_youngs_2014_test.py::BooreEtAl2022Adjustments::test_stress_and_path_adjustments
  /home/michele/oq-engine/openquake/hazardlib/gsim/chiou_youngs_2014.py:500: RuntimeWarning: invalid value encountered in divide
    nl0 = f_nl_scaling * (y_ref / (y_ref + C["phi4"]))
  • pytz warning (there is nothing we can do about this, since pandas will depend on pytz at least until version 3.0 :-()
  /home/michele/openquake/lib64/python3.12/site-packages/pytz/tzinfo.py:27: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
    _epoch = datetime.utcfromtimestamp(0)
  • Django warnings (we will have to wait for Django 5.0 for this one)
/home/michele/openquake/lib64/python3.12/site-packages/django/conf/__init__.py:267: RemovedInDjango50Warning: The USE_L10N setting is deprecated. Starting with Django 5.0, localized formatting of data will always be enabled. For example Django will display numbers and dates using the format of the current locale.
    warnings.warn(USE_L10N_DEPRECATED_MSG, RemovedInDjango50Warning)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant