Dear Dr.Fang
Still of the problem about setting mua and mus independently in the previous post.
Only found routine in mcxlab/example, but in mcx/example
Although using mcx2json attempts to convert the cfg in mcxlab into a json file, to drive mcx use directly,
The current json file structure as follow:
{
"Session":{
"ID":"uaus",
"DoAutoThread":1,
"Photons":100000000
},
"Forward":{ "T0":0, "T1":5e-09,"Dt":5e-09 },
"Optode":{
"Source":{ "Pos":[30,30,1],"Dir":[0,0,1] }
},
"Domain":{
"OriginType":0,
"Media":[{ "mua":0, "mus":0, "g":1, "n":1 }, { "mua":0.005, "mus":1, "g":0, "n":1.37} ],
"MediaFormat":"muamus_float",
"Dim":[60,60,60],
"VolumeFile":""
},
"Shapes":{
"_ArrayType_":"single",
"_ArraySize_":[2,60,60,60],
"_ArrayZipType_":"zlib",
"_ArrayZipSize_":[1,432000],
"_ArrayZipData_":"eJztw1trEAQABtBJSImzmlnRrJULWqDiDKvFNszhKhY4mGLEDAM1uqi4h2ULNpeWOZOmjmrzQppi
......mua,mus format data......
"
}
}
And using mcx command
mcx -f .\uaus.json -K 102 -F mc2
post error
MCX ERROR(-6):medium index exceeds the specified medium types in unit mcx_utils.c:3330
This situation looks strange. At the src directory, this problem seems to be related to cfg->medianum, but cfg->medianum seems to be related to the length of Domain.Media? (Maybe?)
How to modify to use simulation in command line when MediaFormat is not 1?
And how to find the correspondence between the cfg in mcxlab and the json file in mcx?Although most parameters can be matched obviouly, some special parameters maybe a bit difficult to match.
Thanks again and looking forward to your
reply.
I was able to reproduce the error after exporting the continuously-varying medium simulation using mcx2json.
I have created an Issue on github to track this problem
https://github.com/fangq/mcx/issues/200
I will close it when I have a fix.
--
You received this message because you are subscribed to the Google Groups "mcx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mcx-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mcx-users/4ef39ded-212b-4f40-a4ee-716ed1e3705fn%40googlegroups.com.