Started keeping this code change diary now the initial script, adxFromSheet.py is at a reasonable stage. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=- 2006-03-06-08 adxFromSheet UPDATE TO NEW SCHEMA - InstrumentRun - class adxInstrumentRun added - fun translateFile - read in otherLines - build runs - write out runs - fun buildSpecimenDefs - renamed buildSpecsRunsAssays - create runs - class adxSpecimen - buildReceiptEventElement renamed buildTransferEventElement - buildSpecimenElement create a transferEvent instead of receiptEvent - class adxMeasurement - added property instrumentRun - __init__ added param instrumentRun - buildMeasurementElement - write 'of' instead of 'spec' element GLOBAL CHANGE xlink: to xl: -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=- 2006-03-06-08 adxFromSheet FIX BUG - Creating InstrumentRun every proc, not reusing added globals - instrumentRunsByID - deviceSetupsByID - gGMLUniqueIDs - class gmlIDBuilder - __init__ use gGMLUniqueIDs to guarantee all ID's unique - class adxProcedure - instrumentRunForRow added - fun buildSpecsRunsAssays - use instrumentRunForRow -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=- 2006-03-13-16 REWRITE FOR OPTIMAL HISTORY MODEL adxFromSheet.py - instrumentRunsByID removed - class adxProcedure - instrumentRunForRow removed - class adxProcessingHistory - class adxProtoHistory - class adxProtoPulpPrep - class adxProtoRejectStore - class adxProtoInstrumentPrep - class adxProtoSampleReceipt - class adxProtoPulpReuse - class adxProtoMeasure - added - class adxMeasurement - removed property instrumentRun - __init__ removed param instrumentRun - buildMeasurementElement - don't write 'via' element - class adxInstrumentRun - removed - class adxPrepSeq - removed - fun buildSpecsRunsAssays - removed - fun buildIncomingSampleProcessingHistories - added - fun buildSeqDefs - moved some logic to - fun TextSubElement - added - fun translateFile - don't build or output runs - class gmlIDBuilder - moved gID & gGMLUniqueIDs in from being globals to being class vars -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=- 2006-03-16 GENERATE ESSENTIAL PARAMS FOR OPTIMAL HISTORY MODEL adxFromSheet.py class adxProtoPulpPrep class adxProtoRejectStore class adxProtoInstrumentPrep class adxProtoSampleReceipt class adxProtoPulpReuse class adxProtoRepeat class adxProtoMeasure - __init__ added fills param - buildParamElement write fills element fun buildIncomingSampleProcessingHistories - add an adxProtoSamplReceipt param to each history -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=- 2006-03-17 ENABLE PULP REUSE TO HAVE PROCEDURE adxFromSheet.py class adxProtoPulpReuse - __init__ added param & store member procUsed (so originalSampleID not 1st param) - buildParams writes procUsed as well fun buildIncomingSampleProcessingHistories - lookup type for initial event, do NOT assume SampleReceiptEvent