storeInputFunction.py 560 B

123456789101112131415161718192021222324
  1. import cardiacSPECT
  2. import slicerNetwork
  3. mirID='2SBMIR'
  4. obrID='2SMobr'
  5. configFile=os.path.join(os.path.expanduser('~'),'.cardiacSPECT','register.json')
  6. dataManager=cardiacSPECT.cardiacSPECTLogic(configFile)
  7. network=slicerNetwork.labkeyURIHandler()
  8. #parseConfig if a different location than default is chosen
  9. #network.parseConfig(remote.json)
  10. #network.initRemote()
  11. dataManager.setURIHandler(network)
  12. dataManager.loadPatientNRRD(mirID)
  13. dataManager.storeInputFunction(mirID)
  14. dataManager.loadPatientNRRD(obrID)
  15. dataManager.storeInputFunction(obrID)
  16. quit()