File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
src/power_grid_model_ds/_core/model/graphs Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change 66
77import dataclasses
88from dataclasses import dataclass
9- from pathlib import PosixPath
109from typing import Generator
1110
1211import numpy as np
@@ -119,15 +118,6 @@ def make_inactive(self, branch: BranchArray) -> None:
119118 graph .delete_branch (from_ext_node_id = from_node , to_ext_node_id = to_node )
120119 setattr (self , field .name , graph )
121120
122- def cache (self , cache_dir : PosixPath , compress : bool ) -> PosixPath :
123- """Cache the container into a folder with .pkl and graph files"""
124- cache_dir .mkdir (parents = True , exist_ok = True )
125-
126- for field in self .graph_attributes :
127- graph = getattr (self , field .name )
128- graph .cache (cache_dir = cache_dir , graph_name = field .name , compress = compress )
129- return cache_dir
130-
131121 @classmethod
132122 def from_arrays (cls , arrays : MinimalGridArrays ) -> "GraphContainer" :
133123 """Build from arrays"""
You can’t perform that action at this time.
0 commit comments