Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions SALCAnitrate/SALCAnitrate_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ def c_month(in_month):
'''
# import the numpy module again for the SALCAfuture environment
import numpy as np
# generate an array with zeros the length of the input
m_month = list(np.zeros(len(in_month)))
# copy the input so the month remapping below operates on the real event
# months (previously this was np.zeros, so the loop tested zeros and the
# function always returned an all-zeros array regardless of its input)
m_month = list(in_month)
# for each month in the input list
for i in range(len(in_month)):
# returns 0 for no event
Expand Down