Skip to content

Commit

Permalink
de-linting and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkasirer committed Jul 3, 2024
1 parent 2e54090 commit ae5bd48
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 25 deletions.
29 changes: 15 additions & 14 deletions src/compas_timber/design/wall_from_surface.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
import math

from compas.geometry import Vector
from compas.geometry import cross_vectors
from compas.geometry import dot_vectors
from compas.geometry import Frame
from compas.geometry import Line
from compas.geometry import Point
from compas.geometry import Polyline
from compas.geometry import offset_line
from compas.geometry import offset_polyline
from compas.geometry import Vector
from compas.geometry import angle_vectors
from compas.geometry import angle_vectors_signed
from compas.geometry import bounding_box_xy
from compas.geometry import matrix_from_frame_to_frame
from compas.geometry import intersection_line_segment
from compas.geometry import intersection_line_line
from compas.geometry import closest_point_on_segment
from compas.geometry import cross_vectors
from compas.geometry import distance_point_point_sqrd
from compas.geometry import Point
from compas.geometry import Line
from compas_timber.design import CategoryRule
from compas_timber.elements import Beam
from compas_timber.connections import LButtJoint
from compas_timber.connections import TButtJoint
from compas.geometry import dot_vectors
from compas.geometry import intersection_line_line
from compas.geometry import intersection_line_segment
from compas.geometry import matrix_from_frame_to_frame
from compas.geometry import offset_line
from compas.geometry import offset_polyline

from compas_timber.connections import ConnectionSolver
from compas_timber.connections import JointTopology
from compas_timber.connections import LButtJoint
from compas_timber.connections import TButtJoint
from compas_timber.design import CategoryRule
from compas_timber.elements import Beam
from compas_timber.model import TimberModel


Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import clr
from ghpythonlib.componentbase import executingcomponent as component
import System

from compas_timber.design import SurfaceModel

beam_category_names = SurfaceModel.beam_category_names()


def on_item_click(sender, event_info):
item = clr.Convert(sender, System.Windows.Forms.ToolStripItem)
ghenv.Component.Params.Output[0].NickName = str(sender)
ghenv.Component.Params.OnParametersChanged()
ghenv.Component.ExpireSolution(True)
Expand Down
2 changes: 1 addition & 1 deletion src/compas_timber/ghpython/components/CT_DrillHole/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from ghpythonlib.componentbase import executingcomponent as component
from Grasshopper.Kernel.GH_RuntimeMessageLevel import Warning

from compas_timber.elements import DrillFeature
from compas_timber.design import FeatureDefinition
from compas_timber.elements import DrillFeature


class DrillHoleFeature(component):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from ghpythonlib.componentbase import executingcomponent as component
from Grasshopper.Kernel.GH_RuntimeMessageLevel import Warning

from compas_timber.elements import BrepSubtraction
from compas_timber.design import FeatureDefinition
from compas_timber.elements import BrepSubtraction


class BrepSubtractionFeature(component):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from ghpythonlib.componentbase import executingcomponent as component
from Grasshopper.Kernel.GH_RuntimeMessageLevel import Warning

from compas_timber.elements import CutFeature
from compas_timber.design import FeatureDefinition
from compas_timber.elements import CutFeature


class TrimmingFeature(component):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
"""Creates a Beam from a LineCurve."""

from compas.geometry import Brep
from compas.scene import Scene
from ghpythonlib.componentbase import executingcomponent as component
from Grasshopper.Kernel.GH_RuntimeMessageLevel import Warning

from Rhino.Geometry import Brep as RhinoBrep
from Rhino.Geometry import Vector3d as RhinoVector
from compas.scene import Scene
from compas.geometry import Brep
from compas_timber.design import SurfaceModel

from compas_timber.design import DebugInfomation
from compas_timber.design import SurfaceModel


class SurfaceModelComponent(component):
Expand Down Expand Up @@ -36,7 +36,6 @@ def RunScript(self, surface, stud_spacing, beam_width, frame_depth, z_axis, opti
)

debug_info = DebugInfomation()
Geometry = None
scene = Scene()
model = surface_model.create_model()
if CreateGeometry:
Expand Down

0 comments on commit ae5bd48

Please sign in to comment.