def DmlcCalculations(self, cal1, cal2, textparam):
    if cal1:
        leeds = VMAT(images=[DirectoryPath.fieldOpenPathfile, DirectoryPath.dmlcopenfilenamepath], delivery_types=['open', 'dmlc'])
        leeds.analyze(test='drmlc', tolerance=1.3, x_offset=0)
        leeds.plot_analyzed_subimage('profile')
        leeds.save_analyzed_subimage('myprofile.png', subimage='profile')
        print(leeds.return_results())
        leeds.plot_analyzed_image()
        leeds.publish_pdf((DirectoryPath.dmlcopenfilenamepath + '.pdf'))
    if cal2:
        drgs = VMAT(images=[DirectoryPath.fieldOpenPathfile, DirectoryPath.dmlcopenfilenamepath], delivery_types=['open', 'drgs'])
        drgs.analyze(test='drgs', tolerance=1.3, x_offset=10)
        drgs.save_analyzed_subimage('myprofiledrgs.png', subimage='profile')
        print(drgs.return_results())
        drgs.plot_analyzed_image()
        drgs.publish_pdf(((DirectoryPath.dmlcopenfilenamepath + 'drgs') + '.pdf'), author=textparam, unit='TrueBeamSTX')
def DmlcCalculations(self, cal1, cal2, textparam):
    if cal1:
        leeds = VMAT(images=[DirectoryPath.fieldOpenPathfile, DirectoryPath.dmlcopenfilenamepath], delivery_types=['open', 'dmlc'])
        leeds.analyze(test='drmlc', tolerance=1.3, x_offset=0)
        leeds.plot_analyzed_subimage('profile')
        leeds.save_analyzed_subimage('myprofile.png', subimage='profile')
        print(leeds.return_results())
        leeds.plot_analyzed_image()
        leeds.publish_pdf((DirectoryPath.dmlcopenfilenamepath + '.pdf'))
    if cal2:
        drgs = VMAT(images=[DirectoryPath.fieldOpenPathfile, DirectoryPath.dmlcopenfilenamepath], delivery_types=['open', 'drgs'])
        drgs.analyze(test='drgs', tolerance=1.3, x_offset=10)
        drgs.save_analyzed_subimage('myprofiledrgs.png', subimage='profile')
        print(drgs.return_results())
        drgs.plot_analyzed_image()
        drgs.publish_pdf(((DirectoryPath.dmlcopenfilenamepath + 'drgs') + '.pdf'), author=textparam, unit='TrueBeamSTX')