Selaa lähdekoodia

Adding vmax as parameters to plotSegmentation

Andrej 1 vuosi sitten
vanhempi
commit
1d6cca45c3
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      pythonScripts/segmentation.py

+ 1 - 2
pythonScripts/segmentation.py

@@ -151,7 +151,7 @@ def writeSegmentation(db,r,setup):
     #    print(v[i,:])
     numpy.savetxt(os.path.join(locDir,fileName),v)
    
-def plotSegmentation(db,fb,r,setup):    
+def plotSegmentation(db,fb,r,setup,vmax=1000):    
    copyFields=['PatientId','visitName']
    qFilter=[{'variable':x,'value':r[x],'oper':'eq'} for x in copyFields]
    nim=getData.getPatientNIM(fb,r,setup)
@@ -181,7 +181,6 @@ def plotSegmentation(db,fb,r,setup):
    w1=20
    cut2=20
    w2=20
-   vmax=1000
    vmin=0
    nd=3
    fig,ax=matplotlib.pyplot.subplots(3,2*nd+1,figsize=(20,12))