Missing logic on data functions when no constraint in that direction
Example MWE with data spectrum:
from pyconturb.spectral_models import data_spectrum
from pyconturb.magnitudes import get_magnitudes
f = 0.5
spat_df = pd.DataFrame([np.repeat(range(3), 3), np.zeros(9), np.zeros(9, dtype=int),
np.tile([40, 70, 100], 3)], index=['k', 'x', 'y', 'z'])
con_tc = TimeConstraint([[0, 0, 1, 1], [0, 0, 0, 0], [0, 0, 0, 0],
[50, 90, 50, 90],
[0, 0, 0, 0], [1, 2, 3, 4]],
index=['k', 'x', 'y', 'z', 0.0, 1.0])
spec_arr = data_spectrum(f, spat_df, con_tc=con_tc)
Found this in Katerina's thesis.