Skip to content

Commit

Permalink
get the current date that is simulated to get the current temperature #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Tk1999s committed Feb 9, 2022
1 parent f236196 commit 02a4693
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions simbev/simbevMiD.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def availability(
st = probdata["start"]
# probability for trip purpose depending on weekday
p_all = probdata["purpose"]
daykey = st.index
# p = p_all[::96]
# init car_status, 1,5 days for trips over 24h
# car_status = np.zeros(int(range_sim) + int(range_sim / 2))
Expand Down Expand Up @@ -219,6 +220,11 @@ def availability(
st_trips = st["trips"]
st_now = st_trips.iloc[im]

# get temperature
date_im = daykey
date_im = date_im.date
date_now = date_im[im]
date_now = str(date_now.day) + '.' + str(date_now.month) + '.' + '2022'
# get car status
go = car_status[im]

Expand Down

0 comments on commit 02a4693

Please sign in to comment.