FloPy 3.3.5 Load model error "list index out of range" #1383
Replies: 2 comments
-
I had a similar error message when opening a MODFLOW 6 Model that was prepared in Linux on a Windows machine. The NAM file used forward slashes as its path separator and FloPy was expecting the Windows separator (i.e. backslash). Knowing this made it easy to resolve the problem. I would like to raise a bug for this and also offer to fix it. I can provide the steps to reproduce and the error message. What I don't know is what the correct behaviour would be. When opening a model with forward slashes in the NAM file on a Windows machine? Should FloPy
|
Beta Was this translation helpful? Give feedback.
-
Hi @TIPJhonTellez it would be helpful to see the contents of your namefile, as the error traces to code which parses the namefile for model input names/files. It would also be helpful to know if you see the same error with FloPy 3.3.6 or with the current development version 3.3.7 (can be installed with Thanks also @chris-nice-code, if you could provide steps to reproduce your version of the issue that would be great. As for correct behavior, I am still new so will defer here, but something like this seems reasonable:
Opened PR addressing |
Beta Was this translation helpful? Give feedback.
-
thanks for reading. I am currently trying to load a MODFLOW6 simulation with the FloPy library and when migrating to version 3.3.5 I receive the following error "IndexError: list index out of range".
The next code run succesfully in FloPy version 3.3.4 like i write before makes and error the version 3.3.5
CODE:
The next code is the ERROR:
Beta Was this translation helpful? Give feedback.
All reactions