Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BayDAG merge with ActivitySim v1.2 #56

Merged
merged 832 commits into from
Feb 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
832 commits
Select commit Hold shift + click to select a range
7b4b780
fixed logsums merge on households instead of persons
nick-fournier-rsg Sep 30, 2022
846d3be
code cleanup
dhensle Sep 30, 2022
e2dde11
more cleanup
dhensle Sep 30, 2022
3863396
documentation and passing tests
dhensle Sep 30, 2022
3d1edc7
passing tests
dhensle Sep 30, 2022
895438e
fixed _accessibility suffix
nick-fournier-rsg Sep 30, 2022
d9c465c
fixed conflict with persons_merged
nick-fournier-rsg Sep 30, 2022
e1b1b0c
updated yaml to use simpler join method
nick-fournier-rsg Sep 30, 2022
ca1c130
Merge remote-tracking branch 'origin/develop' into dev_accessibilities
nick-fournier-rsg Sep 30, 2022
ba27eb3
PEP formatting fixes
nick-fournier-rsg Oct 1, 2022
9c295f9
refreshed example folder from develop
nick-fournier-rsg Oct 1, 2022
56184ad
added missing line at end of file
nick-fournier-rsg Oct 1, 2022
1e78698
black fixes
nick-fournier-rsg Oct 1, 2022
301ac23
black fixes to disaggregate accessibility changes
nick-fournier-rsg Oct 1, 2022
c4dc4ea
passing tests
dhensle Oct 1, 2022
c25dd3f
ext cli arg
jpn-- Oct 1, 2022
ca1cba9
memory sidecar
jpn-- Oct 1, 2022
2dfbfa5
restart if resume_after checkpoint is missing
jpn-- Oct 1, 2022
65e32c1
no pandas 1.5 yet
jpn-- Oct 1, 2022
35d6910
stop the sidecar
jpn-- Oct 2, 2022
23df7b9
updated doc on shadow pricing
aletzdy Oct 3, 2022
7160497
Merge branch 'ActivitySim:main' into backports
jpn-- Oct 3, 2022
4269dd5
2nd Update model doc on shadow pricing
aletzdy Oct 3, 2022
3a87acd
more doc update on shadow pricing
aletzdy Oct 3, 2022
26f8b12
minor repairs
jpn-- Oct 3, 2022
3770e5a
skip when household_income is None
jpn-- Oct 3, 2022
7be7dd8
Merge branch 'ActivitySim:main' into dev_accessibilities
nick-fournier-rsg Oct 3, 2022
188a05f
fixed missing column pipeline error
nick-fournier-rsg Oct 3, 2022
2db5f59
fixing pandas future warning
dhensle Oct 3, 2022
b5768e3
blacken
dhensle Oct 3, 2022
0da4af9
merged disagg accessibilities into mtc_extended and added doc section
nick-fournier-rsg Oct 3, 2022
a2a743c
ran black on disaggregate_accessibility.py
nick-fournier-rsg Oct 3, 2022
30d67bc
bug in trying to access shadow price settings when not running shadow…
dhensle Oct 3, 2022
a20a396
limiting pandas version
dhensle Oct 3, 2022
ff51013
updated dependencies
nick-fournier-rsg Oct 3, 2022
4d58a85
always updating choices
dhensle Oct 3, 2022
25ddd57
removing sklearn imports
dhensle Oct 3, 2022
4298141
blacken
dhensle Oct 3, 2022
9fa6d0b
add if none catch
nick-fournier-rsg Oct 3, 2022
4123c86
fixed None suffix default
nick-fournier-rsg Oct 3, 2022
0941d01
moved order of get_table(persons_merged) to avoid pulling prematurely…
nick-fournier-rsg Oct 3, 2022
7c706f7
testing removal of lognormal for hh vot
dhensle Oct 3, 2022
e2e0d9d
putting hh vot back in
dhensle Oct 3, 2022
40a8170
tested and cleaned up rng channels
nick-fournier-rsg Oct 4, 2022
079dcfb
setup injectable suffixes to allow add_size_table as model step not j…
nick-fournier-rsg Oct 4, 2022
2187a4b
removed accessibility output from test
nick-fournier-rsg Oct 4, 2022
d52666e
re blacken py scripts
nick-fournier-rsg Oct 4, 2022
95d7fd7
updating to match sharrow test versions
dhensle Oct 4, 2022
8ab2f65
fixed tracing typo
nick-fournier-rsg Oct 4, 2022
29a9ddc
added variable index name suffix to pass optionally
nick-fournier-rsg Oct 4, 2022
d4886ee
pipeline housekeeping to cleanup any tables, traceables, or channels …
nick-fournier-rsg Oct 5, 2022
5406541
added multiprocess testing
nick-fournier-rsg Oct 5, 2022
6521f56
blacken updates
nick-fournier-rsg Oct 5, 2022
82c36c7
updated test scripts to include MP, problem with vehicle model in mp …
nick-fournier-rsg Oct 5, 2022
ecd53a6
added improved origin sampling, resolved issue with merging with samp…
nick-fournier-rsg Oct 7, 2022
4e01bf2
added sci-kit learn to test depends
nick-fournier-rsg Oct 7, 2022
b6ac7ef
fixed person merging error causing pytest fail, uses inject method to…
nick-fournier-rsg Oct 7, 2022
f53ec77
cleanup comments
nick-fournier-rsg Oct 7, 2022
35d0a5d
fixed pytest to include accessibility table in regress
nick-fournier-rsg Oct 7, 2022
d5042f5
setup for mp test, but needs debugging
nick-fournier-rsg Oct 7, 2022
d5132fc
'blacken'
nick-fournier-rsg Oct 7, 2022
ca317fc
'blacken'
nick-fournier-rsg Oct 7, 2022
935b42d
cleanup example folder
nick-fournier-rsg Oct 7, 2022
b351eb0
fixed pipeline NoneType bug for disagg accessibility table
nick-fournier-rsg Oct 7, 2022
1ce6d36
raw person table for buffer instead of injectable
dhensle Oct 7, 2022
5ab73ed
add mp test for prototype_mtc_extended
dhensle Oct 11, 2022
a52bb48
merging mp_testing
dhensle Oct 11, 2022
e41fe66
fixed pytest fail on mp, due to exept:True on mp_simulate
nick-fournier-rsg Oct 11, 2022
34e08b3
'blacken'
nick-fournier-rsg Oct 11, 2022
87c251f
added weighted k-means method
nick-fournier-rsg Oct 13, 2022
aeff8e8
created run script for multiple sampling scenarios
nick-fournier-rsg Oct 13, 2022
93544fd
blacken changes
nick-fournier-rsg Oct 13, 2022
47d1e6b
blacken
nick-fournier-rsg Oct 13, 2022
9a9c9cf
fixed copy script
nick-fournier-rsg Oct 17, 2022
a291027
blacken sampling script
nick-fournier-rsg Oct 17, 2022
8180d7d
fixed n_zone when integer
nick-fournier-rsg Oct 17, 2022
5960f40
fixed typo
nick-fournier-rsg Oct 17, 2022
d5a33c2
Update random.py
JoeJimFlood Oct 24, 2022
6d4e7ea
Updated test environment to reflect changes in pandas
JoeJimFlood Oct 25, 2022
ef53ad1
Removed random random seed generation from placeholder_sandage 1-zone…
JoeJimFlood Oct 25, 2022
6584f7b
update sampling script
nick-fournier-rsg Oct 25, 2022
dada5cd
'blacken'
nick-fournier-rsg Oct 25, 2022
1096cfb
fixed replacement sample bug
nick-fournier-rsg Oct 25, 2022
7167b65
adding segmentation, output by iteration, and external worker removal
dhensle Oct 25, 2022
0d0a7c3
updated documentation
nick-fournier-rsg Oct 25, 2022
17c6b21
more flexible scenario testing
nick-fournier-rsg Oct 26, 2022
7dde020
blacken
nick-fournier-rsg Oct 26, 2022
80b6330
Added test_random_seed.py
JoeJimFlood Oct 27, 2022
a24e2f7
blacken test_random_seed.py
JoeJimFlood Oct 27, 2022
d1087c4
Moved random seed generation testing out of prototype_mtc folder and …
JoeJimFlood Oct 27, 2022
80e291f
Corrected name of check_outputs()
JoeJimFlood Oct 27, 2022
73264ab
added test runs to __main__ in test_mtc_extended
dhensle Oct 27, 2022
03590b8
Added print statements to debug script
JoeJimFlood Oct 27, 2022
1258532
Blacken test_random_seed.py
JoeJimFlood Oct 27, 2022
0f42579
keep alternative attributes in parking location
i-am-sijia Oct 27, 2022
e5c658a
move coeff values to coeff csv
i-am-sijia Oct 27, 2022
062a0de
Added pipe character to call that tests the random generator
JoeJimFlood Oct 27, 2022
ffb18be
Added explicit call for pytest to run test_random_seed.py
JoeJimFlood Oct 27, 2022
666f389
Added print statement at start of script for debugging
JoeJimFlood Oct 27, 2022
2b81d9d
Replaced single quotes with double quotes in print statement
JoeJimFlood Oct 27, 2022
9644e40
reformat with Black
i-am-sijia Oct 27, 2022
810d525
Moved random seed test into activitysim folder
JoeJimFlood Oct 27, 2022
3c3a8be
Edited core_tests.yml to reflect change in location of random seed test
JoeJimFlood Oct 27, 2022
f85a70c
Renamed tests folder to test to reflect call in core-tests.yml
JoeJimFlood Oct 27, 2022
bce64bd
formatting & documentation
dhensle Oct 27, 2022
00ad0aa
Added test_random_seed function for PyTest to read
JoeJimFlood Oct 27, 2022
730c5f9
Fixed defition of seeds list and removed print statements
JoeJimFlood Oct 27, 2022
06849e0
updating github test env
dhensle Oct 27, 2022
fa7cc94
responding to review comments
dhensle Oct 27, 2022
4ccd02e
Merge branch 'develop' into flexible_ids
dhensle Oct 27, 2022
0fbb38c
Added line to create output folder as that's not being committed
JoeJimFlood Oct 28, 2022
053da39
create_rng_configs() now copies entire example configs directory inst…
JoeJimFlood Oct 28, 2022
b6ed4f8
Added try except statement when creating the output directory in case…
JoeJimFlood Oct 28, 2022
f5f4a2e
additional logging, random seed option, landuse sample weight column
dhensle Nov 2, 2022
ebd2bc8
ensuring TAZ is not selected if no available MAZ
dhensle Nov 4, 2022
aa8d5a3
adding logic to skip external location choice models
dhensle Nov 4, 2022
8b2c028
Applied suggested changes
JoeJimFlood Nov 18, 2022
5d543fd
Removed activitysim\test\random_seed\configs directory to reduce conf…
JoeJimFlood Nov 18, 2022
067c717
Moved random seed test directory to folder that had already existed
JoeJimFlood Nov 18, 2022
6831332
temporarily constrain pandas #608
i-am-sijia Nov 21, 2022
c849129
work around psutil runtimeerror
i-am-sijia Nov 21, 2022
fe79aaf
temp constrain pandas
i-am-sijia Nov 21, 2022
dda6bd9
Merge pull request #625 from wsp-sag/psutil-mem-info-workaround
jpn-- Nov 22, 2022
b7fe341
Merge commit 'dda6bd9d699d4e7117d986fd952e36829e55948f' into develop
jpn-- Nov 22, 2022
f99a757
Merge branch 'develop' into backports
jpn-- Nov 22, 2022
264cadd
Merge pull request #626 from ActivitySim/main
jpn-- Nov 22, 2022
290c43c
add mwcog full example
jpn-- Nov 22, 2022
48085bb
review responses
dhensle Dec 2, 2022
bb813c0
revisions per Sijia's comments, except for the proto-table-template i…
nick-fournier-rsg Dec 7, 2022
f738aa3
added template pop option
nick-fournier-rsg Dec 8, 2022
ce78cfb
blacken
nick-fournier-rsg Dec 8, 2022
f01e8ac
Merge pull request #581 from dhensle/flexible_ids
jpn-- Dec 8, 2022
f02c466
set back to create_tables to pass test against old tables
nick-fournier-rsg Dec 8, 2022
57e726a
updated proto-pop test data
nick-fournier-rsg Dec 8, 2022
f0b6524
resolved bad test data issue
nick-fournier-rsg Dec 8, 2022
d137b36
Merge pull request #577 from JoeJimFlood/fix_gen_random_seed
jpn-- Dec 10, 2022
f9483e0
warn don't fail on duplicate skims
jpn-- Dec 11, 2022
aa1aaa4
include sharrow in mwcog example
jpn-- Dec 11, 2022
faa7a39
cleanup
jpn-- Dec 11, 2022
97225b3
zarr digital encoding for mwcog
jpn-- Dec 11, 2022
88dc1cf
include reference in psrc mini
jpn-- Dec 11, 2022
80812d0
fow window ids to int64 because windows
jpn-- Dec 12, 2022
9ae54a9
handle expected warnings
jpn-- Dec 12, 2022
711dec2
unpin dependencies
jpn-- Dec 12, 2022
dbe0da9
Merge branch 'bugfix-warnings' into feature-sharrow-tt
jpn-- Dec 12, 2022
459bdb1
columns cannot be a set
jpn-- Dec 12, 2022
11d9556
unpin pandas
jpn-- Dec 12, 2022
d4ab3a3
columns cannot be a set
jpn-- Dec 12, 2022
1938b3e
numeric_only args in groupby.sum
jpn-- Dec 12, 2022
50ed965
Merge pull request #629 from camsys/bugfix-warnings
jpn-- Dec 12, 2022
6943d64
Merge branch 'develop' into feature-sharrow-tt
jpn-- Dec 12, 2022
a0b5204
docs: correct the unit of `chunk_size`.
asiripanich Nov 18, 2022
7c03020
change 'arry' to more readable 'sizearray'
jpn-- Dec 12, 2022
6c79abc
repair tests
jpn-- Dec 12, 2022
bd07316
Merge pull request #630 from camsys/asiripanich/main
jpn-- Dec 12, 2022
4cb65ca
catch FileNotFound
jpn-- Dec 13, 2022
41d0068
Merge pull request #600 from Chronial/feature/installer
jpn-- Dec 13, 2022
231e7a3
add check that land use is zero-based when using sharrow
jpn-- Dec 13, 2022
33deb63
better docs on skims in shared memory
jpn-- Dec 13, 2022
3b132e7
better docstrings for skimdataset
jpn-- Dec 13, 2022
c6e68af
remove old code
jpn-- Dec 13, 2022
a8ab2ff
remove junk
jpn-- Dec 13, 2022
da51038
add logging for recoding
jpn-- Dec 13, 2022
6a845e4
optimize nearest zone determination
dhensle Dec 15, 2022
902cb81
Merge branch 'develop' into dev_accessibilities
dhensle Dec 15, 2022
a79ac7b
consistent multiprocessing results
dhensle Dec 15, 2022
9190535
Merge branch 'develop' into develop_RevisedShadowPricing
dhensle Dec 15, 2022
0d90f87
blacken
dhensle Dec 15, 2022
0898686
Merge branch 'develop_RevisedShadowPricing' of https://github.com/ale…
dhensle Dec 15, 2022
3a78433
updating regression trips
dhensle Dec 15, 2022
d132ac2
adding sandag 2-zone test
dhensle Dec 17, 2022
e11b48a
Merge pull request #622 from BayAreaMetro/parking-location-bug-fix
jpn-- Dec 21, 2022
1e8164b
Merge pull request #613 from aletzdy/develop_RevisedShadowPricing
jpn-- Dec 21, 2022
be0319c
Merge branch 'develop' into feature-sharrow-tt
jpn-- Dec 21, 2022
e270830
blacken
jpn-- Dec 22, 2022
f6ee1e9
Merge branch 'develop_tripDestUpdate' into feature-sharrow-tt
jpn-- Dec 22, 2022
3a4f1e8
fix merge error
jpn-- Dec 22, 2022
1039c90
allow pandas 1.5 again
jpn-- Dec 22, 2022
5e61a2c
sharrow compatibility with #606
jpn-- Dec 22, 2022
02720b3
remove outdated code in comments
jpn-- Dec 22, 2022
98034cc
note on tracing limitation
jpn-- Dec 22, 2022
76125a8
allow repeating key cols
jpn-- Dec 22, 2022
0295619
fix decoding in MP output
jpn-- Dec 22, 2022
6da35a6
escortee modes match chauf modes
dhensle Dec 23, 2022
a568076
merging in develop branch
dhensle Dec 23, 2022
b787859
updating regression tests
dhensle Dec 23, 2022
9c4d96f
fixing bad var name in inbound expressions
dhensle Dec 23, 2022
58cf20e
Merge pull request #612 from camsys/backports
jpn-- Dec 30, 2022
21dc878
Merge branch 'develop' into est-fix
jpn-- Dec 30, 2022
36280d8
add note about `condense_parameters`
jpn-- Dec 30, 2022
88e1bd5
change default condense_parameters to False
jpn-- Dec 30, 2022
7cc99ef
Merge pull request #591 from camsys/est-fix
jpn-- Dec 30, 2022
9db0029
Merge branch 'develop' into dev_accessibilities
jpn-- Dec 30, 2022
bcc89c8
Update .gitignore
jpn-- Jan 2, 2023
6194319
Merge branch 'develop' into feature-sharrow-tt
jpn-- Jan 2, 2023
d56bef6
ignore caches
jpn-- Jan 2, 2023
8dca8e9
remove special install instructions
jpn-- Jan 2, 2023
6b52af2
remove sharrow_skip's
jpn-- Jan 2, 2023
ea24043
Revert "remove sharrow_skip's"
jpn-- Jan 2, 2023
60f8dda
add note about why sharrow_skip is activated
jpn-- Jan 2, 2023
71d3e91
Merge pull request #611 from camsys/feature-sharrow-tt
jpn-- Jan 3, 2023
838d80d
Merge branch 'develop' into school_escorting
jpn-- Jan 3, 2023
ff5f57d
Update school_escorting.yaml
jpn-- Jan 3, 2023
df2f38a
Update config.py
jpn-- Jan 3, 2023
223118a
arc trip destination spec skim correction
i-am-sijia Jan 5, 2023
f871b55
update regression trips
i-am-sijia Jan 5, 2023
80d8a53
require sharrow 2.5
jpn-- Jan 9, 2023
684cc9c
fix mtc_ext for sharrow
jpn-- Jan 10, 2023
6bb3660
fix test consistent with escort mode alignments
jpn-- Jan 10, 2023
5063070
allow sharrow skipping
jpn-- Jan 12, 2023
88b0847
remove stray indent
jpn-- Jan 12, 2023
30af6ba
delete expression values after sharrow testing to make debugging easier
jpn-- Jan 12, 2023
28480b0
require sharrow 2.5.2
jpn-- Jan 12, 2023
f800b95
merge with develop
jpn-- Jan 13, 2023
22c743e
recode only once
jpn-- Jan 13, 2023
119dae2
testing repairs
jpn-- Jan 13, 2023
658f5e5
note about why sharrow_skip
jpn-- Jan 16, 2023
113dc22
fork mtc_extended testing on shadow pricing and sharrow
jpn-- Jan 16, 2023
d3dd6ac
note on sharrow_skip
jpn-- Jan 16, 2023
db4db8c
Merge branch 'school_escorting' into dev_accessibilities
jpn-- Jan 16, 2023
ec1acb8
size term scaling only for full run
dhensle Jan 19, 2023
fa64b51
reordering
dhensle Jan 20, 2023
8a150a3
multiprocessing hangs!
dhensle Jan 20, 2023
83aff55
never scale size terms for disagg
dhensle Jan 20, 2023
606fad4
tally pending persons
jpn-- Jan 26, 2023
1779541
tests cleanup
jpn-- Jan 26, 2023
d7666a6
fix error with orca
jpn-- Jan 26, 2023
e94d58a
let pipeline tables be dropped
jpn-- Jan 26, 2023
dedd372
check on available MAZs, comment cleanup
dhensle Jan 26, 2023
25ae93c
work zone to -1 if wfh, removed unneeded extensions
dhensle Jan 26, 2023
8efae4e
fix tests for sandag 2zone
jpn-- Jan 27, 2023
27429d0
Merge pull request #8 from camsys/dev_accessibilities
jpn-- Jan 27, 2023
a75d95d
Merge branch 'develop' into wfh_zone_setting
jpn-- Jan 27, 2023
9133c2e
ignore deprecation warning in tests
jpn-- Jan 27, 2023
5eebf18
Merge pull request #9 from camsys/wfh_zone_setting
jpn-- Jan 27, 2023
28ff447
Merge pull request #635 from camsys/develop
jpn-- Jan 28, 2023
4bcad57
Merge pull request #634 from wsp-sag/arc-trip-dest-fix
jpn-- Jan 28, 2023
ae7fa43
Merge pull request #636 from ActivitySim/develop
jpn-- Jan 30, 2023
e6f232b
add scikit-learn to formal dependencies
jpn-- Jan 31, 2023
388e4da
docs update for installer
jpn-- Jan 31, 2023
d0776af
Merge pull request #639 from camsys/depend-sklearn
jpn-- Jan 31, 2023
91b6358
fixing black to 22.12.0
dhensle Feb 2, 2023
0ff34ae
Merge branch 'BayDAG' into develop_BayDAG_merge
dhensle Feb 3, 2023
1703f9b
missed merge conflicts
dhensle Feb 3, 2023
d25165f
fixing merge issues in prototype_semcog
dhensle Feb 4, 2023
cff8307
fixing prototype_arc merge
dhensle Feb 4, 2023
d675424
fixing placeholder_sandag merge issues
dhensle Feb 4, 2023
423c50e
blacken
dhensle Feb 4, 2023
52800a6
fixing mwcog merge issues
dhensle Feb 6, 2023
187cb4f
skims not found during estimation test
dhensle Feb 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
63 changes: 63 additions & 0 deletions .github/workflows/build_installer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Build installer
on:
workflow_dispatch:
inputs:
version:
description: 'Build installer for version (e.g. "1.0.4")'
required: true
type: string
release:
description: 'Upload as release artifact'
required: true
type: boolean

