-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Labels
feature requestRequest for a new feature. (Only lives in Backlog)Request for a new feature. (Only lives in Backlog)
Description
🚀
- Is your feature request essential for your project?
Describe the workflow you want to enable
Now that we have grid objects whose number of attributes and the shape of the attributes can vary from one grid model to another or even among the same grid model (e.g. extra column in bus data frame for demand flexibility, etc), the simple overwriting of __eq__ is not enough anymore.
Describe your proposed implementation, if applicable
- Create a
CompareGridclass living in a newpowersimdata.input.compare_gridmodule - The constructor takes two
Gridobjects - Define multiple methods that compare individual portion of the
Gridobjects, e.g.,compare_branch(). The function would have several parameters such as:columnsthat would define a list of columns to compare,tolthat would define the tolerance on the comparison. Each methods would perform an assertion - Remove the overwriting of
__eq__inpowersimdata.input.grid
Additional context
Some tests would need to be refactored
Metadata
Metadata
Labels
feature requestRequest for a new feature. (Only lives in Backlog)Request for a new feature. (Only lives in Backlog)