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: return the correct size for custom container objects #547

Merged
merged 2 commits into from
Feb 5, 2024

Conversation

WinPlay02
Copy link
Contributor

@WinPlay02 WinPlay02 commented Feb 5, 2024

Summary:

  • feat: return the correct size for custom container objects

This is needed to correctly evaluate whether an object is worth memoizing or keeping in the cache.

See for context: Safe-DS/Runner#51 and Safe-DS/Runner#44

For future container classes (like e.g. image set this would also need to be added, to be compatible with the memoizing implementation in the runner)

This is needed to correctly evaluate whether an object is worth memoizing or keeping in the cache.

See for context: Safe-DS/Runner#51 and Safe-DS/Runner#44
Copy link

codecov bot commented Feb 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4fe3baf) 100.00% compared to head (d29f616) 100.00%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #547   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           50        50           
  Lines         2831      2852   +21     
=========================================
+ Hits          2831      2852   +21     

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

@WinPlay02 WinPlay02 marked this pull request as ready for review February 5, 2024 16:32
@WinPlay02 WinPlay02 requested a review from a team as a code owner February 5, 2024 16:32
Copy link
Member

@lars-reimann lars-reimann left a comment

Choose a reason for hiding this comment

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

Looks great. I only have a small request: Please move the new __sizeof__ methods towards the beginning of the classes, where the other dunder methods (e.g. __eq__ and __hash__ are listed). That makes it easier to find them in the rather large classes.

It's not that important how the dunder methods themselves are sorted, but if you want to follow the pattern used previously, list __init__ first and sort the rest alphabetically.

fix: count missed keys + values in schema
Copy link
Member

@lars-reimann lars-reimann left a comment

Choose a reason for hiding this comment

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

Nice work.

@lars-reimann lars-reimann merged commit f44c34d into Safe-DS:main Feb 5, 2024
8 checks passed
lars-reimann pushed a commit that referenced this pull request Feb 6, 2024
## [0.19.0](v0.18.0...v0.19.0) (2024-02-06)

### Features

* return the correct size for custom container objects ([#547](#547)) ([f44c34d](f44c34d))
@lars-reimann
Copy link
Member

🎉 This PR is included in version 0.19.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lars-reimann lars-reimann added the released Included in a release label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Included in a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants