Skip to content

Commit

Permalink
feat!: qualitative enrichment (#39)
Browse files Browse the repository at this point in the history
add new QualitativeEnrichment class, for adding category features to a synthetic population
renamed enrichment modules and classes for more consistency (quantitative or qualitative)
refactor analysis functions into classes (needed because some code is different between quantitative and qualitative analysis (plots, ..)). See examples or tests for new usage.
  • Loading branch information
leo-desbureaux-tellae authored Jan 4, 2024
1 parent 0366f9a commit adfdbfe
Show file tree
Hide file tree
Showing 20 changed files with 789,127 additions and 158,065 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install pytest
python3 -m pip install pytest kaleido
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ dmypy.json
*.html
*_files/

# analysis plots
/plots
# analysis outputs
/outputs

# test tmp folder
tests/tmp/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pip install bhepop2

## Example

See this example [Notebook](examples/demo.ipynb).
See example notebooks [here](examples).

## Documentation

Expand Down
4 changes: 2 additions & 2 deletions bhepop2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#: bhepop2 version
__version__ = "0.1.4"

# from bhepop2.bhepop2_enrichment import Bhepop2Enrichment
# from bhepop2.bhepop2_enrichment import QuantitativeEnrichment
#
#
# # enrichment functions (avoids direct use of classes)
Expand All @@ -23,7 +23,7 @@
# :return: enriched population
# """
# # create enrichment class instance
# enrich_class = Bhepop2Enrichment(
# enrich_class = QuantitativeEnrichment(
# population,
# distributions,
# attribute_selection=attribute_selection,
Expand Down
Loading

0 comments on commit adfdbfe

Please sign in to comment.