Permalink
Browse files

Fixed bug on psrfits weights

  • Loading branch information...
Gregory Desvignes
Gregory Desvignes committed Oct 4, 2012
1 parent 1be5643 commit 3f6c63798981fe4b301973a5b60a3a84b5b50e09
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 3f6c637

Please sign in to comment.