Permalink
Browse files

Merge pull request #16 from gdesvignes/float_internals

Fixed bug on psrfits weights (Thanks, Gregory!)
  • Loading branch information...
2 parents 1be5643 + 3f6c637 commit 138649530576a0f6bf0db4c371c681eb8c5b716a @scottransom committed Oct 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/psrfits.c
View
@@ -546,9 +546,9 @@ void read_PSRFITS_files(struct spectra_info *s)
if (s->apply_scale==0)
for (ii = 0 ; ii < s->num_channels * s->num_polns ; ii++)
scales[ii] = 1.0;
- if (s->apply_weight==0)
+ if (s->apply_weight==0)
for (ii = 0 ; ii < s->num_channels ; ii++)
- scales[ii] = 1.0;
+ weights[ii] = 1.0;
}

0 comments on commit 1386495

Please sign in to comment.