Skip to content

python 3.12 compatibility, plotting and performance updates#2

Open
julffers wants to merge 1 commit into
cdgaete:mainfrom
julffers:python_and_performance_updates
Open

python 3.12 compatibility, plotting and performance updates#2
julffers wants to merge 1 commit into
cdgaete:mainfrom
julffers:python_and_performance_updates

Conversation

@julffers

Copy link
Copy Markdown

Changelog (commit: python 3.12 compatibility, plotting and performance updates)

  • Packaging: Add pyproject.toml (PEP 517, setuptools ≥ 61), set version 0.6.3 and requires-python >= 3.8; remove legacy setup.py-centric packaging.
  • Dependencies: Drop cufflinks from runtime and Read the Docs requirements; keep core stack (plotly, pandas, numba, etc.) in pyproject.toml.
  • Plotting (plot.py): Replace cufflinks / DataFrame.iplot() and offline iplot wiring with native Plotly (graph_objects, make_subplots, plotly.colors) for driving-profile and related notebook plots.
  • Examples / docs: Refresh Visualize_and_Export notebooks (data/base, data/eg3, data/eg4) for Plotly-based distance and consumption plots; align docs/_static/.../Visualize_and_Export.html with the notebook-style distance plot.
  • Export (export.py): Harden optional scenario lookup (cd in self.subscen); round only numeric columns via float64 + round(7) to avoid mixed-dtype issues on the full frame; DIETER-oriented export path uses charge_battery (with explicit float handling) per DIETERpy expectations.
  • Core / performance: Substantial updates in consumption, mobility, and availability for compatibility and performance; smaller follow-ups in charging, tools, and new helpers in functions.
  • CI: Extend .gitlab-ci.yml for the updated Python / build layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant