Skip to content

Commit

Permalink
Get rid of creator and wrapper caches
Browse files Browse the repository at this point in the history
Signed-off-by: liamhuber <[email protected]>
  • Loading branch information
liamhuber committed Dec 19, 2024
1 parent 829daab commit 5efd3c9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pyiron_workflow/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from abc import ABC
from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor
from functools import lru_cache

from executorlib import Executor as ExecutorlibExecutor
from pyiron_snippets.dotdict import DotDict
Expand Down Expand Up @@ -44,35 +43,30 @@ def __init__(self):
self.function_node = function_node

@property
@lru_cache(maxsize=1)
def standard(self):
from pyiron_workflow.nodes import standard

return standard

@property
@lru_cache(maxsize=1)
def for_node(self):
from pyiron_workflow.nodes.for_loop import for_node

return for_node

@property
@lru_cache(maxsize=1)
def macro_node(self):
from pyiron_workflow.nodes.macro import macro_node

return macro_node

@property
@lru_cache(maxsize=1)
def Workflow(self):
from pyiron_workflow.workflow import Workflow

return Workflow

@property
@lru_cache(maxsize=1)
def meta(self):
from pyiron_workflow.nodes.transform import inputs_to_list, list_to_outputs

Expand All @@ -84,7 +78,6 @@ def meta(self):
)

@property
@lru_cache(maxsize=1)
def transformer(self):
from pyiron_workflow.nodes.transform import (
dataclass_node,
Expand Down Expand Up @@ -117,14 +110,12 @@ class Wrappers(metaclass=Singleton):
as_function_node = staticmethod(as_function_node)

@property
@lru_cache(maxsize=1)
def as_macro_node(self):
from pyiron_workflow.nodes.macro import as_macro_node

return as_macro_node

@property
@lru_cache(maxsize=1)
def as_dataclass_node(self):
from pyiron_workflow.nodes.transform import as_dataclass_node

Expand Down

0 comments on commit 5efd3c9

Please sign in to comment.