From 7378f24e8f01040b045707ead71ca80f97635bf2 Mon Sep 17 00:00:00 2001 From: MilesCranmer Date: Wed, 7 Aug 2024 17:41:57 -0400 Subject: [PATCH] refactor: avoid disabling PythonCall GC as no longer required --- pysr/sr.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pysr/sr.py b/pysr/sr.py index 0054ce50..a82ac90f 100644 --- a/pysr/sr.py +++ b/pysr/sr.py @@ -39,7 +39,6 @@ from .feature_selection import run_feature_selection from .julia_extensions import load_required_packages from .julia_helpers import ( - PythonCall, _escape_filename, _load_cluster_manager, jl_array, @@ -1886,7 +1885,6 @@ def _run( else: jl_y_variable_names = None - PythonCall.GC.disable() out = SymbolicRegression.equation_search( jl_X, jl_y, @@ -1913,7 +1911,6 @@ def _run( progress=progress and self.verbosity > 0 and len(y.shape) == 1, verbosity=int(self.verbosity), ) - PythonCall.GC.enable() self.julia_state_stream_ = jl_serialize(out)