From fef1f48b91211060950d2dd0012e66c422772370 Mon Sep 17 00:00:00 2001 From: Jordan Date: Mon, 18 Apr 2022 09:39:14 -0600 Subject: [PATCH] hotfix: adding version to metadata txt --- classVBET.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classVBET.py b/classVBET.py index e70fc27..7c7aa8c 100644 --- a/classVBET.py +++ b/classVBET.py @@ -43,6 +43,8 @@ def __init__(self, **kwargs): self.med_depth = kwargs['med_depth'] self.sm_depth = kwargs['sm_depth'] + self.version = '2.1.0' + # create metadata text file metatxt = '{out}_metadata.txt'.format(out=self.out) L = ['network: {} \n'.format(self.streams), @@ -65,6 +67,7 @@ def __init__(self, **kwargs): ] self.md = open(metatxt, 'w+') self.md.writelines(L) + self.md.writelines('\n VBET-2 version {}'.format(self.version)) self.md.writelines('\nStarted: {} \n'.format(datetime.now().strftime("%d/%m/%Y %H:%M:%S"))) # either use selected drainage area field, or pull drainage area from raster