Skip to content

Commit

Permalink
changed whitespace to match python style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyson Littenberg committed Apr 17, 2020
1 parent d462269 commit 4a69c23
Show file tree
Hide file tree
Showing 26 changed files with 10,160 additions and 10,160 deletions.
4,792 changes: 2,396 additions & 2,396 deletions gbmcmc/src/BayesLine.c

Large diffs are not rendered by default.

134 changes: 67 additions & 67 deletions gbmcmc/src/BayesLine.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,89 +26,89 @@

typedef struct
{
int n;
int size;

int *larray;

double *Q;
double *A;
double *f;

int n;
int size;
int *larray;
double *Q;
double *A;
double *f;
}lorentzianParams;

typedef struct
{
int tmax;
int ncut;
int nmin;
int tfull;
int sgmts;

double df;
double fny;
double Tobs;
double fmin;
double fmax;
double flow;
double fgrid;
double fstep;
double fhigh;
double cadence;

int tmax;
int ncut;
int nmin;
int tfull;
int sgmts;
double df;
double fny;
double Tobs;
double fmin;
double fmax;
double flow;
double fgrid;
double fstep;
double fhigh;
double cadence;
}dataParams;

typedef struct
{
int n;
double *points;
double *data;

int n;
double *points;
double *data;
}splineParams;

typedef struct
{
double SAmin;
double SAmax;
double LQmin;
double LQmax;
double LAmin;
double LAmax;

//double *invsigma; //variances for each frequency bin
double *sigma; //variances for each frequency bin
double *upper; //variances for each frequency bin
double *lower; //variances for each frequency bin
double *mean; //means for each frequency bin

double SAmin;
double SAmax;
double LQmin;
double LQmax;
double LAmin;
double LAmax;
//double *invsigma; //variances for each frequency bin
double *sigma; //variances for each frequency bin
double *upper; //variances for each frequency bin
double *lower; //variances for each frequency bin
double *mean; //means for each frequency bin
}BayesLinePriors;

struct BayesLineParams
{
dataParams *data;
splineParams *spline;
splineParams *spline_x;
lorentzianParams *lines_x;
lorentzianParams *lines_full;
BayesLinePriors *priors;

double *Snf;
double *Sna;
double *fa;
double *freq;
double *power;
double *spow;
double *sfreq;
double *Sbase;
double *Sline;

int constantLogLFlag;

double TwoDeltaT;
gsl_rng *r;

FILE *splineChainFile;
FILE *lineChainFile;
dataParams *data;
splineParams *spline;
splineParams *spline_x;
lorentzianParams *lines_x;
lorentzianParams *lines_full;
BayesLinePriors *priors;
double *Snf;
double *Sna;
double *fa;
double *freq;
double *power;
double *spow;
double *sfreq;
double *Sbase;
double *Sline;
int constantLogLFlag;
double TwoDeltaT;
gsl_rng *r;
FILE *splineChainFile;
FILE *lineChainFile;
};

void BayesLineFree(struct BayesLineParams *bptr);
Expand Down
34 changes: 17 additions & 17 deletions gbmcmc/src/Constants.h
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
/*
* Copyright (C) 2019 Tyson B. Littenberg (MSFC-ST12), Neil J. Cornish
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with with program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/
* Copyright (C) 2019 Tyson B. Littenberg (MSFC-ST12), Neil J. Cornish
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with with program; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/



Expand Down
Loading

0 comments on commit 4a69c23

Please sign in to comment.