Dear all,
I am using telemac-3D, with python3. I want to extract the last time step of my selafin result file. I tried to use the chop function for runSELAFIN python script.
I cannot import the runSELAFIN module as i get the following error message :
Traceback (most recent call last):
File "C:\telemac-mascaret\scripts\python3\runSELAFIN.py", line 75, in <module>
from config import OptionParser
ImportError: cannot import name 'OptionParser' from 'config' (C:\telemac-mascaret\scripts\python3\config.py)
There is not indeed any OptionParser name in the config.py module. However, the scripts are taken directly from Telemac-python-3 script folder, and no changes were made to them. Would anyone know how to use the Chop function ?
Here are attached the python modules runSELAFIN.py and config.py, as well as two snapshots of error messages, using CMD and Jupyter-Notebook.
Thank you in advance,
Best regards,
Séraphin