Skip to content

Commit

Permalink
#2 unify/correct component_id names
Browse files Browse the repository at this point in the history
  • Loading branch information
funkchaser committed Apr 10, 2024
1 parent 83949ce commit 31c123f
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/aixd_grasshopper/components/aixd_DatasetCreate/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

cid = component_id(session_id(), ghenv.Component, "create_dataset_object")
cid = component_id(session_id(), ghenv.Component, "DatasetCreate")


design_parameters = [x.data for x in design_parameters]
Expand Down
2 changes: 1 addition & 1 deletion src/aixd_grasshopper/components/aixd_DatasetLoad/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

cid = component_id(session_id(), ghenv.Component, "create_dataset_object")
cid = component_id(session_id(), ghenv.Component, "DatasetLoad")

if load:
st[cid] = load_dataset(session_id())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

cid = component_id(session_id(), ghenv.Component, "dataset_summary")
cid = component_id(session_id(), ghenv.Component, "DatasetSummary")

if get:
st[cid] = dataset_summary(session_id())
Expand Down
2 changes: 1 addition & 1 deletion src/aixd_grasshopper/components/aixd_Generator/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __repr__(self):
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

cid = component_id(session_id(), ghenv.Component, "run_generation")
cid = component_id(session_id(), ghenv.Component, "Generator")


if run and request_ok:
Expand Down
2 changes: 1 addition & 1 deletion src/aixd_grasshopper/components/aixd_ModelDims/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

cid = component_id(session_id(), ghenv.Component, "model_dims")
cid = component_id(session_id(), ghenv.Component, "ModelDims")

if get:
st[cid] = model_input_output_dimensions(session_id())
Expand Down
2 changes: 1 addition & 1 deletion src/aixd_grasshopper/components/aixd_ModelLoad/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

cid = component_id(session_id(), ghenv.Component, "model_load")
cid = component_id(session_id(), ghenv.Component, "ModelLoad")

if not checkpoint_path:
checkpoint_path = ""
Expand Down
2 changes: 1 addition & 1 deletion src/aixd_grasshopper/components/aixd_ModelSetup/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from aixd_grasshopper.gh_ui_helper import component_id
from aixd_grasshopper.gh_ui_helper import session_id

cid = component_id(session_id(), ghenv.Component, "model_setup")
cid = component_id(session_id(), ghenv.Component, "ModelSetup")

settings = {
"inputML": inputML,
Expand Down
2 changes: 1 addition & 1 deletion src/aixd_grasshopper/components/aixd_ModelSummary/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from aixd_grasshopper.gh_ui_helper import component_id
from aixd_grasshopper.gh_ui_helper import session_id

cid = component_id(session_id(), ghenv.Component, "model_summary")
cid = component_id(session_id(), ghenv.Component, "ModelSummary")


if not max_depth:
Expand Down
2 changes: 1 addition & 1 deletion src/aixd_grasshopper/components/aixd_ModelTrain/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from aixd_grasshopper.gh_ui_helper import component_id
from aixd_grasshopper.gh_ui_helper import session_id

cid = component_id(session_id(), ghenv.Component, "model_train")
cid = component_id(session_id(), ghenv.Component, "ModelTrain")


if not epochs or epochs < 1:
Expand Down
2 changes: 1 addition & 1 deletion src/aixd_grasshopper/components/aixd_PlotContours/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from aixd_grasshopper.gh_ui_helper import convert_str_to_bitmap
from aixd_grasshopper.gh_ui_helper import session_id

cid = component_id(session_id(), ghenv.Component, "create_dataset_object")
cid = component_id(session_id(), ghenv.Component, "PlotContours")


if plot:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from aixd_grasshopper.gh_ui_helper import convert_str_to_bitmap
from aixd_grasshopper.gh_ui_helper import session_id

cid = component_id(session_id(), ghenv.Component, "create_dataset_object")
cid = component_id(session_id(), ghenv.Component, "PlotCorrelations")


if plot:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from aixd_grasshopper.gh_ui_helper import convert_str_to_bitmap
from aixd_grasshopper.gh_ui_helper import session_id

cid = component_id(session_id(), ghenv.Component, "create_dataset_object")
cid = component_id(session_id(), ghenv.Component, "PlotDistributions")


if plot:
Expand Down
2 changes: 1 addition & 1 deletion src/aixd_grasshopper/components/aixd_ProjectSetup/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
print("The path {} does not exist and will be now created.".format(complete_path))
os.mkdir(complete_path)

cid = component_id(session_id(), ghenv.Component, "project_setup")
cid = component_id(session_id(), ghenv.Component, "ProjectSetup")

if set:
clear_sticky(ghenv, st)
Expand Down

0 comments on commit 31c123f

Please sign in to comment.