ae51454c8dd6a76768d6a87589a80f75b1bfda49,brian2/equations/equations.py,Equations,check_units,#Equations#Any#Any#Any#,678
Before Change
except DimensionMismatchError as dme:
raise DimensionMismatchError(("Differential equation defining "
"%s does not use consistent units: %s") %
(var, dme.desc), *dme.dims)
elif eq.eq_type == STATIC_EQUATION:
try:
eq.expr.check_units(self.units[var], unit_namespace)
After Change
DimensionMismatchError
In case of any inconsistencies.
"""
external = frozenset().union(*[expr.identifiers
for _, expr in self.eq_expressions])
external -= set(specifiers.keys())
resolved_namespace = namespace.resolve_all(external,
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: brian-team/brian2
Commit Name: ae51454c8dd6a76768d6a87589a80f75b1bfda49
Time: 2013-05-03
Author: marcel.stimberg@ens.fr
File Name: brian2/equations/equations.py
Class Name: Equations
Method Name: check_units
Project Name: pgmpy/pgmpy
Commit Name: a25eae5ec137b743faefc6f733b9bbc8fcb1011b
Time: 2014-12-23
Author: ankurankan@gmail.com
File Name: pgmpy/inference/ExactInference.py
Class Name: VariableElimination
Method Name: query
Project Name: stanford-mast/nn_dataflow
Commit Name: ceabbb951e0d7e944f398b0e5dced5e95655b741
Time: 2019-01-07
Author: mgao12@stanford.edu
File Name: nn_dataflow/core/network.py
Class Name: Network
Method Name: firsts
Project Name: nilmtk/nilmtk
Commit Name: 8bc38a47c7b783a847a9594d247e84910ee05fa3
Time: 2014-12-15
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: dataframe_of_meters