Skip to content

Commit

Permalink
hotfix: adding version to metadata txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan committed Apr 18, 2022
1 parent da02de7 commit fef1f48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classVBET.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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
Expand Down

0 comments on commit fef1f48

Please sign in to comment.