sbmlteam/libCombine

v0.2.8 of python-libcombine breaks ability to set and get modified dates

Closed this issue · 2 comments

v0.2.8 of the python version of libCOMBINE breaks the ability to set and get modified dates.

Here's an example which works with 0.2.7, but not with 0.2.8. Example file: test.omex.zip

import libcombine
combine_archive_filename = 'test.omex'
combine_archive = libcombine.CombineArchive()
combine_archive.initializeFromArchive(combine_archive_filename)
location = combine_archive.getAllLocations()[0]
metadata = combine_archive.getMetadataForLocation(location)
for modified in metadata.getModified(): 
    print(modified.getDateAsString())

Appending modified dates has also been broken.

date = libcombine.Date()
date.setDateAsString('...')
metadata.getModified().append(date)

Thanks, this is fixed with commit 73e20d7, i'll re-release

Thanks!