jobs:
build:
name: ActivitySim-${{ matrix.OS_NAME }}-${{ matrix.ARCH }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
ARCH: x86_64
TARGET_PLATFORM: win-64
OS_NAME: "Windows"

steps:
- name: Checkout code
uses: actions/checkout@v3

- uses: conda-incubator/setup-miniconda@35d1405e78aa3f784fe3ce9a2eb378d5eeb62169
with:
miniconda-version: "latest"
if: contains(matrix.OS_NAME, 'Windows')

- name: Build installer
env:
ARCH: ${{ matrix.ARCH }}
OS_NAME: ${{ matrix.OS_NAME }}
TARGET_PLATFORM: ${{ matrix.TARGET_PLATFORM }}
run: |
export ACTIVITYSIM_VERSION=${{ inputs.version }}
export EXT=exe
source /c/Miniconda3/Scripts/activate;
source other_resources/installer/build_win.sh;
ls -alh build
shell: bash

- name: Upload installer to Github artifact
uses: actions/upload-artifact@v3
with:
path: build/Activitysim-${{ inputs.version }}-${{ matrix.OS_NAME }}-${{ matrix.ARCH }}*
name: Activitysim-${{ inputs.version }}-${{ matrix.OS_NAME }}-${{ matrix.ARCH }}

- name: Upload installer to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/Activitysim*
tag: v${{ inputs.version }}
overwrite: true
file_glob: true
if: inputs.release
53 changes: 53 additions & 0 deletions .github/workflows/core_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,59 @@ jobs:
run: |
python -m pytest activitysim/examples/${{ matrix.region }}/test --durations=0

random_seed_generation:
needs: foundation
env:
mamba-env-prefix: /usr/share/miniconda3/envs/asim-test
python-version: 3.9
label: linux-64
defaults:
run:
shell: bash -l {0}
name: random_seed_generation_test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: asim-test
use-mamba: true
python-version: ${{ env.python-version }}

- name: Set cache date for year and month
run: echo "DATE=$(date +'%Y%m')" >> $GITHUB_ENV

- uses: actions/cache@v2
with:
path: ${{ env.mamba-env-prefix }}
key: ${{ env.label }}-conda-${{ hashFiles('conda-environments/github-actions-tests.yml') }}-${{ env.DATE }}-${{ env.CACHE_NUMBER }}
id: cache

- name: Update environment
run: mamba env update -n asim-test -f conda-environments/github-actions-tests.yml
if: steps.cache.outputs.cache-hit != 'true'

- name: Install activitysim
# installing without dependencies is faster, we trust that all needed dependencies
# are in the conda environment defined above. Also, this avoids pip getting
# confused and reinstalling tables (pytables).
run: |
python -m pip install -e . --no-deps

- name: Conda checkup
run: |
mamba info -a
mamba list

- name: Test Random Seed Generation
run: |
python -m pytest test/random_seed/test_random_seed.py --durations=0

estimation_mode:
needs: foundation
env:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ _test_est
*_local/
*_local.*

**/__sharrowcache__
**/skims.zarr
**/output/
**/_generated_version.py
docs/**/_generated
2 changes: 0 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-yaml
exclude: logging.yaml # TODO don't exclude, will require fixing logging
- id: end-of-file-fixer
exclude: .*\.ipynb
- id: trailing-whitespace
Expand Down
43 changes: 33 additions & 10 deletions HOW_TO_RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
and development. If they are not updated, these environments will end
up with dependencies loaded from *pip* instead of *conda-forge*.

00. Run `black` to ensure that the codebase passes minimal style checks.
00. Run black to ensure that the codebase passes all style checks.
This check should only take a few seconds. These checks are also done on
GitHub Actions and are platform independent, so they should not be necessary to
replicate locally, but are listed here for completeness.
Expand All @@ -67,7 +67,7 @@
```

00. Test the full-scale regional examples. These examples are big, too
large to run on GitHub Actions, and will take a lot of time (many hours) to
large to run on Travis, and will take a lot of time (many hours) to
download and run.
```sh
mkdir tmp-asim
Expand All @@ -88,6 +88,37 @@
There are also demo notebooks for estimation, but their functionality
is completely tested in the unit tests run previously.

00. Use bump2version to tag the release commit and update the
version number. The following code will generate a "patch" release,
incrementing the third value in the version number (i.e. "1.2.3"
becomes "1.2.4"). Alternatively, make a "minor" or "major" release.
The `--list` command will generate output to your console to confirm
that the old and new version numbers are what you expect, before you
push the commit (with the changed version in the code) and tags to
GitHub.
```sh
bump2version patch --list
```

It is also possible to make a development pre-release. To do so,
explicitly set the version number to the next patch plus a ".devN"
suffix:

```sh
bump2version patch --new-version 1.2.3.dev0 --list
```

Then, when ready to make a "final" release, set the version by
explicitly removing the suffix:
```sh
bump2version patch --new-version 1.2.3 --list
```

00. Push the tagged commit to GitHub.
```sh
git push --tags
```

00. For non-development releases, open a pull request to merge the proposed
release into main. The following command will open a web browser for
you to create the pull request.
Expand Down Expand Up @@ -129,11 +160,3 @@
conda deactivate
conda env remove -n TEMP-ASIM-DEV
```

00. Change the default redirect page for the ActivitySim documentation to point
to the newly released documentation. The redirect page can be edited
[here](https://github.com/ActivitySim/activitysim/blob/gh-pages/index.html).

00. Add the new release to the `switch.json` file. Don't delete the references
for existing old documentation. The switcher can be edited
[here](https://github.com/ActivitySim/activitysim/blob/gh-pages/switcher.json).
7 changes: 6 additions & 1 deletion activitysim/abm/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# flake8: noqa
# ActivitySim
# See full license in LICENSE.txt.

from . import (
accessibility,
disaggregate_accessibility,
atwork_subtour_destination,
atwork_subtour_frequency,
atwork_subtour_mode_choice,
atwork_subtour_scheduling,
auto_ownership,
cdap,
disaggregate_accessibility,
free_parking,
initialize,
initialize_los,
Expand All @@ -30,9 +31,12 @@
school_escorting,
stop_frequency,
summarize,
telecommute_frequency,
tour_mode_choice,
tour_od_choice,
tour_scheduling_probabilistic,
transit_pass_ownership,
transit_pass_subsidy,
trip_departure_choice,
trip_destination,
trip_matrices,
Expand All @@ -43,4 +47,5 @@
trip_scheduling_choice,
vehicle_allocation,
vehicle_type_choice,
work_from_home,
)
2 changes: 2 additions & 0 deletions activitysim/abm/models/atwork_subtour_scheduling.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def atwork_subtour_scheduling(
estimator = estimation.manager.begin_estimation("atwork_subtour_scheduling")

model_spec = simulate.read_model_spec(file_name=model_settings["SPEC"])
sharrow_skip = model_settings.get("sharrow_skip")
coefficients_df = simulate.read_model_coefficients(model_settings)
model_spec = simulate.eval_coefficients(model_spec, coefficients_df, estimator)

Expand Down Expand Up @@ -79,6 +80,7 @@ def atwork_subtour_scheduling(
estimator=estimator,
chunk_size=chunk_size,
trace_label=trace_label,
sharrow_skip=sharrow_skip,
)

if estimator:
Expand Down
Loading