Skip to content

Commit

Permalink
Refactored ihme functions
Browse files Browse the repository at this point in the history
Also solved a merge bug (from left to inner)
  • Loading branch information
saalUW committed Apr 24, 2024
1 parent 538549e commit fa70e0a
Show file tree
Hide file tree
Showing 8 changed files with 408 additions and 12 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "pydisagg"
version = "0.3.3"
version = "0.3.4"
authors = [{ name = "IHME Math Sciences", email = "ihme.math.sciences@gmail.com" }]
description = ""
readme = "README.md"
Expand Down
6 changes: 0 additions & 6 deletions src/pydisagg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,11 @@
ParameterTransformation,
disaggregate,
models,
preprocess,
)
from .age_split import age_split, age_var, helper

__all__ = [
"DisaggModel",
"disaggregate",
"models",
"ParameterTransformation",
"preprocess",
"age_split",
"age_var",
"helper",
]
1 change: 0 additions & 1 deletion src/pydisagg/age_split/__init__.py

This file was deleted.

2 changes: 2 additions & 0 deletions src/pydisagg/ihme/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ihme/__init__.py
"""This is the ihme package."""
7 changes: 4 additions & 3 deletions src/pydisagg/age_split/age_split.py → src/pydisagg/ihme/age_split.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
import numpy as np
import pandas as pd

from pydisagg.age_split.age_var import match_cols
from pydisagg.disaggregate import split_datapoint
from pydisagg.models import LogOdds_model, RateMultiplicativeModel
from .age_var import match_cols
from ..disaggregate import split_datapoint
from ..models import LogOdds_model, RateMultiplicativeModel
from typing import Optional


def split_row(
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pydisagg.age_split.age_var import rename_dict_dis
from .age_var import rename_dict_dis


def rename_df(frozen_df, rename_dict=rename_dict_dis, drop=True):
Expand Down
Loading

0 comments on commit fa70e0a

Please sign in to comment.