Commit 8d403f27 authored by Colm Talbot's avatar Colm Talbot

Merge branch 'issue391' into 'master'

fixing issue #391

Closes #391

See merge request !556
parents e1cdb224 94822143
Pipeline #70681 passed with stages
in 22 minutes and 7 seconds
......@@ -864,9 +864,12 @@ def generate_component_spins(sample):
output_sample['reference_frequency'], output_sample['phase'])
output_sample['phi_1'] =\
np.arctan(output_sample['spin_1y'] / output_sample['spin_1x'])
np.fmod(2 * np.pi + np.arctan2(
output_sample['spin_1y'], output_sample['spin_1x']), 2 * np.pi)
output_sample['phi_2'] =\
np.arctan(output_sample['spin_2y'] / output_sample['spin_2x'])
np.fmod(2 * np.pi + np.arctan2(
output_sample['spin_2y'], output_sample['spin_2x']), 2 * np.pi)
elif 'chi_1' in output_sample and 'chi_2' in output_sample:
output_sample['spin_1x'] = 0
output_sample['spin_1y'] = 0
......
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