Welcome, Guest
Username: Password: Remember me

TOPIC: hermes error when used by telapy for parsing SERAFIN file

hermes error when used by telapy for parsing SERAFIN file 2 years 4 months ago #40584

  • huangziyi2017
  • huangziyi2017's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 2
Hi,

error occurs as using hermes for analyzing serafin file:
_hermes.error is related to b'SERAFIN '
Traceback (most recent call last):
File "/home/huang/opentelemac-mascaret/main/scripts/python3/driven_coupling.py", line 81, in <module>
the_coupling(driven_run)
File "/home/huang/opentelemac-mascaret/main/scripts/python3/telapy/coupling/long_cpl_driver.py", line 456, in __call__
self.preparation_model()
File "/home/huang/opentelemac-mascaret/main/scripts/python3/telapy/coupling/long_cpl_driver.py", line 287, in preparation_model
res = TelemacFile('T2DPRE')
File "/home/huang/opentelemac-mascaret/main/scripts/python3/data_manip/extraction/telemac_file.py", line 56, in __init__
HermesFile.__init__(self, file_name,
File "/home/huang/opentelemac-mascaret/main/scripts/python3/telapy/api/hermes.py", line 151, in __init__
HermesFile._hermes.open_mesh(self._fformat,
_hermes.error: try_pyarr_from_string failed

On CentOS 7 system; compilation env is gcc/gfortran-9.3.1; mpi env is OpenMPI-4.1.4; python env is Python-3.9.13.

The configuration file is attached.
Attachments:
The administrator has disabled public write access.

hermes error when used by telapy for parsing SERAFIN file 1 year 9 months ago #41979

Hi,
Has this question already been solved ?
This error also occured on my computer :S . My system is Ubuntu 20.04, intel fortran compiler and mpich2 is used.

zpchen
The administrator has disabled public write access.

hermes error when used by telapy for parsing SERAFIN file 1 year 8 months ago #42186

  • huangziyi2017
  • huangziyi2017's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 2
Not yet.
I removed the compiled _hermes.so api, and use the Python class SerafinFile instead.
The administrator has disabled public write access.

hermes error when used by telapy for parsing SERAFIN file 10 months 3 weeks ago #43894

  • CAMERI_Shai
  • CAMERI_Shai's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 46
  • Thank you received: 4
hi huang,

did you apply changes to all python scripts?
if so, can you share, please? I'm dealing the same problem.

Shai
The administrator has disabled public write access.

hermes error when used by telapy for parsing SERAFIN file 10 months 2 weeks ago #43937

  • huangziyi2017
  • huangziyi2017's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 2
Up to v8p4, I use Python class SerafinFile, rather than hermes.
The administrator has disabled public write access.

hermes error when used by telapy for parsing SERAFIN file 10 months 2 weeks ago #43938

  • huangziyi2017
  • huangziyi2017's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Thank you received: 2
The changes that I applied are issues of numpy dtype "np.int" in "data_manip.formats.serafin_file" and "data_manip.extraction.telemac_file", which raise errors because it's been not supported by Numpy.
The administrator has disabled public write access.
The following user(s) said Thank You: CAMERI_Shai

hermes error when used by telapy for parsing SERAFIN file 10 months 2 weeks ago #43939

  • nicogodet
  • nicogodet's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 157
  • Thank you received: 39
The administrator has disabled public write access.
The following user(s) said Thank You: huangziyi2017

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.