Skip to content

Comments

Support Graph pickling#306

Merged
JacobHayes merged 2 commits intogoldenfrom
artifactbox-nested-assignment-and-pickle
Feb 4, 2023
Merged

Support Graph pickling#306
JacobHayes merged 2 commits intogoldenfrom
artifactbox-nested-assignment-and-pickle

Conversation

@JacobHayes
Copy link
Member

@JacobHayes JacobHayes commented Jan 31, 2023

Description

This fixes pickling a Graph object, which was blocked by issues pickling:

  • ArtifactBox - the way we were tracking the nested names was messy and broken when pickling; we can now simplify with some changes upstream to box (pending v7)
  • MemoryBackend - an internal defaultdict referenced an inline lambda, which can't be pickled (why isn't cloudpickle the builtin 😞)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Added tests

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in upstream modules

@JacobHayes JacobHayes self-assigned this Jan 31, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jan 31, 2023

Codecov Report

Merging #306 (57fe0a7) into golden (64be9ce) will not change coverage.
The diff coverage is n/a.

❗ Current head 57fe0a7 differs from pull request most recent head dfa6fd7. Consider uploading reports for the commit dfa6fd7 to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff            @@
##            golden      #306   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           42        42           
  Lines         2599      2599           
  Branches       654       654           
=========================================
  Hits          2599      2599           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@JacobHayes JacobHayes force-pushed the artifactbox-nested-assignment-and-pickle branch 4 times, most recently from c711f52 to 01ff940 Compare February 3, 2023 13:03
@JacobHayes JacobHayes force-pushed the artifactbox-nested-assignment-and-pickle branch from 01ff940 to dfa6fd7 Compare February 4, 2023 06:05
@JacobHayes JacobHayes merged commit 6f58f0b into golden Feb 4, 2023
@JacobHayes JacobHayes deleted the artifactbox-nested-assignment-and-pickle branch February 4, 2023 06:42
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