-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modellen vergelijken #229
Comments
@rbruijnshkv @DanielTollenaar Can you comment here on your proposed/expected API? def equals(modela, modelb): boolean # what should this compare We can compare on the network topology (same nodes, same links), and if so (if topology is not equal I expect a comparison on individual node tables doesn't make sense?) we can print the difference in tables? Do we consider spatial differences to count, or is it topology only? It can be quite a list, is that wanted/expected? Do we want compare to work on individual node(tables)? |
My two cents:
|
As a model developer I want to be able to efficiently check if two models are equal, that basically covers all in database.gpkg (and theoretically toml-file, but let's skip that for now). What would be convenient: Something that could work: Than I can use @rbruijnshkv anything to add? |
Great suggestions so far—I agree. It would be helpful to have functionality that allows the "meta_" columns to be ignored during difference comparisons. I often add additional information (sometimes temporarily) in these columns, which is later used to fill i.e. the control of connection nodes. Having the ability to exclude them would make it easier to identify where the model starts to deviate, which would be very helpful for debugging. |
Zou in de Ribasim-NL Model klasse kunnen, maar Ribasim Python is misschien beter.
model.equals --> True/False
model.diff/compare --> lijst met tabellen die niet gelijk zijn?
model.diff/compare -->objecten die niet gelijk zijn?
Zie ook https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.compare.html
The text was updated successfully, but these errors were encountered: