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

Updates for compatibility with latest OG-Core #54

Merged
merged 41 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
2d82183
update with optins to not plot
jdebacker May 2, 2024
8d8a1f9
testing to get rho shape to work
jdebacker May 2, 2024
523db00
add docstrings
jdebacker May 3, 2024
34dd7db
update CI test script
jdebacker May 3, 2024
bb90913
get capital share of income from FRED
jdebacker May 5, 2024
1472642
Update macro_params.py
SeaCelo May 7, 2024
bf76bd6
Merge pull request #1 from SeaCelo/jdebacker-updates_ogcore
jdebacker May 8, 2024
f27dde1
download data
jdebacker May 17, 2024
5ddb060
Merge remote-tracking branch 'origin/updates_for_ogcore' into updates…
jdebacker May 17, 2024
54817f9
only try codecov upload in upstream repo
jdebacker May 17, 2024
96105be
get data to 2100
jdebacker May 17, 2024
6bd7eb2
remove tax func stuff
jdebacker Jun 11, 2024
31cbbca
import requests into macro params
jdebacker Jun 11, 2024
a3e1b1c
use plot path:
jdebacker Jun 11, 2024
a917bb8
remove unused bits from example
jdebacker Jun 11, 2024
d282e75
update path arg
jdebacker Jun 11, 2024
a24aa4d
remvoe old data files
jdebacker Jun 11, 2024
02b57ce
version bump
jdebacker Jun 11, 2024
f017519
remove unused lines
jdebacker Jun 11, 2024
c09d462
add test of macro params
jdebacker Jun 11, 2024
c7c82c7
add note
jdebacker Jun 11, 2024
8d9442e
format
jdebacker Jun 12, 2024
f1a70ee
add tests of input output module
jdebacker Jun 12, 2024
2066ce0
remove unused constant and args
jdebacker Jun 14, 2024
c4cc712
remove unused constant and args
jdebacker Jun 14, 2024
ac1f068
remove unused path constants from income.py
jdebacker Jun 14, 2024
7a54015
remove unused import
jdebacker Jun 14, 2024
716e75d
Updated README.md
rickecon Jun 18, 2024
a20e944
Updated intro.md
rickecon Jun 18, 2024
c528878
Updated environment.yml
rickecon Jun 18, 2024
ea057f4
Updated setup.py
rickecon Jun 18, 2024
aaa4bf9
Updated build_and_test.yml
rickecon Jun 18, 2024
f5687d8
Updated CHANGELOG.md
rickecon Jun 18, 2024
a6e10fe
Updated Makefile
rickecon Jun 18, 2024
d8d1bb5
Updated GH Actions
rickecon Jun 18, 2024
e92f3d4
Black formatted setup.py
rickecon Jun 18, 2024
bd22d18
Added __init__.py file
rickecon Jun 18, 2024
cfa3ff7
Merge pull request #3 from rickecon/jdebacker-updates_for_ogcore
jdebacker Jun 18, 2024
bc97cb5
set tax rates
jdebacker Jun 18, 2024
192bfbb
Merge remote-tracking branch 'origin/updates_for_ogcore' into updates…
jdebacker Jun 18, 2024
0a43488
don't update iit params
jdebacker Jun 18, 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
8 changes: 5 additions & 3 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]

steps:
- name: Checkout
Expand All @@ -17,7 +17,7 @@ jobs:
persist-credentials: false

- name: Setup Miniconda using Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
auto-update-conda: true
Expand All @@ -38,10 +38,12 @@ jobs:
run: |
pytest -m 'not local' --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: matrix.os == 'ubuntu-latest' && contains(github.repository, 'EAPD-DRB/OG-ZAF')
uses: codecov/codecov-action@v4
with:
files: ./coverage.xml
flags: unittests
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.0.2] - 2024-06-12 8:00:00

### Added

- Updates to `Calibration` to work with OG-Core 0.11.9
- Removal of unused lines of code throughout the package


## [0.0.1] - 2023-10-30 8:00:00

### Added
Expand Down
6 changes: 1 addition & 5 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
include ogzaf/data/demographic/un_zaf_deaths.csv
include ogzaf/data/demographic/un_zaf_fert.csv
include ogzaf/data/demographic/un_zaf_infmort.csv
include ogzaf/data/demographic/un_zaf_mort.csv
include ogzaf/data/demographic/un_zaf_pop.csv
include ogzaf/ogzaf_default_parameters.json
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: ogzaf-dev
channels:
- conda-forge
dependencies:
- python>=3.7.7
- python>=3.7.7, <3.12
- numpy
- numba>=0.54
- scipy>=1.7.1
Expand Down
8 changes: 1 addition & 7 deletions examples/run_og_zaf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,9 @@ def main():
)
)
# Update parameters from calibrate.py Calibration class
c = Calibration(p)
c = Calibration(p, estimate_pop=True)
updated_params = c.get_dict()
p.update_specifications(updated_params)
updated_params_tax = {
"etr_params": (np.ones((1, p.S, 1)) * 0.35).tolist(),
"mtrx_params": (np.ones((1, p.S, 1)) * 0.35).tolist(),
"mtry_params": (np.ones((1, p.S, 1)) * 0.35).tolist(),
}
p.update_specifications(updated_params_tax)

# Run model
start_time = time.time()
Expand Down
Loading
Loading