Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/datafile.py   pyHMSA(Download)
from pyhmsa.datafile import DataFile
 
from pyhmsa.fileformat.xmlhandler.header import HeaderXMLHandler
 
from pyhmsa.type.checksum import calculate_checksum, calculate_checksum_sha1
    def _read_header(self, datafile, root):
        handler = HeaderXMLHandler(datafile.version)
        datafile.header.update(handler.parse(root.find('Header')))
 
    def _read_conditions(self, datafile, root):
    def _write_header(self, datafile, root):
        handler = HeaderXMLHandler(datafile.version)
        element = handler.convert(datafile.header)
        root.append(element)
 

src/p/y/pyHMSA-0.1/pyhmsa/fileformat/xmlhandler/test_header.py   pyHMSA(Download)
# Local modules.
from pyhmsa.spec.header import Header
from pyhmsa.fileformat.xmlhandler.header import HeaderXMLHandler
from pyhmsa.type.checksum import Checksum
 
    def setUp(self):
        unittest.TestCase.setUp(self)
 
        self.h = HeaderXMLHandler(1.0)