Skip to content

Commit 6441f81

Browse files
Merge pull request #18 from francescopisu/fix/remove-src-folder
fix: remove src folder
2 parents 214ff7e + 70471d2 commit 6441f81

File tree

14 files changed

+19
-15
lines changed

14 files changed

+19
-15
lines changed

.github/workflows/ci-cd.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: poetry install
2828

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

3232
- name: Upload coverage reports to Codecov
3333
uses: codecov/codecov-action@v3

docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"sphinx.ext.napoleon",
2222
"sphinx.ext.viewcode",
2323
]
24-
autoapi_dirs = ["../src"]
24+
autoapi_dirs = ["../modelsight"]
2525

2626
# List of patterns, relative to source directory, that match files and
2727
# directories to ignore when looking for source files.
File renamed without changes.

src/modelsight/__init__.py modelsight/__init__.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# read version from installed package
22
from importlib.metadata import version
33

4-
from src.modelsight import calibration
4+
from modelsight import (
5+
calibration,
6+
curves
7+
)
58

69
__all__ = [
7-
"calibration"
10+
"calibration",
11+
"curves"
812
]
913

1014
# __version__ = version("modelsight")
File renamed without changes.

modelsight/calibration/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from .calib import hosmer_lemeshow_plot
2+
3+
__all__ = [
4+
"hosmer_lemeshow_plot"
5+
]

src/modelsight/calibration/calib.py modelsight/calibration/calib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from typing import Tuple
88
import matplotlib.pyplot as plt
99

10-
from src.modelsight._typing import ArrayLike
10+
from modelsight._typing import ArrayLike
1111

1212

1313
def ntile_name(n: int) -> str:
File renamed without changes.

src/modelsight/curves/__init__.py modelsight/curves/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from src.modelsight.curves.roc import average_roc_curves
2-
from src.modelsight.curves.compare import (
1+
from .roc import average_roc_curves
2+
from .compare import (
33
roc_single_comparison, roc_comparisons,
44
add_annotations
55
)
File renamed without changes.

src/modelsight/curves/compare.py modelsight/curves/compare.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from matplotlib import patches
99
import matplotlib.pyplot as plt
1010

11-
from src.modelsight.curves._delong import delong_roc_test
12-
from src.modelsight._typing import CVModellingOutput
11+
from modelsight.curves._delong import delong_roc_test
12+
from modelsight._typing import CVModellingOutput
1313

1414
def annot_stat_vertical(text:str,
1515
x: float,

src/modelsight/curves/roc.py modelsight/curves/roc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from sklearn.metrics import roc_curve
77
from scikits.bootstrap import bootstrap_indices as scikits_boot_indices
88

9-
from src.modelsight._typing import CVModellingOutput, SeedType
9+
from modelsight._typing import CVModellingOutput, SeedType
1010

1111

1212
def average_roc_curves(cv_preds: Dict[str, CVModellingOutput],
File renamed without changes.

src/modelsight/calibration/__init__.py

-5
This file was deleted.

0 commit comments

Comments
 (0)