Replies: 2 comments
-
The saving and loading of networks is really only meant for data. If you want to save the whole thing, models and all, you need to just pickle it. If you load in some data, the thought is that you don't need the models anymore since the data is already present. In V3 we scaled back the save/load functionality because it was trying to do too much. |
Beta Was this translation helpful? Give feedback.
0 replies
-
OK, I see, thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm running a flow simulation from a nework that I saved to csv and I'm importing then importing it (
network_fromcsv
)I have some issues that I believe they related to importing from csv:
I can't print the network --
print(pn)
givesTypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
I can print all parameters, e.g.
pn['pores.all']
and run the simulation.I don't know why
network_from_csv()
assigns empty cells to NaN, so to be able to open it I have modified the function locally by addinglow_memory=False
The most important issue is that I can't run
regenerate_models()
. If I runregenerate_models(propnames = None)
I getIndexError: arrays used as indices must be of integer (or boolean) type
Any ideas? Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions