Mercurial > hg > cc > cirrus_work
comparison bin/by_year.py @ 168:f95858689037
fix output year
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Thu, 02 Nov 2023 15:38:39 +0000 |
parents | e1881804855f |
children |
comparison
equal
deleted
inserted
replaced
167:e1881804855f | 168:f95858689037 |
---|---|
14 field=3 | 14 field=3 |
15 | 15 |
16 if not os.access(outdir,os.F_OK): | 16 if not os.access(outdir,os.F_OK): |
17 os.mkdir(outdir) | 17 os.mkdir(outdir) |
18 | 18 |
19 origin = float(origin) | 19 origin = int(origin) |
20 current = origin | 20 current = origin |
21 is_first = True | 21 is_first = True |
22 with open(year_file,'r') as years, open(in_file,'r') as stamped: | 22 with open(year_file,'r') as years, open(in_file,'r') as stamped: |
23 y = years.readline() | 23 y = years.readline() |
24 l = stamped.readline() | 24 l = stamped.readline() |