Skip to content

Commit

Permalink
fix(analyze): Fix incorrect docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Apr 6, 2024
1 parent 2ab5f27 commit eeba983
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions ladybug_grasshopper/json/LB_Apply_Conditional_Statement.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.8.0",
"version": "1.8.1",
"nickname": "Statement",
"outputs": [
[
Expand Down Expand Up @@ -32,5 +32,5 @@
"code": "\ntry:\n from ladybug.datacollection import BaseCollection\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug:\\n\\t{}'.format(e))\n\ntry:\n from ladybug_{{cad}}.{{plugin}} import all_required_inputs\nexcept ImportError as e:\n raise ImportError('\\nFailed to import ladybug_{{cad}}:\\n\\t{}'.format(e))\n\n\nif all_required_inputs(ghenv.Component):\n for dat in _data:\n assert isinstance(dat, BaseCollection), '_data must be a data' \\\n ' collection. Got {}.'.format(type(dat))\n\n data = BaseCollection.filter_collections_by_statement(\n _data, _statement)",
"category": "Ladybug",
"name": "LB Apply Conditional Statement",
"description": "Convert a hourly Ladybug data collection to a continuous collection at a\nspecific timestep.\n_\nThis will be done either through linear interpolation or by culling out values\nthat do not fit the timestep. It can also be used to convert a discontinous\ndata collection to a continuous one by linearly interpolating over holes in\nthe data set.\n-"
"description": "Apply a conditional statement to a data collection.\n-"
}
10 changes: 2 additions & 8 deletions ladybug_grasshopper/src/LB Apply Conditional Statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@
# @license AGPL-3.0-or-later <https://spdx.org/licenses/AGPL-3.0-or-later>

"""
Convert a hourly Ladybug data collection to a continuous collection at a
specific timestep.
_
This will be done either through linear interpolation or by culling out values
that do not fit the timestep. It can also be used to convert a discontinous
data collection to a continuous one by linearly interpolating over holes in
the data set.
Apply a conditional statement to a data collection.
-
Args:
Expand All @@ -39,7 +33,7 @@

ghenv.Component.Name = 'LB Apply Conditional Statement'
ghenv.Component.NickName = 'Statement'
ghenv.Component.Message = '1.8.0'
ghenv.Component.Message = '1.8.1'
ghenv.Component.Category = 'Ladybug'
ghenv.Component.SubCategory = '1 :: Analyze Data'
ghenv.Component.AdditionalHelpFromDocStrings = '3'
Expand Down
Binary file not shown.

0 comments on commit eeba983

Please sign in to comment.