|
| 1 | +# TODOs |
| 2 | +- Why were there so many problems with file ownership? |
| 3 | +- What is in the runs folder? |
| 4 | + - Looks like there is some kind of intermediate output. |
| 5 | +- What steps from the bottom of `models.py` do we want to keep? |
| 6 | +- Refactor the model calibration steps |
| 7 | +- Why the laborforce models do not return a value for every person? |
| 8 | +- All computed columns should return a series with a valid index for the corresponding table |
| 9 | +- I noticed the number of households with multiple partners increases |
| 10 | + |
| 11 | +- `models.py` |
| 12 | + - `work_location` seems obsolete |
| 13 | + |
| 14 | +- `laborforce.py` |
| 15 | + - Fix the filter in estimated model for out workforce (worker==0 should be 1) |
| 16 | + - students are currently selected for work |
| 17 | + |
| 18 | +- `education.py` |
| 19 | + - Is there no way for students to enter school? |
| 20 | + - School progression is faulty because of the order of the calculation |
| 21 | + - Double check the logic for transitioning from 14,15,16 |
| 22 | + |
| 23 | +- `household_reorg.py` |
| 24 | + - <del>Check if the three models interfere with themselves (they are applied according to filters to the same dataset)</del> |
| 25 | + - Models do not seem to intersect |
| 26 | + - Household 382474 has 4 people labeled as relate == 1 and some of them have MAR == 5 |
| 27 | + - This means the outputs will not be exactly the same after the refactoring |
| 28 | + - `hh_income` is incorrectly computed: There is a hard-coded 30_000 and the rest are 60, 100, etc (not thousands) |
| 29 | + - `income_bin`s are inconsistent (income bin 1 is less than 250_000 instead of 25_000) |
| 30 | + - I believe the only reason `fix_erroneous_households` exists is in case people are flagged by two models at once |
| 31 | + |
| 32 | +- `marriage.py` |
| 33 | + - There is a filter that when the number of people getting married is too low, the module does nothing |
| 34 | + - Filter for <= 10 weddings |
| 35 | + - There was also this code `if (min_mar == 0) or (min_mar == 0):` |
| 36 | + - <del>Discuss `CONDITIONS` part of the code</del> |
| 37 | + - `MAR` is not correctly being updated because final is filtered to those that move |
| 38 | + - If both new partners are head of household, one could potentially leave dependents behind. |
| 39 | + - I think the current code is just making the person that earns the most head of household |
| 40 | + - In fact at the moment there are children labeled as head of household (9 year olds earning 0 for instance) |
| 41 | + - I ignored the "marriage_table" and "divorce_table", consider re-implementing it after the refactor |
| 42 | + - What is `member_id` and why is set 1 for leaving person in a divorce but "relate" for those staying? |
| 43 | + |
| 44 | +- `kids_moving` |
| 45 | + - The filters in the estimated model consider relate values of 7 and 9 children as well |
| 46 | + - I ignored the "kids_move_table", consider re-implementing it after the refactor |
| 47 | + |
| 48 | +- `mortaility.py` |
| 49 | + - I ignored the "mortalities" table, consider re-implementing it after the refactor |
| 50 | + - In `rel_map` table, `6,6 = 1`, which assumes marriage? |
| 51 | + - In `rez` function, if spouse or partner becomes head, `relate` is not updated. |
| 52 | + - If `relate==13` dies, the head is also labeled as `MAR=3` (I thought that was necessarily marriage widow). |
| 53 | + |
| 54 | +- `birth.py` |
| 55 | + - I ignored the "btable" table, consider re-implementing it after the refactor |
| 56 | + - Review the values of `education_group`, `age_group`, etc. |
| 57 | + - Default `MAR == 5`? |
| 58 | + - There is duplication of information between `race_id` and `race` |
| 59 | + - `race` ignores `asian` values (it only maps `white` and `black`) |
| 60 | + - Check for the need to add the logic of `hispanic`, `hispanic.1`, ... |
| 61 | + |
| 62 | +- `transition` |
| 63 | + - If we need to increase the number of household and have none, skip |
| 64 | + - What are all the `yaml` configuration files that were updated in the other branch? (They start with elcm) |
| 65 | + - Are we using estimated models that are specific for each area? |
| 66 | + |
| 67 | + |
| 68 | +### Transition model summary |
| 69 | +- We get as input a dataframe with tuples (year, geoID (county/TAZ), hh_size (1-4+), # of households) |
| 70 | +- We randomly select households in each geoID to be added / removed **randomly**. |
| 71 | +- How do we select which county do new households are created? |
| 72 | + |
| 73 | +## Ideas for cheking sanity of input data |
| 74 | +- Check there is only one head of household |
| 75 | + - We should fix the households that don't have a head at the start |
| 76 | + |
| 77 | +# Commit history review |
| 78 | +August 8th, 2024 |
| 79 | +- ⬜️ `cc558e4`: Edits `README.md` |
| 80 | +- 🟥 `03efa62`: Changes to cohabitation and marriage YAML files as well as changes to `models.py` and `datasources.py` |
| 81 | +- ⬜️ `f382ca0`: Edits to `README.md` |
| 82 | +- ⬜️ `67d3969`: Edits to `README.md` |
| 83 | +- ⬜️ `5e3d53e`: Edits to `README.md` |
| 84 | + |
| 85 | +---- |
| 86 | +August 7th, 2024 |
| 87 | +- 🟥 `d5aae57`: Changes to marriage YAML (changed a table name) files as well as changes to `models.py` |
| 88 | +- 🟥 `2f29b7a`: Changes to cohabitation and marriage YAML files as well as changes to `models.py`, `datasources.py` and `multinomial_logit.py` |
| 89 | + |
| 90 | +---- |
| 91 | +August 5th, 2024 |
| 92 | +- 🟥 `f3f3c8d`: Too much to describe. Commit message says "detach all urbansim packages from demos" |
| 93 | +---- |
| 94 | +July 31st, 2024 |
| 95 | +- 🟥 `747a8aa`: Too much to describe. Seems that most of it is moving files around |
| 96 | +- 🟥 `9474012`: Too much to describe. Commit message says "detach all urbansim packages from demos" (again) |
| 97 | +- 🟥 `5d4f8a5`: "Import urbansim template as templates" |
| 98 | +---- |
| 99 | +July 30th, 2024 |
| 100 | +- ⬜️ `2b73d21`: Small change to function that creates a directory |
| 101 | +- ⬜️ `dbf8dbc`: Small change to function that creates a directory |
| 102 | +---- |
| 103 | +July 29th, 2024 |
| 104 | +- 🟧 `394d459`: Changes to `plotting.py` and a bunch of csv files |
| 105 | +---- |
| 106 | +July 26th, 2024 |
| 107 | +- 🟧 `bac973e`: Changes to `plotting.py` |
| 108 | +- ⬜️ `082ba53`: Changes a bunch of csv files |
| 109 | +- ⬜️ `180ab57`: Remove `process_skims.py` and `settings.yaml` from `demos_urbansim` |
| 110 | +- ⬜️ `11bea38`: Same as `180ab57` |
| 111 | +- 🟥 `bda827d`: "Removing unused models in configs" |
| 112 | +---- |
| 113 | +July 25th, 2024 |
| 114 | +- 🟥 `f35650d`: Same as `bda827d` |
| 115 | +---- |
| 116 | +July 23rd, 2024 |
| 117 | +- ⬜️ `994852f`: Changes `.gitignore` and a hardcoded string to and `.h5` file |
| 118 | +- ⬜️ `9960309`: Same as `994852f` |
| 119 | +---- |
| 120 | +July 22nd, 2024 |
| 121 | +- ⬜️ `a3e8656`: Removing `utils.py` |
| 122 | +---- |
| 123 | +July 20th, 2024 |
| 124 | +- ⬜️ `9c2dd6e`: Same as `a3e8656` |
| 125 | +- 🟧 `3b9781c`: Changes to `plotting.py` |
| 126 | +---- |
| 127 | +July 19th, 2024 |
| 128 | +- 🟧 `fb78d01`: Changes to `plotting.py` |
| 129 | +- 🟦 `2de236f`: Changes to how `simulate.py` loads some parameters |
| 130 | +- 🟦 `985dff3`: Same as `2de236f` |
| 131 | +- 🟥 `85a61de`: A lot happening. Seems more like a refactoring |
| 132 | +---- |
| 133 | +July 18th, 2024 |
| 134 | +- 🟥 `0af091e`: Same as `85a61de` |
| 135 | +---- |
| 136 | +July 1st, 2024 |
| 137 | +- ⬜️ `261fdeb`: Removing files from `demos_urbansim` |
| 138 | +- 🟧 `231bfc0`: Changes to printing statements in `models.py` |
| 139 | +- ⬜️ `9820535`: Removing files from `demos_urbansim` |
| 140 | +- 🟧 `1c9b154`: Changes to printing statements in `models.py` |
| 141 | +---- |
| 142 | +June 12th, 2024 |
| 143 | +- ⬜️ `1bf7356`: Added `cmp_hdf5_files.py` |
| 144 | +---- |
| 145 | +June 10th, 2024 |
| 146 | +- ⬜️ `bcb6a7d`: Same as `1bf7356`. Apparently this functions compare outputs |
| 147 | +---- |
| 148 | +June 6th, 2024 |
| 149 | +- ⬜️ `fb2e4eb`: Removing unused imports |
| 150 | +- ⬜️ `006b48e`: Removing a call to `os.chown` |
| 151 | +---- |
| 152 | +June 5th, 2024 |
| 153 | +- ⬜️ `2758a74`: Removing unused imports |
| 154 | +- 🟥 `e1849a4`: Commenting out a bunch of steps from the model |
| 155 | +---- |
| 156 | +May 28th, 2024 |
| 157 | +- 🟦 `974daee`: Very similar to `e1849a4`. Commit message says "Fix code to run" |
| 158 | +- ⬜️ `49935ef`: pycache handling |
| 159 | +---- |
| 160 | +May 27th, 2024 |
| 161 | +- 🟩 `58c5fe2`: First commit |
0 commit comments