Skip to content

add register_pickle_by_value#16

Merged
superstar54 merged 1 commit intomainfrom
add_pickle_option
Feb 11, 2025
Merged

add register_pickle_by_value#16
superstar54 merged 1 commit intomainfrom
add_pickle_option

Conversation

@superstar54
Copy link
Member

@superstar54 superstar54 commented Feb 11, 2025

By enabling register_pickle_by_value=True, the function is serialized by value instead of being referenced by its module path. This embeds the function unpickled even if the original module is unavailable on the remote computer.

Note: If the function contains import statements, the imported modules must still be installed on the remote computer.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 90.90909% with 2 lines in your changes missing coverage. Please review.

Project coverage is 88.04%. Comparing base (839e3ba) to head (6cfca02).

Files with missing lines Patch % Lines
src/aiida_pythonjob/utils.py 90.47% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
+ Coverage   87.88%   88.04%   +0.16%     
==========================================
  Files          14       14              
  Lines         652      661       +9     
==========================================
+ Hits          573      582       +9     
  Misses         79       79              

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

@superstar54 superstar54 merged commit 3b0f48f into main Feb 11, 2025
5 checks passed
@superstar54 superstar54 deleted the add_pickle_option branch February 11, 2025 17:31
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