File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -522,15 +522,15 @@ def _loadLibrary(self, libraries: list):
522522 '1)["Modelica"]\n '
523523 '2)[("Modelica","3.2.3"), "PowerSystems"]\n ' )
524524
525- def setWorkDirectory (self , customBuildDirectory : Optional [str | os .PathLike ] = None ) -> OMCPath :
525+ def setWorkDirectory (self , work_directory : Optional [str | os .PathLike ] = None ) -> OMCPath :
526526 """
527527 Define the work directory for the ModelicaSystem / OpenModelica session. The model is build within this
528528 directory. If no directory is defined a unique temporary directory is created.
529529 """
530- if customBuildDirectory is not None :
531- workdir = self ._session .omcpath (customBuildDirectory ).absolute ()
530+ if work_directory is not None :
531+ workdir = self ._session .omcpath (work_directory ).absolute ()
532532 if not workdir .is_dir ():
533- raise IOError (f"Provided work directory does not exists: { customBuildDirectory } !" )
533+ raise IOError (f"Provided work directory does not exists: { work_directory } !" )
534534 else :
535535 workdir = self ._session .omcpath_tempdir ().absolute ()
536536 if not workdir .is_dir ():
@@ -2048,7 +2048,7 @@ def prepare(self) -> int:
20482048
20492049 build_dir = self ._resultpath / f"DOE_{ idx_pc_structure :09d} "
20502050 build_dir .mkdir ()
2051- self ._mod .setWorkDirectory (customBuildDirectory = build_dir )
2051+ self ._mod .setWorkDirectory (work_directory = build_dir )
20522052
20532053 sim_param_structure = {}
20542054 for idx_structure , pk_structure in enumerate (param_structure .keys ()):
You can’t perform that action at this time.
0 commit comments