Skip to content

Commit

Permalink
improved import statements flake8 hints
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Apr 26, 2024
1 parent d87a241 commit c6ee44d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
17 changes: 16 additions & 1 deletion src/geouned/GEOReverse/Modules/MCNPinput.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,21 @@
import numpy as np
from numpy import linalg as LA

from .Objects import *
from .Objects import (
CadCell,
Plane,
Sphere,
Cylinder,
Cone,
EllipticCone,
Hyperboloid,
Ellipsoid,
EllipticCylinder,
HyperbolicCylinder,
Paraboloid,
Torus,
Box,
)
from .Parser import parser as mp
from .remh import CellCardString, remove_hash

Expand Down Expand Up @@ -161,6 +175,7 @@ def __getTransList__(self):
trl[c.name] = getTransMatrix(trValues, c.unit)
return trl


# fmt: off
def getTransMatrix(trsf, unit="", scale=10.0):

Expand Down
2 changes: 1 addition & 1 deletion src/geouned/GEOReverse/Modules/XMLinput.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import numpy as np
from numpy import linalg as LA

from .Objects import *
from .Objects import CadCell, Plane, Sphere, Cylinder, Cone, Torus
from .XMLParser import get_cards


Expand Down
2 changes: 1 addition & 1 deletion src/geouned/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# found by subsequent import statements through out the code base
try:
import freecad
except:
except ImportError:
pass

from .GEOUNED import *
Expand Down

0 comments on commit c6ee44d

Please sign in to comment.