Skip to content

Commit 078a6ce

Browse files
Philipp Savakisbgoli
authored andcommitted
enforce floor division to create integer bins
1 parent 118b2e3 commit 078a6ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stochpy/modules/Analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def Distributions(self,distributions,datatype,labels,trajectory_index,linestyle,
573573
for i in datatype_indices:
574574
dat_min = distributions[i][0].min()
575575
dat_max = distributions[i][0].max()
576-
n_bins = 1 + (dat_max-dat_min) /bin_size # Just take one trajectory as reference
576+
n_bins = 1 + (dat_max-dat_min) // bin_size # Just take one trajectory as reference
577577
L_bin_edges = np.linspace(dat_min-bin_size/2.0,dat_max+bin_size/2.0,n_bins+1)
578578

579579
if colors == None:

0 commit comments

Comments
 (0)