Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
joeranbosma committed Jan 16, 2025
1 parent aabe695 commit 410559f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def run(self):
long_description = fh.read()

setuptools.setup(
version='1.4.12', # also update version in metrics.py -> version
version='1.4.13', # also update version in metrics.py -> version
author_email='[email protected]',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
2 changes: 1 addition & 1 deletion src/picai_eval/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def calculate_ROC(self, subject_list: Optional[List[str]] = None) -> Dict[str, A
'AUROC': auroc,
}

def bootstrap_score_ci(self, n_bootstraps: int = 1000, seed: int | None = None) -> Dict[str, float]:
def bootstrap_score_ci(self, n_bootstraps: int = 1000, seed: Union[int, None] = None) -> Dict[str, float]:
"""
Calculate confidence intervals for AUROC, AP and ranking score using bootstrapping.
"""
Expand Down
4 changes: 2 additions & 2 deletions tests/Development-README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ AutoPEP8 for formatting (this can be done automatically on save, see e.g. https:
# Push release to PyPI
1. Increase version in setup.py, and set below
2. Build: `python -m build`
3. Test package distribution: `python -m twine upload --repository testpypi dist/*1.4.12*`
4. Distribute package to PyPI: `python -m twine upload dist/*1.4.12*`
3. Test package distribution: `python -m twine upload --repository testpypi dist/*1.4.13*`
4. Distribute package to PyPI: `python -m twine upload dist/*1.4.13*`

0 comments on commit 410559f

Please sign in to comment.