Skip to content

Commit

Permalink
np.ceil() should really default to returning an int...
Browse files Browse the repository at this point in the history
  • Loading branch information
smith120bh committed Oct 24, 2023
1 parent e84edfd commit b7e698b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anastruct/fem/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def add_multiple_elements(
direction = (point_2 - point_1).unit()

if dl is None and n is not None:
var_n = np.ceil(n)
var_n = int(np.ceil(n))
lengths = np.linspace(start=0, stop=length, num=var_n + 1)
elif dl is not None and n is None:
var_n = int(np.ceil(length / dl) - 1)
Expand Down

0 comments on commit b7e698b

Please sign in to comment.