Skip to content

Commit

Permalink
shifted print statement into correct for-loop scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelfonseca committed Nov 3, 2023
1 parent aba8849 commit 7eda71a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fitburst/analysis/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,13 @@ def compute_model(self, data: float = None) -> float:
) * (10 ** current_amplitude)
self.spectrum_per_component[current_freq, :, current_component] = (10 ** current_amplitude) * current_profile

# print spectral index/running for current component.
if current_freq == 0:
if self.verbose and not self.scintillation:
print(f"{current_sp_idx:.5f} {current_sp_run:.5f}")
# print spectral index/running for current component.
if current_freq == 0:
if self.verbose and not self.scintillation:
print(f"{current_sp_idx:.5f} {current_sp_run:.5f}")

else:
print()
else:
print()

# if desired, then compute per-channel amplitudes in cases where scintillation is significant.
if self.scintillation:
Expand Down

0 comments on commit 7eda71a

Please sign in to comment.