Compare commits

...

2 Commits

Author SHA1 Message Date
784aab8312 merge 2023-05-03 11:24:55 +02:00
9152ad8e62 scc work 2023-05-03 09:51:45 +02:00
3 changed files with 1596 additions and 12 deletions

1592
imgs/erklaerbaer_overlay.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 508 KiB

View File

@ -61,14 +61,6 @@ def norm(*intenss):
return max
def norm(*intenss):
max = 1e-10
for intens in intenss:
m = np.max(intens.intens)
max = np.maximum(max, m)
return max
def plot_all(intens_rutile, intens_mono, intens_mixed):
fig, axs = plt.subplots(3, 2)
fig.set_figheight(5.2)
@ -115,7 +107,7 @@ def plot_all(intens_rutile, intens_mono, intens_mixed):
cbar_ax = fig.add_axes([0.55, 0.07, 0.4, 0.015])
cbar = fig.colorbar(cmap, cax=cbar_ax,
orientation="horizontal", ticks=[1e-10, 1e-5, 1e0])
# cbar.ax.set_xticklabels(['Low', 'Medium', 'High'])
#cbar.ax.set_xticklabels(['Low', 'Medium', 'High'])
fig.savefig("erklaerbaer.pdf")
fig.savefig("erklaerbaer.png")
@ -135,8 +127,8 @@ def load():
if __name__ == "__main__":
np.random.seed(1234)
# simulate()
# np.savez("intens.npz", r=r, mo=mo, mi=mi)
simulate()
np.savez("intens.npz", r=r, mo=mo, mi=mi)
r, mo, mi = load()
max = norm(r, mo, mi)
r.intens = r.intens/max

View File

@ -60,7 +60,7 @@ def ising(file, num):
weighted_percentage = np.array(weighted_percentage)
percentage /= np.max(percentage)
np.savez(f"ising_rect_{num}.npz",
np.savez(f"ising_rect_{seed}.npz",
w_percentage=weighted_percentage, percentage=percentage, out_1=out_rect[0],
out_2=out_rect[1], out_3=out_rect[2], out_4=out_rect[3])