Skip to content

Commit

Permalink
Merge pull request #18 from francescopisu/fix/remove-src-folder
Browse files Browse the repository at this point in the history
fix: remove src folder
  • Loading branch information
francescopisu authored Sep 24, 2023
2 parents 214ff7e + 70471d2 commit 6441f81
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: poetry install

- name: Execute tests
run: poetry run python -m pytest -v tests/ --cov=src --cov-report=xml -rP
run: poetry run python -m pytest -v tests/ --cov=modelsight --cov-report=xml -rP

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
]
autoapi_dirs = ["../src"]
autoapi_dirs = ["../modelsight"]

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
File renamed without changes.
8 changes: 6 additions & 2 deletions src/modelsight/__init__.py → modelsight/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# read version from installed package
from importlib.metadata import version

from src.modelsight import calibration
from modelsight import (
calibration,
curves
)

__all__ = [
"calibration"
"calibration",
"curves"
]

# __version__ = version("modelsight")
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions modelsight/calibration/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .calib import hosmer_lemeshow_plot

__all__ = [
"hosmer_lemeshow_plot"
]
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from typing import Tuple
import matplotlib.pyplot as plt

from src.modelsight._typing import ArrayLike
from modelsight._typing import ArrayLike


def ntile_name(n: int) -> str:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from src.modelsight.curves.roc import average_roc_curves
from src.modelsight.curves.compare import (
from .roc import average_roc_curves
from .compare import (
roc_single_comparison, roc_comparisons,
add_annotations
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from matplotlib import patches
import matplotlib.pyplot as plt

from src.modelsight.curves._delong import delong_roc_test
from src.modelsight._typing import CVModellingOutput
from modelsight.curves._delong import delong_roc_test
from modelsight._typing import CVModellingOutput

def annot_stat_vertical(text:str,
x: float,
Expand Down
2 changes: 1 addition & 1 deletion src/modelsight/curves/roc.py → modelsight/curves/roc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from sklearn.metrics import roc_curve
from scikits.bootstrap import bootstrap_indices as scikits_boot_indices

from src.modelsight._typing import CVModellingOutput, SeedType
from modelsight._typing import CVModellingOutput, SeedType


def average_roc_curves(cv_preds: Dict[str, CVModellingOutput],
Expand Down
File renamed without changes.
5 changes: 0 additions & 5 deletions src/modelsight/calibration/__init__.py

This file was deleted.

0 comments on commit 6441f81

Please sign in to comment.