Skip to content

Commit

Permalink
blacken
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensle committed Mar 8, 2024
1 parent 3aa3f46 commit 481238b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion activitysim/abm/models/non_mandatory_tour_frequency.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
import pandas as pd

from activitysim.abm.models.util import annotate
from activitysim.abm.models.util.overlap import person_max_window, person_available_periods
from activitysim.abm.models.util.overlap import (
person_max_window,
person_available_periods,
)
from activitysim.abm.models.util.school_escort_tours_trips import (
recompute_tour_count_statistics,
)
Expand Down
4 changes: 3 additions & 1 deletion activitysim/abm/models/util/overlap.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@ def calculate_consecutive(array):
return out


def person_available_periods(state: workflow.State, persons, start_bin=None, end_bin=None, continuous=False):
def person_available_periods(
state: workflow.State, persons, start_bin=None, end_bin=None, continuous=False
):
"""
Returns the number of available time period bins foreach person in persons.
Can limit the calculation to include starting and/or ending bins.
Expand Down

0 comments on commit 481238b

Please sign in to comment.