Skip to content

Conversation

@tvatter
Copy link
Contributor

@tvatter tvatter commented Jan 10, 2025

Because why not...

Also, I need it in stuff like

from concurrent.futures import ProcessPoolExecutor, as_completed
from vines_forest import VinesForest

with ProcessPoolExecutor() as executor:
        futures = {
          executor.submit(
            VinesForest.fit_random_vine, data, seed_i, self.controls
          ): seed_i
          for seed_i in seeds
        }

Because stuff likes that in Python requires objects to be picklable as pickle is the default Python object serialization.

@tvatter tvatter merged commit 62208c6 into dev Feb 8, 2025
44 of 45 checks passed
@tvatter tvatter deleted the pickling branch February 8, 2025 20:31
@tvatter tvatter mentioned this pull request Feb 8, 2025
tnagler pushed a commit that referenced this pull request Feb 9, 2025
* Add pickling feature (#168)

* Add pickling feature

* Small typo

* modify tests

* Make pickling safer with new FitControlsConfig

* bump version number

* upgrade nanobind (#171)

* upgrade nanobind

* unit test

* upgrade changelog

* correct unit tests

* Upgrade to vinecopulib 0.7.1 (#173)

* Remove codacy (#174)

* Update changelog
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