Skip to content

Commit

Permalink
fix: flake8 error
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed Nov 30, 2023
1 parent 8175437 commit a37fec2
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions LoopStructural/interpolators/_interpolator_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ def create_interpolator(
if type(interpolatortype) == str:
interpolatortype = InterpolatorType._member_map_[interpolatortype].numerator
if support is None:
supporttype = support_interpolator_map[interpolatortype]
support = SupportFactory.create_support_from_bbox(
supporttype,
bounding_box=boundingbox,
nelements=nelements,
element_volume=element_volume,
)
raise Exception("Support must be specified")
# supporttype = support_interpolator_map[interpolatortype]
# support = SupportFactory.create_support_from_bbox(
# supporttype,
# bounding_box=boundingbox,
# nelements=nelements,
# element_volume=element_volume,
# )
return interpolator_map[interpolatortype](support)

@staticmethod
Expand Down

0 comments on commit a37fec2

Please sign in to comment.