Skip to content

Commit

Permalink
more debuggable and fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wumpus committed Apr 8, 2021
1 parent c9aafe3 commit c53fa67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/lindy.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,14 +286,12 @@ def do_00_plot(gfs_cycle, allest, start, end, plotdir, stations, force=False, in
continue
if include and site not in include:
continue
if gfs_cycle not in allest[site]:
continue
actual_sites.add(site)

for site in sorted(allest):
if site not in actual_sites:
continue
if site in close_sites and close_sites[site] in allest:
continue
if gfs_cycle not in allest[site]:
for site in sorted(actual_sites):
if site in close_sites and close_sites[site] in actual_sites:
continue

est = allest[site][gfs_cycle]
Expand Down
5 changes: 5 additions & 0 deletions scripts/make-jumbo-webpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from collections import defaultdict
import sys
import argparse
import traceback

from jinja2 import Environment, FileSystemLoader, select_autoescape

Expand Down Expand Up @@ -57,6 +58,9 @@
for f in sorted(files):
if f.endswith('.csv'):
continue
if f == 'lindy_00.png':
# a symlink
continue
f = f.split('/')[-1]
parts = f.split('_')
if parts[0] in prefixes:
Expand Down Expand Up @@ -92,3 +96,4 @@
f.write(template.render(stuff=stuff, now=now, future=future))
except Exception as e:
print('got exception {} processing {}, skipping'.format(str(e), d), file=sys.stderr)
print(traceback.format_exc())

0 comments on commit c53fa67

Please sign in to comment.