Commit 11e5d803 authored by Theo Steininger's avatar Theo Steininger

Fixed the bug that the distribution strategy of the return field of...

Fixed the bug that the distribution strategy of the return field of power_analyze was the original but not the natural one.
parent c5f4f81f
......@@ -259,7 +259,9 @@ class Field(Loggable, Versionable, object):
result_domain = list(self.domain)
result_domain[space_index] = power_domain
result_field = self.copy_empty(domain=result_domain)
result_field = self.copy_empty(
domain=result_domain,
distribution_strategy=power_spectrum.distribution_strategy)
result_field.set_val(new_val=power_spectrum, copy=False)
return result_field
......
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