Skip to content

Fix for [BUG] Error handling timezones #305 #318

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

Merged
merged 24 commits into from
Mar 6, 2025
Merged

Conversation

jonasvdd
Copy link
Member

@jonasvdd jonasvdd commented Sep 9, 2024

No description provided.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this PR also handle switches to daylight savings time (DST)?

The DST problem is addressed in a reply to the bug report: #305 (comment)

If the DST problem is to be addressed, a test case could be
x = pd.date_range('2024-09-27 17:00:00', '2024-12-11 16:00:00', tz="US/Pacific")

relayout_data = {'xaxis.range[0]': '2024-09-27T17:00:00-07:00', 'xaxis.range[1]': '2024-12-12T15:59:00-08:00'}
or
relayout_data = {'xaxis.range[0]': Timestamp('2024-09-27 17:00:00-0700', tz='US/Pacific'), 'xaxis.range[1]': Timestamp('2024-12-12 15:59:00-0800', tz='US/Pacific')}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a fix and a test for this issue in 5108824

jonasvdd and others added 6 commits February 21, 2025 16:49
* Parametrize test_utils.py on is_figure

* 🔍 remove dtype parsing as orjon>3.10 supports float16 #118

* 💪 refactor: streamline JupyterDash integration and remove unused persistent inline logic

* 💨 move construct_update_data_patch method into the FigureResampler class

* 🐐 refactor: enhance test utilities and add support for Plotly>=6 data handling

* 🙏 enhance serialization tests for plotly>6

* 📝 remove debug print statement and enhance type handling for hf_x

* 🔒 update dependency versions in pyproject.toml to Support plotly 6 #334

* 🔍 drop python3.7 CI workflow and upgrade upload-artifact action

* 🙏 fix pickling of figurewidget resampler

* 🙏 fix tests

* 💨 migration of code towards new upload artifact

* 💪 enhance CI workflow to improve test result uploads and add retention settings

* 🕳️ fix: ensure correct dtype handling for aggregated x indices in PlotlyAggregatorParser

* ⬆️ chore: update dependency constraints for pandas and pyarrow in pyproject.toml

* 🙈 fix linting

* 🔍 fix: correct spelling in streamlit_app.py comments and update dash-extensions and pyarrow versions in requirements.txt

* ⬆️ chore: update ipywidgets version constraint to allow for newer versions

* 🚧 test: set random seed for reproducibility in test_wrap_aggregate

* 🙈 chore: update ipywidgets version constraint for serialization support

* 🙈

* 🔍 ci: conditionally skip tests on Python 3.12 for Ubuntu (as it keeps hanging in github actions)

* 🔍 ci: exclude Python 3.12 on Ubuntu from test matrix to prevent hangs

* 🖊️ review code

* 🧹 cleanup comments

---------

Co-authored-by: Maxim Ivanov <[email protected]>
Co-authored-by: jeroen <[email protected]>
@jonasvdd jonasvdd self-assigned this Mar 5, 2025
@jonasvdd jonasvdd requested a review from jvdd March 5, 2025 16:16
@jonasvdd
Copy link
Member Author

jonasvdd commented Mar 6, 2025

Ready for review @jvdd!

Copy link
Member

@jvdd jvdd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jonasvdd jonasvdd merged commit 7106d68 into main Mar 6, 2025
20 checks passed
@jonasvdd jonasvdd deleted the bug/305_timezones branch March 6, 2025 09:05
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.

5 participants