Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow filterbank_header to write headers when the machine is FAKE #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/filterbank_header.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ void filterbank_header(FILE *outptr) /* includefile */
/* go no further here if not interested in header parameters */
if (headerless) return;
/* broadcast the header parameters to the output stream */
if (machine_id != 0) {
if (machine_id > -1) {
send_string("HEADER_START");
send_string("rawdatafile");
send_string(inpfile);
Expand Down
2 changes: 1 addition & 1 deletion src/readpsrfits_hd.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void readpsrfits_hd(char *filename,int *machine_id,int *telescope_id,int *data_t
float ch_freq[MX_NCHAN];

// Defaults that are not being set
*machine_id=-1;
*machine_id=0;
*data_type = 0;
*ibeam = 1;
status=0;
Expand Down