File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -518,15 +518,15 @@ def _loadLibrary(self, libraries: list):
518518 '1)["Modelica"]\n '
519519 '2)[("Modelica","3.2.3"), "PowerSystems"]\n ' )
520520
521- def setWorkDirectory (self , customBuildDirectory : Optional [str | os .PathLike ] = None ) -> OMCPath :
521+ def setWorkDirectory (self , work_directory : Optional [str | os .PathLike ] = None ) -> OMCPath :
522522 """
523523 Define the work directory for the ModelicaSystem / OpenModelica session. The model is build within this
524524 directory. If no directory is defined a unique temporary directory is created.
525525 """
526- if customBuildDirectory is not None :
527- workdir = self ._session .omcpath (customBuildDirectory ).absolute ()
526+ if work_directory is not None :
527+ workdir = self ._session .omcpath (work_directory ).absolute ()
528528 if not workdir .is_dir ():
529- raise IOError (f"Provided work directory does not exists: { customBuildDirectory } !" )
529+ raise IOError (f"Provided work directory does not exists: { work_directory } !" )
530530 else :
531531 workdir = self ._session .omcpath_tempdir ().absolute ()
532532 if not workdir .is_dir ():
@@ -2044,7 +2044,7 @@ def prepare(self) -> int:
20442044
20452045 build_dir = self ._resultpath / f"DOE_{ idx_pc_structure :09d} "
20462046 build_dir .mkdir ()
2047- self ._mod .setWorkDirectory (customBuildDirectory = build_dir )
2047+ self ._mod .setWorkDirectory (work_directory = build_dir )
20482048
20492049 sim_param_structure = {}
20502050 for idx_structure , pk_structure in enumerate (param_structure .keys ()):
You can’t perform that action at this time.
0 commit comments