File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
src/spatial_reaction_systems Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -108,22 +108,14 @@ end
108
108
109
109
# Since MTK's "isequal" ignores metadata, we have to use a special function that accounts for this.
110
110
# This is important because whether something is an edge parameter is defined in metadata.
111
- const ep_metadata = [ Catalyst. EdgeParameter => true ]
111
+ const ep_metadata = Catalyst. EdgeParameter => true
112
112
function isequivalent (sym1, sym2)
113
113
isequal (sym1, sym2) || (return false )
114
- in_skip_ep_metadata ( md1, md2) || (return false )
115
- in_skip_ep_metadata ( md2, md1) || (return false )
114
+ any (( md1 != ep_metadata) && ! (md1 in sym2 . metadata) for md1 in sym1 . metadata) && (return false )
115
+ any (( md2 != ep_metadata) && ! (md2 in sym1 . metadata) for md2 in sym2 . metadata) && (return false )
116
116
(typeof (sym1) != typeof (sym2)) && (return false )
117
117
return true
118
118
end
119
- # Checks if metadata 1 is in metadata 2 (but always return true if md1 is the edge parameter metadata.
120
- function in_skip_ep_metadata (md1, md2)
121
- (md1 == ep_metadata) && (return true )
122
- for md1 in sym1. metadata
123
- (md1 in md2) || return false
124
- end
125
- return true
126
- end
127
119
128
120
# Implements custom `==`.
129
121
"""
You can’t perform that action at this time.
0 commit comments