5555zs = 0.1 + zs_delta * np .arange (100 )
5656print (zs )
5757
58+ allRhos = np .concatenate ((- rhos [::- 1 ], rhos ))
5859opRegionsArray = Array [Array [IOpticalPropertyRegion ]]([opRegions ])
5960# predict the tissue's fluence(rho, z) for the given optical properties
60- fluenceOfRhoAndZ = solver .FluenceOfRhoAndZ (opRegionsArray , rhos , zs );
61+ fluenceOfRhoAndZ = solver .FluenceOfRhoAndZ (opRegionsArray , allRhos , zs );
6162#print("*********************************** FLUENCE *****************************************")
6263#print(list(fluenceOfRhoAndZ))
6364
6465#PHD
66+ print ("*********************************** Fluence *****************************************" )
67+ print ('len(fluenceOfRhoAndZ)=' ,len (fluenceOfRhoAndZ ))
6568sourceDetectorSeparation = 10
6669opArray = Array .CreateInstance (OpticalProperties , 2 )
6770opArray [0 ] = OpticalProperties (0.1 , 1 , 0.8 , 1.4 )
6871opArray [1 ] = OpticalProperties (0.01 , 1 , 0.8 , 1.4 )
6972
70- phdOfRhoAndZ = ComputationFactory .GetPHD (solver , fluenceOfRhoAndZ , sourceDetectorSeparation , opArray , Array [Double ](rhos .tolist ()), Array [Double ](zs .tolist ()))
73+ phdOfRhoAndZ = ComputationFactory .GetPHD (solver , fluenceOfRhoAndZ , sourceDetectorSeparation , opArray , Array [Double ](allRhos .tolist ()), Array [Double ](zs .tolist ()))
7174
72- allRhos = np .concatenate ((- rhos [::- 1 ], rhos ))
7375print ("*********************************** RHOS *****************************************" )
7476print (allRhos .tolist ())
7577
@@ -102,4 +104,4 @@ def heatmap(values, x, y, x_label="", y_label="", title=""):
102104 return fig
103105
104106fluenceChart = heatmap (fluenceRowsToPlot .tolist (), list (rhos ), list (zs ), "ρ [mm]" , "z [mm]" , "log(phd(ρ, z) [mm-2])" )
105- fluenceChart .show (renderer = "browser" )
107+ fluenceChart .show (renderer = "browser" )
0 commit comments