Skip to content

Add pickling to SRTTransform#2914

Merged
j9ac9k merged 4 commits intopyqtgraph:masterfrom
outofculture:pickles
Feb 14, 2024
Merged

Add pickling to SRTTransform#2914
j9ac9k merged 4 commits intopyqtgraph:masterfrom
outofculture:pickles

Conversation

@outofculture
Copy link
Copy Markdown
Contributor

These two classes can be safely pickled, so we may as well. Note: lots of other classes have the saveState and restoreState methods, which suggests we could do this in more places, but these two were the only objects that worked when I tried the naive approaches of __getstate__/__setstate__ or basic __reduce__. If there's interest, we could investigate further implementations.

Other Tasks

Bump Dependency Versions

Files that need updates

Confirm the following files have been either updated or there has been a determination that no update is needed.

  • README.md
  • setup.py
  • tox.ini
  • .github/workflows/main.yml and associated requirements.txt and conda environemt.yml files
  • pyproject.toml
  • binder/requirements.txt
Pre-Release Checklist

Pre Release Checklist

  • Update version info in __init__.py
  • Update CHANGELOG primarily using contents from automated changelog generation in GitHub release page
  • Have git tag in the format of pyqtgraph-
Post-Release Checklist

Steps To Complete

  • Append .dev0 to __version__ in __init__.py
  • Announce on mail list
  • Announce on Twitter

@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented Feb 14, 2024

Thanks @outofculture this LGTM.

@j9ac9k j9ac9k merged commit fcae8ab into pyqtgraph:master Feb 14, 2024
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.

2 participants