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

Add peso symbol to constants #34

Merged
merged 10 commits into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11"]
python-version: ["3.11", "3.12"]

steps:
- name: Checkout
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Setup Miniconda using Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniconda-version: "latest"
auto-update-conda: true
activate-environment: ogphl-dev
environment-file: environment.yml
Expand Down
10 changes: 9 additions & 1 deletion 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.7] - 2024-12-06 11:00:00

### Added

- Testing on Python 3.12
- Updated local currency units in `constants.py`

## [0.0.6] - 2024-10-24 11:00:00

### Added
Expand Down Expand Up @@ -38,7 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- This version is a pre-release alpha. The example run script OG-PHL/examples/run_og_phl.py runs, but the model is not currently calibrated to represent the Philippines economy and population.


[0.0.7]: https://github.com/EAPD-DRB/OG-PHL/compare/v0.0.6...v0.0.7
[0.0.6]: https://github.com/EAPD-DRB/OG-PHL/compare/v0.0.4...v0.0.6
[0.0.5]: https://github.com/EAPD-DRB/OG-PHL/compare/v0.0.4...v0.0.5
[0.0.4]: https://github.com/EAPD-DRB/OG-PHL/compare/v0.0.3...v0.0.4
Expand Down
2 changes: 1 addition & 1 deletion docs/book/content/contributing/contributor_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,6 @@ situations, in which case other contributors are here to help.
(Sec_ContribFootnotes)=
## Footnotes

[^recent_python]:The most recent version of Python from Anaconda is Python 3.12. `OG-PHL` is currently tested to run on Python 3.10 and 3.11.
[^recent_python]:The most recent version of Python from Anaconda is Python 3.12. `OG-PHL` is currently tested to run on Python 3.11 and 3.12.

[^commandline_note]:The dollar sign is the end of the command prompt on a Mac. If you are using the Windows operating system, this is usually the right angle bracket (>). No matter the symbol, you don't need to type it (or anything to its left, which shows the current working directory) at the command line before you enter a command; the prompt symbol and preceding characters should already be there.
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: ogphl-dev
channels:
- conda-forge
dependencies:
- python>=3.7.7, <3.12
- python>=3.7.7, <3.13
- numpy
- setuptools
- wheel
Expand Down
4 changes: 3 additions & 1 deletion examples/run_og_phl.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
def main():
# Define parameters to use for multiprocessing
num_workers = min(multiprocessing.cpu_count(), 7)
client = Client(n_workers=num_workers, threads_per_worker=1)
client = Client(
rickecon marked this conversation as resolved.
Show resolved Hide resolved
n_workers=num_workers, processes=True, threads_per_worker=1
)
print("Number of workers = ", num_workers)

# Directories to save data
Expand Down
2 changes: 1 addition & 1 deletion ogphl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
from ogphl.macro_params import *
from ogphl.utils import *

__version__ = "0.0.6"
__version__ = "0.0.7"
20 changes: 10 additions & 10 deletions ogphl/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,20 @@
}

CBO_UNITS = {
"Y": r"Billions of ",
"Y": r"Billions of ",
"r": "Percent",
"w_growth": "Percent",
"L_growth": "Percent",
"I_total": r"Billions of ",
"I_total": r"Billions of ",
"L": "2012=100",
"C": r"Billions of ",
"agg_pension_outlays": r"Billions of ",
"G": r"Billions of ",
"iit_revenue": r"Billions of ",
"payroll_tax_revenue": r"Billions of ",
"business_tax_revenue": r"Billions of ",
"wL": r"Billions of ",
"D": r"Billions of ",
"C": r"Billions of ",
"agg_pension_outlays": r"Billions of ",
"G": r"Billions of ",
"iit_revenue": r"Billions of ",
"payroll_tax_revenue": r"Billions of ",
"business_tax_revenue": r"Billions of ",
"wL": r"Billions of ",
"D": r"Billions of ",
}

PARAM_LABELS = {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ build-backend = "setuptools.build_meta"

[tool.black]
line-length = 79
target-version = ["py310", "py311"]
target-version = ["py311", "py312"]
include = '\.pyi?$'
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="ogphl",
version="0.0.6",
version="0.0.7",
author="Marcelo LaFleur, Richard W. Evans, and Jason DeBacker",
license="CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
description="Philippines Calibration for OG-Core",
Expand All @@ -20,7 +20,7 @@
packages=["ogphl"],
package_data={"ogphl": ["ogphl_default_parameters.json", "data/*"]},
include_packages=True,
python_requires=">=3.7.7, <3.12",
python_requires=">=3.7.7, <3.13",
install_requires=[
"numpy",
"psutil",
Expand Down
Loading