Commit e5f51246 authored by Theo Steininger's avatar Theo Steininger
Browse files

Fixed dtype for real_signal == False.

parent 3aebc588
Pipeline #12121 passed with stage
in 4 minutes and 47 seconds
......@@ -245,8 +245,14 @@ class Field(Loggable, Versionable, object):
result_domain = list(self.domain)
result_domain[space_index] = power_domain
if real_signal:
result_dtype = np.complex
else:
result_dtype = np.float
result_field = self.copy_empty(
domain=result_domain,
dtype=result_dtype,
distribution_strategy=power_spectrum.distribution_strategy)
result_field.set_val(new_val=power_spectrum, copy=False)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment