Welcome, Guest
Username: Password: Remember me

TOPIC: Make 'convert_to_bnd.py' more generic [python3-trunk]

Make 'convert_to_bnd.py' more generic [python3-trunk] 5 years 7 months ago #33430

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
I am using convert_to_bnd.py for implementing 'blackcrapie' branch functionality.
Commit 12982 in the trunk made significant improvements in the script's usage, hovever, I still need to comment out lines 237 & 238 to make it work:
data[3] = np.maximum(data[3], zeros)
data[4] = np.maximum(data[4], zeros)
Since I am extracting only two variables, these two lines through an error.
I believe these are relics of the past where 4 variable extraction was hardcoded.
Regards,
Costas
The administrator has disabled public write access.

Make 'convert_to_bnd.py' more generic [python3-trunk] 5 years 7 months ago #33444

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Thnaks for the info.

I have pushed the fix.

Cheers,
Yoann
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: cyamin
Moderators: borisb

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