@@ -609,7 +609,7 @@ def plot_flat_source_regions(geometry, gridsize=250, xlim=None, ylim=None,
609
609
if centroids :
610
610
611
611
# Populate a NumPy array with the FSR centroid coordinates
612
- centroids = np .zeros ((num_fsrs , 2 ), dtype = np .float )
612
+ centroids = np .zeros ((num_fsrs , 2 ), dtype = np .float64 )
613
613
for fsr_id in range (num_fsrs ):
614
614
coords = geometry .getGlobalFSRCentroidData (fsr_id )
615
615
if plane == 'xy' :
@@ -952,7 +952,7 @@ def plot_energy_fluxes(solver, fsrs, group_bounds=None, norm=True,
952
952
for fsr in fsrs :
953
953
954
954
# Allocate memory for an array of this FSR's fluxes
955
- fluxes = np .zeros (num_groups , dtype = np .float )
955
+ fluxes = np .zeros (num_groups , dtype = np .float64 )
956
956
957
957
# Extract the flux in each energy group
958
958
for group in range (num_groups ):
@@ -1317,7 +1317,7 @@ def plot_spatial_data(domains_to_data, plot_params, get_figure=False):
1317
1317
surface = domains_to_data .take (domains .flatten ())
1318
1318
# If domains-to-data was input as a Python dictionary
1319
1319
else :
1320
- surface = np .zeros (domains .shape , dtype = np .float )
1320
+ surface = np .zeros (domains .shape , dtype = np .float64 )
1321
1321
for domain_id in domains_to_data :
1322
1322
indices = np .where (domains == domain_id )
1323
1323
surface [indices ] = domains_to_data [domain_id ]
@@ -1947,7 +1947,7 @@ def _get_pil_image(array, plot_params):
1947
1947
from PIL import Image
1948
1948
1949
1949
# Convert array to a normalized array of floating point values
1950
- float_array = np .zeros (array .shape , dtype = np .float )
1950
+ float_array = np .zeros (array .shape , dtype = np .float64 )
1951
1951
float_array [:,:] = array [:,:]
1952
1952
float_array [:,:] /= np .max (float_array )
1953
1953
0 commit comments