Skip to content

Commit

Permalink
isort all
Browse files Browse the repository at this point in the history
  • Loading branch information
funkchaser committed Apr 17, 2024
1 parent f9a89c8 commit bcf2359
Show file tree
Hide file tree
Showing 13 changed files with 42 additions and 23 deletions.
8 changes: 5 additions & 3 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import pytest
import compas
import aixd_grasshopper
import math

import compas
import numpy
import pytest

import aixd_grasshopper


def pytest_ignore_collect(path):
Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# flake8: noqa
# -*- coding: utf-8 -*-

from sphinx.writers import html, html5
import sphinx_compas2_theme
from sphinx.writers import html
from sphinx.writers import html5

# -- General configuration ------------------------------------------------

Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from setuptools.command.develop import develop
from setuptools.command.install import install


here = path.abspath(path.dirname(__file__))


Expand Down
6 changes: 4 additions & 2 deletions src/aixd_grasshopper/components/aixd_DatasetCreate/code.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# flake8: noqa
from aixd_grasshopper.gh_ui import create_dataset_object
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

from aixd_grasshopper.gh_ui import create_dataset_object
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, "DatasetCreate")


Expand Down
6 changes: 4 additions & 2 deletions src/aixd_grasshopper/components/aixd_DatasetLoad/code.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# flake8: noqa
from aixd_grasshopper.gh_ui import load_dataset
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

from aixd_grasshopper.gh_ui import load_dataset
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, "DatasetLoad")

if load:
Expand Down
6 changes: 4 additions & 2 deletions src/aixd_grasshopper/components/aixd_DatasetSummary/code.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# flake8: noqa
from aixd_grasshopper.gh_ui import dataset_summary
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

from aixd_grasshopper.gh_ui import dataset_summary
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, "DatasetSummary")

if get:
Expand Down
3 changes: 1 addition & 2 deletions src/aixd_grasshopper/components/aixd_GenSelect/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
# TODO: turn orange if index out of range


from ghpythonlib.treehelpers import list_to_tree

# from aixd_grasshopper.rhino_inside import find_component_by_nickname
import Grasshopper
from ghpythonlib.treehelpers import list_to_tree

dp_pred = predictions[select].dict["design_parameters"]
pa_pred = predictions[select].dict["performance_attributes"]
Expand Down
6 changes: 4 additions & 2 deletions src/aixd_grasshopper/components/aixd_Generator/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ def __repr__(self):
# -------------------------------------------------------------------------------


from aixd_grasshopper.gh_ui import request_designs
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

from aixd_grasshopper.gh_ui import request_designs
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, "Generator")


Expand Down
6 changes: 4 additions & 2 deletions src/aixd_grasshopper/components/aixd_ModelDims/code.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# flake8: noqa
from aixd_grasshopper.gh_ui import model_input_output_dimensions
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

from aixd_grasshopper.gh_ui import model_input_output_dimensions
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, "ModelDims")

if get:
Expand Down
6 changes: 4 additions & 2 deletions src/aixd_grasshopper/components/aixd_ModelLoad/code.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# flake8: noqa
from aixd_grasshopper.gh_ui import model_load
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

from aixd_grasshopper.gh_ui import model_load
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, "ModelLoad")

if not checkpoint_path:
Expand Down
6 changes: 5 additions & 1 deletion src/aixd_grasshopper/components/aixd_ProjectSetup/code.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# flake8: noqa
import os

from scriptcontext import sticky as st

from aixd_grasshopper.gh_ui import project_setup
from aixd_grasshopper.gh_ui_helper import session_id, component_id, clear_sticky
from aixd_grasshopper.gh_ui_helper import clear_sticky
from aixd_grasshopper.gh_ui_helper import component_id
from aixd_grasshopper.gh_ui_helper import session_id

if project_folder and dataset_name:
complete_path = os.path.join(project_folder, dataset_name)
Expand Down
1 change: 0 additions & 1 deletion src/aixd_grasshopper/components/aixd_ShowFolder/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

import os


if open:
os.startfile(path)
7 changes: 5 additions & 2 deletions src/aixd_grasshopper/generate_dataset_rhinoscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@
(Close all other Grasshopper files to avoid confusion.)
"""

import os
import math
import os

import rhinoscriptsyntax as rs

from aixd_grasshopper.gh_ui_helper import http_post_request, find_component_by_nickname, TYPES
from aixd_grasshopper.gh_ui_helper import TYPES
from aixd_grasshopper.gh_ui_helper import find_component_by_nickname
from aixd_grasshopper.gh_ui_helper import http_post_request

try:
import Rhino
Expand Down

0 comments on commit bcf2359

Please sign in to comment.