Skip to content

Commit

Permalink
#24 remove datablock selection from panel creator
Browse files Browse the repository at this point in the history
  • Loading branch information
funkchaser committed May 6, 2024
1 parent 33d3164 commit 598c319
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
5 changes: 2 additions & 3 deletions src/aixd_ara/components/ara_DataObjectsNames/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,11 @@ def make_Panel(NickName, UserText, Pivot, Bounds):

errors = ""

if not datablock:
datablock = ["design_parameters", "performance_attributes", "inputML", "outputML"] # all datablock names
datablocks = ["design_parameters", "performance_attributes", "inputML", "outputML"] # all datablock names

if get_names:

for i, datablock_nickname in enumerate(datablock):
for i, datablock_nickname in enumerate(datablocks):
panel_title = datablock_nickname
response = get_dataobject_names_from_block(session_id(), datablock_nickname)
text_items = response["names"]
Expand Down
8 changes: 1 addition & 7 deletions src/aixd_ara/components/ara_DataObjectsNames/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,12 @@
"nickname": "DataObjectsNames",
"category": "ARA",
"subcategory": "1 Data",
"description": "Generates panels with list of names of data objects for all or selected data blocks. Data block names are: 'design_parameters','performance_attributes','inputML','outputML'. " ,
"description": "Generates panels with list of names of data objects for all existing data blocks." ,
"exposure": 4,
"ghpython": {
"isAdvancedMode": false,
"iconDisplay": 0,
"inputParameters": [
{
"name": "datablock",
"description": "Name(s) of the datablock(s).",
"typeHintID": "str",
"scriptParamAccess": 1
},
{
"name": "get_names",
"description": "Set to True to run.",
Expand Down
Binary file not shown.

0 comments on commit 598c319

Please sign in to comment.