Skip to content

Commit

Permalink
round->ceil in min_cells
Browse files Browse the repository at this point in the history
  • Loading branch information
wtbarnes committed Nov 4, 2024
1 parent 0b36c7c commit 9d2c2dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pydrad/configure/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def minimum_cells(self):
n_min = L / self.config['grid']['maximum_cell_width']
if n_min.decompose().unit != u.dimensionless_unscaled:
raise u.UnitConversionError(f'''Maximum cell width must be able to be converted to {L.unit}''')
return int(np.round(n_min.decompose()))
return int(np.ceil(n_min.decompose()))

@property
def maximum_cells(self):
Expand Down

0 comments on commit 9d2c2dc

Please sign in to comment.