Skip to content

Commit

Permalink
fix shading bug
Browse files Browse the repository at this point in the history
  • Loading branch information
earnestt1234 committed Aug 24, 2020
1 parent e770049 commit 3280d02
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 4 deletions.
Binary file modified FED3_Viz/__pycache__/_version.cpython-37.pyc
Binary file not shown.
Binary file modified FED3_Viz/fed_inspect/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified FED3_Viz/fed_inspect/__pycache__/fed_inspect.cpython-37.pyc
Binary file not shown.
Binary file modified FED3_Viz/getdata/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified FED3_Viz/getdata/__pycache__/getdata.cpython-37.pyc
Binary file not shown.
Binary file modified FED3_Viz/load/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified FED3_Viz/load/__pycache__/load.cpython-37.pyc
Binary file not shown.
Binary file modified FED3_Viz/plots/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file modified FED3_Viz/plots/__pycache__/plots.cpython-37.pyc
Binary file not shown.
8 changes: 4 additions & 4 deletions FED3_Viz/plots/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ def night_intervals(array, lights_on, lights_off, instead_days=False):
night_intervals : list
List of tuples with structure (start of nighttime, end of nighttime).
"""
lights_on = datetime.time(hour=lights_on)
lights_off = datetime.time(hour=lights_off)
if lights_on == lights_off:
l_on = datetime.time(hour=lights_on)
l_off = datetime.time(hour=lights_off)
if l_on == l_off:
night_intervals = []
return night_intervals
else:
at_night = [is_day_or_night(i, 'night') for i in array]
at_night = [is_day_or_night(i, 'night', lights_on=lights_on, lights_off=lights_off) for i in array]
if instead_days:
at_night = [not i for i in at_night]
night_starts = []
Expand Down

0 comments on commit 3280d02

Please sign in to comment.