Merge branch 'dev' of /Users/gauste/Nextcloud/PhD/Lab/Git Remotes/scgenerator into dev

This commit is contained in:
2024-03-08 11:16:32 +01:00

View File

@@ -565,7 +565,7 @@ def pulse_envelope(
elif shape == "sech":
return sech_pulse(t, t0, peak_power)
else:
raise ValueError(f"shape {shape} not recognized")
raise ValueError(f"shape {shape!r} not recognized")
def photon_number(spec2: np.ndarray, w: np.ndarray, dw: float, gamma: float) -> float: