Error loading Riv package with FloPy and USG

97 views
Skip to first unread message

emma white

unread,
Aug 24, 2021, 12:02:46 AM8/24/21
to MODFLOW Users Group
Hi Everyone,

I have a USG model I have loaded with FloPy (version 3.3.4) and all packages load fine except for the RIV and TVM properties packages.  

The grid is unstructured, built with AlgoMesh.

I have tried importing the packages separately with the following:

riv = mu.get_package('riv')
riv = flopy.modflow.ModflowRiv.load(riv_file_path, mu)

But I keep getting an error:

UnboundLocalError: local variable 'pak_parms' referenced before assignment

Has anyone had this problem before and could give me some advice on solving it?

Thanks
Emma



Saul Montoya

unread,
Aug 24, 2021, 10:49:59 AM8/24/21
to mod...@googlegroups.com
Kind of complex problem, there is an issue with the Python arguments where the code is looking for parameters that were not assigned. 

I would recommend to go to the Github repository and search the ModflowRiv.load function and see what is going on there.

Viva el software libre!

Saul Montoya M.Sc.
Director

Dir: Caminos del Inca 288 dpto 302, Surco, Lima 33  |  Tel.: (511) 4491922  | Cel: Nuevo! (51) 984 115 861  |  Web: gidahatari.com



--
You received this message because you are subscribed to the Google Groups "MODFLOW Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modflow+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modflow/198af4cd-02d1-4146-a004-d37e285d8724n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages