avid.externals.virtuos

Functions

calculateNormDoseCorrected(newNormDose, ...)

createBatchFileReplacePatternList(rootDir, ...)

createPlanPatternDictionary()

Creates a dictionary for extraction and manipulation of data in virtuos plan files The key of the dictionary is the value ID that is handled.

generateBatchFile(batchFile, template, ...)

open and adapt batch script content for system call

getFileExtensions(path)

special method that returns the complete virtuos extension.

getValueFromPlan(planStr, key)

extracts the first found value of the passed key from the plan file content string.

getValuesFromPlan(planStr, key)

extracts all values of the passed key from the plan file content string.

isVirtuosFile(path)

checks the passed path if it points to a virtuos file type.

normalizePlanFile(newPlanFile, refPlanFile)

normalizes dose values of the new plan (its recalculated dose) according to the original plan

readFile(planFile)

reads a given file into a string and returns the string

resetPlanFile(planFile)

Takes a plan file and resets all entries defined by pdc++.

setValueInPlan(planStr, key, value)

(re)sets the value of the passed key in the plan file content string and returns the modified string.

stripFileExtensions(path)

special method that returns the path striped by the complete virtuos extension.

writeFile(planFile, content)

Writes content to a given file