Deltares / GEOLib

GEOLib: Python wrappers around the input and output files of the Deltares D-Serie models
https://deltares.github.io/GEOLib/
MIT License
22 stars 17 forks source link

D-Foundations set console path #175

Closed Nielszee92 closed 1 month ago

Nielszee92 commented 7 months ago

I have been trying to set the console path for D-Foundations. It looks like the current documentation is a bit outdated there, but the problem i have is that i have only been able to set the console_folder:

df.set_meta_property("console_folder",Path(r"C:\Program Files (x86)\Deltares\D-Foundations 23.1.1"))

This means that Geolib will look in the following folder for the executable: C:\Program Files (x86)\Deltares\D-Foundations 23.1.1\DFoundations\DFoundations.exe

I thought this might be fixed by adjusting the custom_console_folder, but i can't seem to set this. Now i have to add a folder and copy the executable, which isn't a very elegant work-around.

wfaustmann commented 7 months ago

If you are using the latest version of GEOLib, the documentation seems to be up to date. When you are setting the DFOUNDATIONS_CONSOLE_PATH in the geolib.env file, there should be no need to copy the executables manually. If prefer to use this method, make sure that CONSOLE_FOLDER is not set in the environment variables.

MatthiasHauthDeltares commented 6 months ago

This conversation might help: https://github.com/Deltares/GEOLib/pull/165

I'm using the following with geolib 2.3.0

        model.set_meta_property("dstability_console_path", Path(...))
        model.execute()