Skip to content

Commit

Permalink
MAI: initialize tot_vol to a float value
Browse files Browse the repository at this point in the history
  • Loading branch information
johnyf committed May 28, 2021
1 parent 885fda9 commit dc783e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polytope/polytope.py
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,7 @@ def volume(polyreg, nsamples=None):
logger.debug('recomputing polytope volume...')
# `Region` ?
if isinstance(polyreg, Region):
tot_vol = 0.
tot_vol = 0.0
for i in xrange(len(polyreg)):
tot_vol += volume(polyreg.list_poly[i])
polyreg._set_volume(tot_vol)
Expand Down

0 comments on commit dc783e9

Please sign in to comment.