OpenPNM icon indicating copy to clipboard operation
OpenPNM copied to clipboard

An error is reported when this case is executed (relative_permeability_metrics.ipynb)

Open kviitly opened this issue 2 years ago • 4 comments

Discussed in https://github.com/PMEAL/OpenPNM/discussions/2499

Originally posted by QRW-bot July 4, 2022 hello,dear development team. Thanks to this open source project, it is convenient for me to learn pore network simulation. While running the relative penetration simulation case (relative_permeability_metrics.ipynb) provided by the website, An error is reported, that is "'NoneType' object has no attribute 'keys'". image This line of code seems to get a collection of 'flow_inlets', but it doesn't seem to have typed 'flow_inlets'. How to solve this error please

kviitly avatar Jul 05 '22 11:07 kviitly

Got a same problem

kviitly avatar Jul 05 '22 11:07 kviitly

Can you tell me what version of openpnm you are using? If you do op.__version__ at the python command line what do you get?

jgostick avatar Jul 06 '22 02:07 jgostick

Yes, sure, i have '2.8.2' version image

kviitly avatar Jul 07 '22 07:07 kviitly

OK, thanks. Just wanted to make sure your problem wasn't from something old or still in development.

Looking at your error it seems that flow inlets have not been set. Had they been set, then the call to settings['flow_inlets'] would have found them. So, are you running the example notebook exactly as it is on the site, or have you made some customization to it?

jgostick avatar Jul 07 '22 13:07 jgostick

In V3 we have removed all the pre-written metrics in favor of detailed examples with explanations. Since V3 will be released soon, I am going to close this issue.

jgostick avatar Aug 22 '22 14:08 jgostick