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

feat: allow transient variables to return any kind of data #389

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

tmichela
Copy link
Member

@tmichela tmichela commented Feb 10, 2025

The Cell object does validation to ensure data can be saved in HDF5, since transient vars are not saved, we can bypass this to return any kind of data.
This is particularly useful, e.g. if you want to filter your DataCollection and have other vars depending on it.

@tmichela tmichela requested a review from takluyver February 10, 2025 09:09
Copy link

codecov bot commented Feb 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.10%. Comparing base (245ff00) to head (3eb3107).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #389      +/-   ##
==========================================
+ Coverage   76.08%   76.10%   +0.01%     
==========================================
  Files          33       33              
  Lines        5507     5511       +4     
==========================================
+ Hits         4190     4194       +4     
  Misses       1317     1317              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@takluyver
Copy link
Member

LGTM

@tmichela tmichela merged commit 64c80c2 into master Feb 10, 2025
6 checks passed
@tmichela tmichela deleted the feat/transient-vars-returned-objects branch February 10, 2025 12:36
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