def __init__(self, name, mapset='', mtype='', creator='', src1='', src2='', keyword='', date='', title=''): self.c_hist = ctypes.pointer(libraster.History()) # 'Tue Nov 7 01:11:23 2006' self.date_fmt = '%a %b %d %H:%M:%S %Y' self.name = name self.mapset = mapset self.mtype = mtype self.creator = creator self.src1 = src1 self.src2 = src2 self.keyword = keyword self.date = date self.title = title self.attrs = [ 'name', 'mapset', 'mtype', 'creator', 'src1', 'src2', 'keyword', 'date', 'title' ]
def __init__( self, name, mapset="", mtype="", creator="", src1="", src2="", keyword="", date="", title="", ): self.c_hist = ctypes.pointer(libraster.History()) # 'Tue Nov 7 01:11:23 2006' self.date_fmt = "%a %b %d %H:%M:%S %Y" self.name = name self.mapset = mapset self.mtype = mtype self.creator = creator self.src1 = src1 self.src2 = src2 self.keyword = keyword self.date = date self.title = title self.attrs = [ "name", "mapset", "mtype", "creator", "src1", "src2", "keyword", "date", "title", ]
def __init__(self): self.hist = libraster.History() # 'Tue Nov 7 01:11:23 2006' self.date_fmt = '%a %b %d %H:%M:%S %Y'