working without phase effect

This commit is contained in:
Benoît Sierro
2021-12-21 11:53:32 +01:00
parent b8f18bc104
commit 1ff432327d
3 changed files with 3 additions and 2 deletions

View File

@@ -81,6 +81,8 @@ VALID_VARIABLE = {
"num",
}
INVALID_VARIABLE = {"repeat"}
MANDATORY_PARAMETERS = [
"name",

View File

@@ -831,7 +831,7 @@ class Plasma(Operator):
return dict(ionization_fraction=self.ionization_fraction)
class NoPlasma(NoOpTime, Plasma):
class NoPlasma(NoOpFreq, Plasma):
pass

View File

@@ -453,7 +453,6 @@ def transform_2D_propagation(
raise ValueError(f"shape was {values.shape}. Can only plot 2D array")
is_complex, x_axis, plt_range = prep_plot_axis(values, plt_range, params)
if is_complex or any(values.ravel() < 0):
print("squared")
values = abs2(values)
# if params.full_field and plt_range.unit.type == "TIME":
# values = envelope_2d(x_axis, values)