Skip to content

Commit

Permalink
Specific imports instead of wild card (GEOUNED-org#100)
Browse files Browse the repository at this point in the history
* improved import statements flake8 hints

* removed extra line
  • Loading branch information
shimwell authored Apr 26, 2024
1 parent 12ec904 commit bf061fa
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
16 changes: 15 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
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 bf061fa

Please sign in to comment.