Skip to content

Commit

Permalink
fix inaccurate output unit for energy output time
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Apr 16, 2023
1 parent 2fd3594 commit b78c4e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ where possible parameters include (the first value in [*|*] is the default)
== Output options ==
-s sessionid (--session) a string to label all output file names
-O [X|XFEJPMR] (--outputtype) X - output flux, F - fluence, E - energy density
-O [X|XFEJPMR] (--outputtype) X - output flux, F - fluence, E - energy deposit
/case insensitive/ J - Jacobian (replay mode), P - scattering,
event counts at each voxel (replay mode only)
M - momentum transfer; R - RF/FD Jacobian
Expand Down
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ where possible parameters include (the first value in [*|*] is the default)

== Output options ==
-s sessionid (--session) a string to label all output file names
-O [X|XFEJPM] (--outputtype) X - output flux, F - fluence, E - energy density
-O [X|XFEJPM] (--outputtype) X - output flux, F - fluence, E - energy deposit
/case insensitive/ J - Jacobian (replay mode), P - scattering,
event counts at each voxel (replay mode only)
M - momentum transfer;
Expand Down
6 changes: 3 additions & 3 deletions src/mcx_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ void mcx_savebnii(float* vol, int ndim, uint* dims, float* voxelsize, char* name

if (cfg->outputtype >= 0) {
const char* typestr[] = {"MCX volumetric output: Fluence rate (W/mm^2)", "MCX volumetric output: Fluence (J/mm^2)",
"MCX volumetric output: Energy density (J/mm^3)", "MCX volumetric output: Jacobian for mua (J/mm)", "MCX volumetric output: Scattering count",
"MCX volumetric output: Voxel-wise energy deposit (J)", "MCX volumetric output: Jacobian for mua (J/mm)", "MCX volumetric output: Scattering count",
"MCX volumetric output: Partial momentum transfer"
};
UBJ_WRITE_KEY(root, "Description", string, typestr[(int)cfg->outputtype]);
Expand Down Expand Up @@ -781,7 +781,7 @@ void mcx_savejnii(float* vol, int ndim, uint* dims, float* voxelsize, char* name

if (cfg->outputtype >= 0) {
const char* typestr[] = {"MCX volumetric output: Fluence rate (W/mm^2)", "MCX volumetric output: Fluence (J/mm^2)",
"MCX volumetric output: Energy density (J/mm^3)", "MCX volumetric output: Jacobian for mua (J/mm)", "MCX volumetric output: Scattering count",
"MCX volumetric output: Voxel-wise energy deposit (J)", "MCX volumetric output: Jacobian for mua (J/mm)", "MCX volumetric output: Scattering count",
"MCX volumetric output: Partial momentum transfer"
};
cJSON_AddStringToObject(hdr, "Description", typestr[(int)cfg->outputtype]);
Expand Down Expand Up @@ -5087,7 +5087,7 @@ where possible parameters include (the first value in [*|*] is the default)\n\
\n"S_BOLD S_CYAN"\
== Output options ==\n" S_RESET"\
-s sessionid (--session) a string to label all output file names\n\
-O [X|XFEJPMRL](--outputtype) X - output flux, F - fluence, E - energy density\n\
-O [X|XFEJPMRL](--outputtype) X - output flux, F - fluence, E - energy deposit\n\
/case insensitive/ J - Jacobian (replay mode), P - scattering, \n\
event counts at each voxel (replay mode only)\n\
M - momentum transfer; R - RF/FD Jacobian\n\
Expand Down

0 comments on commit b78c4e3

Please sign in to comment.