Exemple #1
0
def test_dcm_time_to_sec():
    eq_(dcmstack.dcm_time_to_sec('100235.123456'), 36155.123456)
    eq_(dcmstack.dcm_time_to_sec('100235'), 36155)
    eq_(dcmstack.dcm_time_to_sec('1002'), 36120)
    eq_(dcmstack.dcm_time_to_sec('10'), 36000)

    #Allow older NEMA style values
    eq_(dcmstack.dcm_time_to_sec('10:02:35.123456'), 36155.123456)
    eq_(dcmstack.dcm_time_to_sec('10:02:35'), 36155)
    eq_(dcmstack.dcm_time_to_sec('10:02'), 36120)
    eq_(dcmstack.dcm_time_to_sec('10'), 36000)
Exemple #2
0
def test_dcm_time_to_sec():
    eq_(dcmstack.dcm_time_to_sec('100235.123456'), 36155.123456)
    eq_(dcmstack.dcm_time_to_sec('100235'), 36155)
    eq_(dcmstack.dcm_time_to_sec('1002'), 36120)
    eq_(dcmstack.dcm_time_to_sec('10'), 36000)
    
    #Allow older NEMA style values
    eq_(dcmstack.dcm_time_to_sec('10:02:35.123456'), 36155.123456)
    eq_(dcmstack.dcm_time_to_sec('10:02:35'), 36155)
    eq_(dcmstack.dcm_time_to_sec('10:02'), 36120)
    eq_(dcmstack.dcm_time_to_sec('10'), 36000)
Exemple #3
0
def test_dcm_time_to_sec():
    eq_(dcmstack.dcm_time_to_sec('100235.123456'), 36155.123456)