Skip to content

Commit

Permalink
fix(typo): Fix spelling mistake in the name of components
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey committed May 14, 2020
1 parent 558d429 commit ea489e3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# @license GPL-3.0+ <http://spdx.org/licenses/GPL-3.0+>

"""
Perform simple arithmatic operations between Data Collections. For example,
Perform simple arithmetic operations between Data Collections. For example,
adding two Data Collections together, subtracting one collection from another,
or multiplying/dividing a data in a collection by a factor.
-
Expand Down Expand Up @@ -44,7 +44,7 @@
the two data inputs.
"""

ghenv.Component.Name = "LB Arithmatic Operation"
ghenv.Component.Name = "LB Arithmetic Operation"
ghenv.Component.NickName = 'ArithOp'
ghenv.Component.Message = '0.1.0'
ghenv.Component.Category = 'Ladybug'
Expand All @@ -63,11 +63,11 @@


if all_required_inputs(ghenv.Component):
# build the arithmatic statement
# build the arithmetic statement
operator = '+' if _operator_ is None else _operator_
statement = 'data_1 {} data_2'.format(operator)

# perform the arithmatic operation
# perform the arithmetic operation
data = []
for data_1, data_2 in zip(_data_1, _data_2):
result = eval(statement, {'data_1': data_1, 'data_2': data_2}) # I love Python!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# @license GPL-3.0+ <http://spdx.org/licenses/GPL-3.0+>

"""
Perform a "mass" arithmatic operation between Data Collections. For example,
Perform a "mass" arithmetic operation between Data Collections. For example,
adding a list of Data Collections into one Data Collection.
-
Note that Data Collections must be aligned in order for this component to run
Expand All @@ -20,7 +20,7 @@
-
Args:
_data: A list of Data Collections to be used in the arithmatic operation.
_data: A list of Data Collections to be used in the arithmetic operation.
_operator_: Text for the operator to use between the Data Collections.
Valid examples include (+, -, *, /). By default this is + for addition.
type_: Optional text for a new "type" key in the Data Collection's metadata.
Expand All @@ -32,7 +32,7 @@
the two data inputs.
"""

ghenv.Component.Name = "LB Mass Arithmatic Operation"
ghenv.Component.Name = "LB Mass Arithmetic Operation"
ghenv.Component.NickName = 'MassArithOp'
ghenv.Component.Message = '0.1.0'
ghenv.Component.Category = 'Ladybug'
Expand All @@ -46,11 +46,11 @@


if all_required_inputs(ghenv.Component):
# build the arithmatic statement
# build the arithmetic statement
operator = '+' if _operator_ is None else _operator_
statement = 'data {} data_i'.format(operator)

# perform the arithmatic operation
# perform the arithmetic operation
data = _data[0]
for data_i in _data[1:]:
data = eval(statement, {'data': data, 'data_i': data_i}) # I love Python!
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit ea489e3

Please sign in to comment.