Skip to content

Commit

Permalink
Merge pull request #31 from RSGInc/sort-warning
Browse files Browse the repository at this point in the history
Future-proof against pandas default change
  • Loading branch information
fletp committed Jul 24, 2019
2 parents 23f325c + 8d9c8f7 commit ef755d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ install:
- conda update -q conda
- conda info -a
- |
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION cytoolz numpy pandas pip pytables pyyaml toolz psutil
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION cytoolz numpy pandas pip pytables pyyaml=3.13 toolz psutil
- source activate test-environment
- pip install orca openmatrix zbox
- pip install pytest pytest-cov coveralls pycodestyle pytest-xdist
- pip install sphinx numpydoc
- pip --no-cache-dir install https://github.com/ActivitySim/activitysim/zipball/master
- pip install activitysim==0.5.1
- pip install .
script:
- pycodestyle rFirm
Expand Down
6 changes: 3 additions & 3 deletions rFirm/steps/firm_synthesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def firm_sim_scale_employees(
firms_foreign.index.name = firms.index.name

# Combine the new firms with foreign firms
firms = pd.concat([firms, firms_foreign]).sort_index()
firms = pd.concat([firms, firms_foreign], sort=True).sort_index()
assert firms.index.is_unique # index (bus_id) should be unique

# Recode employee counts into categories
Expand Down Expand Up @@ -1233,8 +1233,8 @@ def firm_synthesis(
if REGRESS:
regress(df=firm_io_pairs, step_name='firm_sim_iopairs', df_name='iopairs')
if TRACE_TAZ is not None:
print "\nfirm_sim_iopairs TRACE_TAZ %s firm_input_output_pairs\n" % \
TRACE_TAZ, firm_io_pairs[firm_io_pairs.TAZ == TRACE_TAZ].sort_values('bus_id')
print "\nfirm_sim_iopairs TRACE_TAZ %s firm_input_output_pairs\n" % \
TRACE_TAZ, firm_io_pairs[firm_io_pairs.TAZ == TRACE_TAZ].sort_values('bus_id')

# - firm_sim_producers
t0 = print_elapsed_time()
Expand Down

0 comments on commit ef755d0

Please sign in to comment.