Skip to content

Commit

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

import compas
import numpy
import pytest

import compas
import aixd_grasshopper
import math
import numpy


def pytest_ignore_collect(path):
Expand Down
3 changes: 1 addition & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# 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: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from setuptools.command.develop import develop
from setuptools.command.install import install


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


Expand Down
6 changes: 2 additions & 4 deletions src/aixd_grasshopper/components/aixd_DatasetCreate/code.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# flake8: noqa
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
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

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

Expand Down
6 changes: 2 additions & 4 deletions src/aixd_grasshopper/components/aixd_DatasetLoad/code.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# flake8: noqa
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
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

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

Expand Down
6 changes: 2 additions & 4 deletions src/aixd_grasshopper/components/aixd_DatasetSummary/code.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# flake8: noqa
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
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

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

Expand Down
3 changes: 2 additions & 1 deletion src/aixd_grasshopper/components/aixd_GenSelect/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
# 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: 2 additions & 4 deletions src/aixd_grasshopper/components/aixd_Generator/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ def __repr__(self):
# -------------------------------------------------------------------------------


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
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

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

Expand Down
6 changes: 2 additions & 4 deletions src/aixd_grasshopper/components/aixd_ModelDims/code.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# flake8: noqa
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
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

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

Expand Down
6 changes: 2 additions & 4 deletions src/aixd_grasshopper/components/aixd_ModelLoad/code.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# flake8: noqa
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
from aixd_grasshopper.gh_ui_helper import session_id, component_id
from scriptcontext import sticky as st

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

Expand Down
1 change: 1 addition & 0 deletions src/aixd_grasshopper/components/aixd_ProjectSetup/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from aixd_grasshopper.gh_ui import project_setup
from aixd_grasshopper.gh_ui_helper import component_id

from aixd_grasshopper.gh_ui_helper import session_id

if project_folder and dataset_name:
Expand Down
1 change: 1 addition & 0 deletions src/aixd_grasshopper/components/aixd_ShowFolder/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

import os


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

import math
import os

import math
import rhinoscriptsyntax as rs

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
from aixd_grasshopper.gh_ui_helper import http_post_request, find_component_by_nickname, TYPES

try:
import Rhino
Expand Down

0 comments on commit 3cf9af5

Please sign in to comment.