Added sbeta_onavg + Switched to densty PDF
This commit is contained in:
+3
-3
@@ -911,12 +911,11 @@ class PostProcessor(HDF5Container):
|
||||
& (fluct_map > 0)
|
||||
)
|
||||
|
||||
nb_cells = np.sum(mask_pdf.flatten())
|
||||
values, edges = np.histogram(
|
||||
np.log10(fluct_map[mask_pdf].flatten()),
|
||||
self.pp_params.pdf.nb_bin,
|
||||
range=self.pp_params.pdf.range,
|
||||
weights=np.ones(nb_cells) / nb_cells,
|
||||
density=True,
|
||||
)
|
||||
centers = 0.5 * (edges[1:] + edges[:-1])
|
||||
return np.stack([values, centers])
|
||||
@@ -1518,7 +1517,8 @@ class PostProcessor(HDF5Container):
|
||||
"P_avg",
|
||||
"T_avg",
|
||||
"P_mwavg",
|
||||
"T_mwavg" "alpha_disk",
|
||||
"T_mwavg",
|
||||
"alpha_disk",
|
||||
"alpha_grav",
|
||||
]
|
||||
for name in averageables:
|
||||
|
||||
Reference in New Issue
Block a user