quickfixes, ready for full dispersion rewrite
This commit is contained in:
@@ -15,7 +15,7 @@ import numpy as np
|
|||||||
from scgenerator.const import MANDATORY_PARAMETERS, __version__
|
from scgenerator.const import MANDATORY_PARAMETERS, __version__
|
||||||
from scgenerator.evaluator import Evaluator, EvaluatorError
|
from scgenerator.evaluator import Evaluator, EvaluatorError
|
||||||
from scgenerator.io import CustomEncoder, DataFile, custom_decode_hook
|
from scgenerator.io import CustomEncoder, DataFile, custom_decode_hook
|
||||||
from scgenerator.operators import Qualifier, SpecOperator
|
from scgenerator.operators import Qualifier, SpecOperator, VariableQuantity
|
||||||
|
|
||||||
T = TypeVar("T")
|
T = TypeVar("T")
|
||||||
DISPLAY_INFO = {}
|
DISPLAY_INFO = {}
|
||||||
@@ -409,7 +409,7 @@ class Parameters:
|
|||||||
worker_num: int = Parameter(positive(int))
|
worker_num: int = Parameter(positive(int))
|
||||||
|
|
||||||
# computed
|
# computed
|
||||||
linear_operator: SpecOperator = Parameter(is_function, can_pickle=False)
|
linear_operator: VariableQuantity = Parameter(is_function, can_pickle=False)
|
||||||
nonlinear_operator: SpecOperator = Parameter(is_function, can_pickle=False)
|
nonlinear_operator: SpecOperator = Parameter(is_function, can_pickle=False)
|
||||||
conserved_quantity: Qualifier = Parameter(is_function, can_pickle=False)
|
conserved_quantity: Qualifier = Parameter(is_function, can_pickle=False)
|
||||||
fft: Callable[[np.ndarray], np.ndarray] = Parameter(is_function, can_pickle=False)
|
fft: Callable[[np.ndarray], np.ndarray] = Parameter(is_function, can_pickle=False)
|
||||||
|
|||||||
@@ -1165,6 +1165,8 @@ def summary_plot(
|
|||||||
|
|
||||||
if z is None:
|
if z is None:
|
||||||
z = np.arange(specs.shape[0])
|
z = np.arange(specs.shape[0])
|
||||||
|
elif len(z) > specs.shape[0]:
|
||||||
|
z = z[:specs.shape[0]]
|
||||||
|
|
||||||
if wl_range is None:
|
if wl_range is None:
|
||||||
imin, imax = math.span_above(wl_int, wl_int.max() * 1e-6)
|
imin, imax = math.span_above(wl_int, wl_int.max() * 1e-6)
|
||||||
|
|||||||
Reference in New Issue
Block a user