ml.aquifer_summary() doesn't work for "Model"? #122
-
|
Hi! I am a beginner and just trying to figure it all out. Looking at the references in the help, it should be the same line of code. I build 2 different scripts one for Model and one for ModelMaq, both are called 'ml'. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
|
Hi Vera, if you could post the code snippets, it is often much easier to help you. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @Vera-geo, the two main methods of building a Model in
You are of course right to point out that it is somewhat confusing that |
Beta Was this translation helpful? Give feedback.
-
|
@dbrakenhoff Funnily enough I can't seem to make it work for the 3D either, ModelMaq does still work. ml3d = tfs.Model3D( ml3d.plots.xsection() --> works fine ml3d.aquifer_summary() --> doesn't work ValueError Traceback (most recent call last) File ~\AppData\Local\anaconda3\Lib\site-packages\timflow\steady\model.py:592, in Model.aquifer_summary(self) File ~\AppData\Local\anaconda3\Lib\site-packages\timflow\steady\aquifer.py:183, in AquiferData.summary(self) File ~\AppData\Local\anaconda3\Lib\site-packages\pandas\core\indexing.py:912, in _LocationIndexer.setitem(self, key, value) File ~\AppData\Local\anaconda3\Lib\site-packages\pandas\core\indexing.py:1943, in _iLocIndexer._setitem_with_indexer(self, indexer, value, name) File ~\AppData\Local\anaconda3\Lib\site-packages\pandas\core\indexing.py:1999, in _iLocIndexer._setitem_with_indexer_split_path(self, indexer, value, name) ValueError: Must have equal len keys and value when setting with an iterable |
Beta Was this translation helpful? Give feedback.

Hi @Vera-geo, the two main methods of building a Model in
timflowareModelMaq(a stack of aquifers and leaky layers) andModel3D(a stack of aquifers, where resistance to vertical flow is determined by an anisotropy factor). TheModelclass is a generic entry point that you can use to build more complex layer models (switching between these two options, I believe), but it means you have to provide all the details yourself. I rarely use it, so my guess is you can probably focus on using one ofModelMaqorModel3D?ml.aquifer_summary()works for both of these Model classes.You are of course right to point out that it is somewhat confusing that
aquifer_summary()doesn't work for theModel…