Skip to content

Commit

Permalink
Merge pull request #1363 from gforney/master
Browse files Browse the repository at this point in the history
implement 2d plots for csv files specified in smv file (rather than just hrr and dev csv files) - preliminary
  • Loading branch information
gforney authored Jun 21, 2022
2 parents eca28bc + faa013f commit 0172953
Show file tree
Hide file tree
Showing 13 changed files with 996 additions and 773 deletions.
4 changes: 2 additions & 2 deletions Source/shared/string_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void FParseCSV(char *buffer, float *vals, int *valids, int ncols, int *ntokens){

token=strtok(buffer,",");
while(token!=NULL&&nt<ncols){
if(STRCMP(token,"NULL")==0){
if(STRCMP(token,"NULL")==0||strchr(token, ':')!=NULL){
valids[nt]=0;
vals[nt]=0.0;
}
Expand Down Expand Up @@ -110,7 +110,7 @@ void ParseCSV(char *buffer, char **tokens, int *ntokens){
if(inside_quote==0&&buffer[i]==',')buffer[i]=0;
}
tokens[nt++]=buffer;
for(i=1;i<lenbuffer;i++){
for(i=0;i<lenbuffer;i++){
if(buffer[i]==0){
tokens[nt++]=buffer+i+1;
}
Expand Down
Loading

0 comments on commit 0172953

Please sign in to comment.