Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
zneedell committed Jul 29, 2024
1 parent 3dbb95a commit f3ed169
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activitysim/core/logit.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ def report_bad_choices(

if trace_label:
logger.info("dumping %s" % trace_label)
state.tracing.write_csv(df[:MAX_DUMP], file_name=trace_label, transpose=False)
state.tracing.write_csv(df.iloc[:MAX_DUMP], file_name=trace_label, transpose=False)

# log the indexes of the first MAX_DUMP offending rows
for idx in df.index[:MAX_PRINT].values:
for idx in df.index.iloc[:MAX_PRINT].values:

row_msg = "%s : %s in: %s = %s (hh_id = %s)" % (
trace_label,
Expand Down

0 comments on commit f3ed169

Please sign in to comment.