Skip to content

Commit

Permalink
Merge branch 'PolicyEngine:master' into parameternode-274
Browse files Browse the repository at this point in the history
  • Loading branch information
SylviaDu99 authored Oct 28, 2024
2 parents a0a6bfa + 0efe621 commit ab9a573
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ 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).

## [3.11.0] - 2024-10-24 11:04:12

### Fixed

- Bug causing subsample to not work in some situations.

## [3.10.0] - 2024-10-17 15:59:10

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



[3.11.0]: https://github.com/PolicyEngine/policyengine-core/compare/3.10.0...3.11.0
[3.10.0]: https://github.com/PolicyEngine/policyengine-core/compare/3.9.0...3.10.0
[3.9.0]: https://github.com/PolicyEngine/policyengine-core/compare/3.8.2...3.9.0
[3.8.2]: https://github.com/PolicyEngine/policyengine-core/compare/3.8.1...3.8.2
Expand Down
5 changes: 5 additions & 0 deletions changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -711,3 +711,8 @@
- Shallow copy GroupEntities and PopulationEntity when cloning TaxBenefitSystem
object
date: 2024-10-17 15:59:10
- bump: minor
changes:
fixed:
- Bug causing subsample to not work in some situations.
date: 2024-10-24 11:04:12
8 changes: 8 additions & 0 deletions policyengine_core/simulations/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1549,6 +1549,14 @@ def subsample(
# Update the dataset and rebuild the simulation
self.dataset = Dataset.from_dataframe(df, self.dataset.time_period)
self.build_from_dataset()

# Ensure the baseline branch has the new data.
if "baseline" in self.branches:
baseline_tax_benefit_system = self.branches[
"baseline"
].tax_benefit_system
self.branches["baseline"] = self.clone()
self.branches["tax_benefit_system"] = baseline_tax_benefit_system
return self


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

setup(
name="policyengine-core",
version="3.10.0",
version="3.11.0",
author="PolicyEngine",
author_email="[email protected]",
classifiers=[
Expand Down

0 comments on commit ab9a573

Please sign in to comment.