<div>Dear Officer,</div>
<div>I want to run two .py files to generate .h5 files.<br clear="all"></div>
<div><a href="mailto:hantingting@tityro:~$">hantingting@tityro:~$</a> python2.5<br>Python 2.5.4 (r254:67916, Jan 20 2010, 21:43:02)<br>[GCC 4.4.1] on linux2<br>Type "help", "copyright", "credits" or "license" for more information.</div>

<div> </div>
<div>When ruuning gentest_sphere.py, the problem is as following:<br><a href="mailto:hantingting@tityro:~/Downloads/triMC3D/python$">hantingting@tityro:~/Downloads/triMC3D/python$</a> python2.5 gentest_sphere.py gsphere.h5<br>
Usage: gentest_sphere.pynEl Testfile.h5<br>options:<br>        n:      number of elements<br><a href="mailto:hantingting@tityro:~/Downloads/triMC3D/python$">hantingting@tityro:~/Downloads/triMC3D/python$</a> </div>
<div>I guess I should write the command in the format of usage, but I don't know how to do it.</div>
<div> </div>
<div>When ruuning test_detector.py, the problem is as following:<br><a href="mailto:hantingting@tityro:~/Downloads/triMC3D/python$">hantingting@tityro:~/Downloads/triMC3D/python$</a> python2.5 test_detector.py tdetector.h5<br>
h5/Opaque_material/ext_Trabecular_Bone-int_Cartilage/Nonenm/SourceNone/<br>lamb =  None<br>Traceback (most recent call last):<br>  File "test_detector.py", line 600, in <module><br>    main()<br>  File "test_detector.py", line 567, in main<br>
    hdf5.subs_lamb( materials, lamb )<br>  File "/home/hantingting/Downloads/triMC3D/python/local_modules/hdf5.py", line 703, in subs_lamb<br>    m.mu_s = m.mu_s(l)<br>  File "/home/hantingting/Downloads/triMC3D/python/local_modules/matslib.py", line 71, in <lambda><br>
    [1550.0,1460.0,1360.0,1300.0,1240.0,1220.0,1220.0,1200.0,1160.0], s=300 ))<br>  File "/usr/lib/python2.5/site-packages/scipy/interpolate/fitpack.py", line 485, in splev<br>    y,ier=_fitpack._spl_(x,der,t,c,k)<br>
TypeError: array cannot be safely cast to required type<br><a href="mailto:hantingting@tityro:~/Downloads/triMC3D/python$">hantingting@tityro:~/Downloads/triMC3D/python$</a> python2.5 test_detector.py<br>usage: test_detector.py outputfile.h5 [options]<br>
options:<br>    -c  Cage Material<br>    -e  External Material<br>    -i  Internal Material<br>    -l  Lambda<br>    -o  Output String<br>    -s  Source Number<br>    -h  Shows this help</div>
<div><a href="mailto:hantingting@tityro:~/Downloads/triMC3D/python$">hantingting@tityro:~/Downloads/triMC3D/python$</a> <br></div>
<div>Could you please give me some advice to solve these two problems? I  sincerely apologize that I am new for python. <br>-- <br>Best regards,<br>HAN Tingting<br></div>