arviz-devs / arviz

Exploratory analysis of Bayesian models with Python
https://python.arviz.org
Apache License 2.0
1.56k stars 386 forks source link

Fix for datetime deprecation and standardizing timezone and isoformat (Issue #2327) #2329

Closed imperorrp closed 3 months ago

imperorrp commented 3 months ago

Fix for datetime deprecation issue and standardizing timezone(UTC) and format(isoformat) for datetime updates on concatenating InferenceData (issue #2327 )

Description

The "created_at" default attribute in the make_attrs function in arviz/data/base.py is updated to avoid deprecation as well as work for Python 3.10, which is still supported by ArviZ.

The current_time variable in the concat function in arviz/data/inference-data.py is also updated to use the UTC timezone and is isoformatted.

Checklist


📚 Documentation preview 📚: https://arviz--2329.org.readthedocs.build/en/2329/