Skip to content

Commit

Permalink
[bug] read g and n when mua or mus=nan in asgn_float, close #225, close
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Jul 4, 2024
1 parent f959c71 commit 80b5794
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mcx_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -3525,7 +3525,10 @@ void mcx_loadvolume(char* filename, Config* cfg, int isbuf) {

if (f2h[0] != f2h[0] || f2h[1] != f2h[1]) { /*if one of mua/mus is nan in continuous medium, convert to 0-voxel*/
cfg->vol[i] = 0;
continue;

if (cfg->mediabyte == MEDIA_AS_F2H) {
continue;
}
}

if (cfg->mediabyte == MEDIA_ASGN_F2H) {
Expand Down

0 comments on commit 80b5794

Please sign in to comment.