Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
a9dcd0c
pydantic for estimation settings
jpn-- Oct 7, 2024
29424a7
allow df as type in config
jpn-- Oct 7, 2024
d01cb0f
Merge commit '1459e485dc54995a18d7769102d97cdf7b78c4c5' into estimati…
jpn-- Oct 9, 2024
1fac9b5
fix table_info
jpn-- Oct 9, 2024
74552e6
auto ownership
jpn-- Sep 13, 2024
9e63303
repair for pydantic
jpn-- Oct 10, 2024
34ec5a6
update for ruff
jpn-- Oct 10, 2024
ab16443
updated for simple models
jpn-- Oct 10, 2024
e611333
repair for Pydantic
jpn-- Oct 10, 2024
7429373
simple simulate and location choice
jpn-- Oct 12, 2024
f5a5e42
df is attribute
jpn-- Oct 13, 2024
77a4932
scheduling
jpn-- Oct 14, 2024
7dd8851
stop freq
jpn-- Oct 14, 2024
cd6ba1b
test locations
jpn-- Oct 14, 2024
1aab34c
cdap
jpn-- Oct 14, 2024
bd36251
nonmand_and_joint_tour_dest_choice
jpn-- Oct 14, 2024
6cc3342
nonmand_tour_freq
jpn-- Oct 15, 2024
cb58f00
fix ci to stop using mamba
jpn-- Oct 16, 2024
94cbee0
Merge branch 'estimation-pydantic' into larch6
jpn-- Oct 17, 2024
bd298e6
test updates
jpn-- Oct 18, 2024
89fcc9f
use larch6 from pip
jpn-- Oct 18, 2024
55f9621
use numba for stop freq
jpn-- Oct 22, 2024
8da0376
fix for pandas 1.5
jpn-- Oct 22, 2024
af8bdb4
fix stop freq test for numba
jpn-- Oct 22, 2024
cecb570
Sharrow Cache Dir Setting (#893)
dhensle Oct 24, 2024
d7e4a88
repair github actions
jpn-- Oct 29, 2024
3d255d0
github action updates (#903)
jpn-- Oct 29, 2024
1a2c816
Merge commit '3d255d08c646c924c65e1453b401dda944f8802c' into larch6
jpn-- Nov 1, 2024
ae134c9
Merge commit '0a1bd5c83c9baa220897a2b830511e65fa5972bc' into larch6
jpn-- Nov 1, 2024
e6fc271
script to make data
jpn-- Nov 1, 2024
c6c812d
unified script for making data
jpn-- Nov 1, 2024
d92d99a
remove older
jpn-- Nov 1, 2024
da557c7
bug
jpn-- Nov 1, 2024
a7cca0c
doc note
jpn-- Nov 1, 2024
cbd2cda
load from parquet if available
jpn-- Nov 4, 2024
68d633e
add original alt ids to EDB output when using compact
jpn-- Nov 5, 2024
c838a9a
fix MP race
jpn-- Nov 5, 2024
96dcb54
script arg to skip to EDB
jpn-- Nov 5, 2024
b5b6776
clean up CDAP and blacken
jpn-- Nov 5, 2024
d414b15
refactor model_estimation_table_types
jpn-- Nov 5, 2024
ed7c572
repair drop_dupes
jpn-- Nov 5, 2024
7ed5a84
blacken
jpn-- Nov 5, 2024
c9a742e
Merge branch 'estimation_enhancements' into larch6
jpn-- Nov 5, 2024
fda336f
location choice with compact
jpn-- Nov 6, 2024
dc3a509
choice_def for compact
jpn-- Nov 6, 2024
9305161
Merge branch 'larch6' of https://github.com/driftlesslabs/activitysim…
jpn-- Nov 7, 2024
f65fb27
spec changes for simple-simulate
jpn-- Nov 24, 2024
4e5b912
re-estimation demo for auto ownership
jpn-- Nov 26, 2024
5444073
clean up status messages
jpn-- Nov 26, 2024
053b578
Merge commit '1fb41a8a63a077fdc935e99b817c0d78eada12f2' into larch6
jpn-- Nov 26, 2024
768d1b4
change name to stop pydantic warnings
jpn-- Nov 26, 2024
971b120
edit configs
jpn-- Nov 27, 2024
674540c
default estimation sample size is same as regular sample size
jpn-- Nov 27, 2024
6976c5c
allow location alts not in cv format
jpn-- Nov 27, 2024
4ff5283
dummy zones for location choice
jpn-- Nov 27, 2024
60e1c2c
update scheduling model estimation
jpn-- Nov 27, 2024
e517065
various cleanup
jpn-- Nov 28, 2024
cd2415a
stop freq
jpn-- Nov 28, 2024
20f6cd6
tidy build script
jpn-- Nov 30, 2024
3121ff1
update 02 school location for larger example
jpn-- Nov 30, 2024
693f4ab
update notebook 04
jpn-- Dec 3, 2024
08bf310
editable model re-estimation for location choice
jpn-- Dec 3, 2024
2a4bacc
fix test names
jpn-- Dec 4, 2024
3feef1b
update notebooks
jpn-- Dec 4, 2024
c22a681
cdap print filenames as loading
jpn-- Dec 4, 2024
d32363f
notebook 07
jpn-- Dec 4, 2024
4c88000
tests thru 07
jpn-- Dec 4, 2024
dec5b03
notebooks 08 09
jpn-- Dec 4, 2024
c223cdb
build the data first
jpn-- Dec 4, 2024
d32f09f
runnable script
jpn-- Dec 4, 2024
0211185
change larch version dependency
jpn-- Dec 4, 2024
bfab6d4
keep pandas<2
jpn-- Dec 4, 2024
0f69382
notebooks 10 11
jpn-- Dec 4, 2024
005ddac
notebook 12
jpn-- Dec 4, 2024
073c893
remove odd print
jpn-- Dec 4, 2024
16df750
add matplotlib
jpn-- Dec 4, 2024
5c6f1d1
notebook 13 14
jpn-- Dec 4, 2024
e402b1f
test all the notebooks
jpn-- Dec 4, 2024
371c537
add xlsxwriter to tests
jpn-- Dec 4, 2024
00dfa28
notebook 15
jpn-- Dec 4, 2024
4dc49e8
CDAP revise model spec demo
jpn-- Dec 5, 2024
1ba743a
notebook 16
jpn-- Dec 5, 2024
bc5dec2
notebook 17
jpn-- Dec 5, 2024
c38b984
longer timeout
jpn-- Dec 5, 2024
10f6468
notebook 18
jpn-- Dec 5, 2024
e7ea95a
notebook 19
jpn-- Dec 5, 2024
c81ca3b
notebook 20
jpn-- Dec 5, 2024
90dca94
smaller notebook 15
jpn-- Dec 5, 2024
60924fb
configurable est mode setup
jpn-- Dec 5, 2024
d621013
notebook 21
jpn-- Dec 5, 2024
3ab34aa
notebook 22
jpn-- Dec 5, 2024
873003b
config sample size in GA
jpn-- Dec 5, 2024
1f69acc
notebook 23
jpn-- Dec 5, 2024
d551c22
updates for larch and graphviz
jpn-- Dec 5, 2024
1bfa773
change default to compact
jpn-- Dec 6, 2024
024a9e2
compare model 03
jpn-- Dec 6, 2024
d84452c
test updates
jpn-- Dec 7, 2024
3b73f47
rename test targets
jpn-- Dec 7, 2024
7f4f03a
repair_av_zq
jpn-- Dec 7, 2024
840ac97
move doctor up
jpn-- Dec 8, 2024
25173ad
add another repair
jpn-- Dec 8, 2024
1ef6485
oops
jpn-- Dec 8, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/branch-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # get all tags, lets setuptools_scm do its thing

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

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

- uses: conda-incubator/setup-miniconda@v3
with:
Expand All @@ -47,7 +47,7 @@ jobs:
shell: bash

- name: Upload installer to Github artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: build/Activitysim-${{ inputs.version }}-${{ matrix.OS_NAME }}-${{ matrix.ARCH }}*
name: Activitysim-${{ inputs.version }}-${{ matrix.OS_NAME }}-${{ matrix.ARCH }}
Expand Down
145 changes: 95 additions & 50 deletions .github/workflows/core_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,11 @@ jobs:
steps:
- uses: actions/checkout@v4

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

- name: Set cache date for year and month
Expand All @@ -46,7 +44,7 @@ jobs:

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

- name: Install activitysim
Expand All @@ -58,8 +56,8 @@ jobs:

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

- name: Lint with Black
run: |
Expand Down Expand Up @@ -111,13 +109,11 @@ jobs:
steps:
- uses: actions/checkout@v4

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

- name: Set cache date for year and month
Expand All @@ -131,7 +127,7 @@ jobs:

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

- name: Install activitysim
Expand All @@ -143,8 +139,8 @@ jobs:

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

- name: Lint with Black
run: |
Expand Down Expand Up @@ -194,13 +190,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Mambaforge
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
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
Expand All @@ -214,7 +208,7 @@ jobs:

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

- name: Install activitysim
Expand All @@ -226,8 +220,8 @@ jobs:

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

# TODO: Cache sharrow compiled flows? The contents of __pycache__ appear to
# be ignored, so this is not working as expected right now
Expand Down Expand Up @@ -282,13 +276,11 @@ jobs:
- name: Checkout ActivitySim
uses: actions/checkout@v4

- name: Setup Mambaforge
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
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
Expand All @@ -304,7 +296,7 @@ jobs:

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

- name: Install activitysim
Expand All @@ -316,8 +308,8 @@ jobs:

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

- name: Checkout Example
uses: actions/checkout@v4
Expand Down Expand Up @@ -345,13 +337,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Mambaforge
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
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
Expand All @@ -365,7 +355,7 @@ jobs:

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

- name: Install activitysim
Expand All @@ -377,8 +367,8 @@ jobs:

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

- name: Test Random Seed Generation
run: |
Expand All @@ -392,18 +382,16 @@ jobs:
defaults:
run:
shell: bash -l {0}
name: estimation_mode_test
name: Estimation Mode Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Mambaforge
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
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
Expand All @@ -417,11 +405,11 @@ jobs:

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

- name: Install Larch
run: mamba install "larch>=5.7.1"
- name: Install Larch v6
run: python -m pip install larch6

- name: Install activitysim
# installing without dependencies is faster, we trust that all needed dependencies
Expand All @@ -432,14 +420,75 @@ jobs:

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

- name: Test Estimation Mode
run: |
python -m pytest activitysim/estimation/test/test_larch_estimation.py --durations=0



estimation_notebooks:
needs: foundation
env:
python-version: "3.10"
label: linux-64
defaults:
run:
shell: bash -l {0}
name: Estimation Notebooks Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
activate-environment: asim-test
python-version: ${{ env.python-version }}

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

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

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

- name: Install Graphviz
uses: ts-graphviz/setup-graphviz@v2

- name: Install Larch v6
run: python -m pip install larch6 "pandas<2" pydot

- 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: |
conda info -a
conda list

- name: Create Estimation Data
run: |
python activitysim/examples/example_estimation/notebooks/est_mode_setup.py --household_sample_size 5000

- name: Test Estimation Notebooks
run: |
python -m pytest activitysim/examples/example_estimation/notebooks/*.ipynb \
--nbmake-timeout=3000 \
--ignore=activitysim/examples/example_estimation/notebooks/01_estimation_mode.ipynb

estimation_edb_creation:
needs: foundation
env:
Expand All @@ -453,13 +502,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Mambaforge
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
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
Expand All @@ -473,7 +520,7 @@ jobs:

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

- name: Install activitysim
Expand All @@ -485,8 +532,8 @@ jobs:

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

- name: Test Estimation EDB Creation
run: |
Expand All @@ -505,15 +552,13 @@ jobs:
with:
fetch-depth: 0 # get all tags, lets setuptools_scm do its thing
- name: Set up Python 3.10
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
environment-file: conda-environments/docbuild.yml
python-version: "3.10"
activate-environment: docbuild
Expand Down
Loading
Loading