RR-53 Notes

Temporary notes relating to ticket

Error rendering macro 'jira' : Unable to locate Jira server for this macro. It may be due to Application Link configuration.

Current Functions

LocationFunction NameInputOutputIf ErrorNotes
rr_rrtf/convert.pyRRTF_Cracked_To_XML
  • File Object containing Cracked TXT
  • String containing XML
Write files to CWD and raise exception.
rr_rrtf/convert.pyRRTF_XML_To_Cracked
  • File Object containing XML
  • String containing Cracked TXT
No special behaviour
rr_rrtf/convert.pyVA_XML_To_Dict
  • File Object containing XML
  • File Object containing XML Schema
  • A dictionary with the structure Dictionary['Vascular Access'](Headers, Row, Row, Row, Row)
No special behaviourThis was an attempt to produce a partial Vascular Access spreadsheet return from a Quarterly File. It is not currently in use.
rr_rrtf/convert.pyRRTF_XML_To_Dict
  • File Object containing XML
  • File Object containing XML Schema
  • A dictionary with the structure Dictionary['XXX'](Headers, Row, Row, Row, Row) where XXX is each block in the schema.
No special behaviourThis is used by the "TXT to XLS" function.
rr_rrtf/convert.pyRRTF_Cracked_To_XLS
  • File Object containing XML
  • File Object containing XML Schema
  • Path to save XLS to
  • (Optional) XSL to use for Counts
  • (Optional) Only Write "Interesting" (those rows with errors)
  • (Optional) Vascular Access (use VA_XML_To_Dict rather than RRTF_XML_To_Dict)
No return values. XLS file is saved to supplied path.Produces a message containing information to aid debugging and displays to easygui.textbox. Tries to quit program using sys.exit(0).
rr_rrtf/convert.pyRRTF_Schema_To_XLS
  • File Object containing XLS Schema
  • Path to save XLS to
No return values. XLS file is saved to supplied path.No special behaviourThis is used to turn the UKRR XLS schema into a spreadsheet for documentation purposes. I don't think it's been used recently.
rr_rrtf/convert.pyConvert_XLS_To_Cracked
  • CNT00 Value (Centre)
  • CNT02 Value (Quarter)
  • Path to Input XLS
  • Path to Output TXT
No return values. TXT file is saved to supplied path.No special behaviour
rr_rrtf/convert.pyConvert_Schema_To_XLSNo input parametersNo return values.No special behaviourWere this in active use it should be moved to rr_validation as has happened with the other GUI functions.
rr_rrtf/transform.pycheck_tags
  • LXML Tree
  • True/False depending on whether errors were found.
Uses return values.Checks that data tags are in the form AAA00 and that they have a parent element with the same prefix.
rr_rrtf/transform.pybuild_xml
  • String containing Cracked TXT
  • LXML Tree
Uses logger / exceptions in certain cases.There's a bit about QBL07 / QBL08 which I don't think should be in here.
rr_rrtf/transform.pymake_xml
  • Path to Cracked TXT

No special behaviour
rr_rrtf/transform.pydeconstruct
  • LXML Tree
  • String with Cracked TXT
No special behaviourThis could be re-written to use the XSL.
rr_rrtf/transform.pydump_xml
  • Path for Cracked TXT
  • LXML Tree
No return values.No special behaviour
rr_rrtf/transform.pycrack
  • Path with RR TXT
  • Path to save Cracked TXT
No return valuesNo special behaviour
rr_rrtf/transform.pytempxml
  • Path to Cracked TXT
No return ValuesIf there is an exception in converting back to TXT it logs an error and tries to exit the application with sys.exit(2)I find this a bit odd. It converts the Cracked TXT to XML which it returns, but then tries to convert it back to TXT as an apparent safety guard against something having broken.