Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fixed bug on psrfits weights #16

Merged
merged 1 commit into from

2 participants

@gdesvignes

I've fixed a type in psrfits.c that prevented the weights to work properly

@scottransom scottransom merged commit 1386495 into scottransom:float_internals
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 4, 2012
  1. @gdesvignes
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/psrfits.c
View
4 src/psrfits.c
@@ -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;
}
Something went wrong with that request. Please try again.