Skip to content

Commit

Permalink
try fix CI builds (#53)
Browse files Browse the repository at this point in the history
* try fix builds

* partial rollback

* fix build dependency

* make formatting mandatory & reformat kaplan meier test

* add unreleased note

* edited

* adding sphinx-issues for Changelog links

* reverted change

---------

Co-authored-by: corolth1 <[email protected]>
  • Loading branch information
kruscpe1 and tcoroller authored Sep 26, 2024
1 parent 723192f commit 4e4d8fb
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: python -m twine check dist/*

- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: Python-package
path: dist
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeqc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
shell: bash -l {0}
run: |
conda activate torchsurv
./dev/codeqc.sh
./dev/codeqc.sh check
- name: Tests
shell: bash -l {0}
run: |
Expand Down
2 changes: 1 addition & 1 deletion dev/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge
- pytorch
dependencies:
- build=0.7.0
- python-build=1.2.2
- pep517=0.13.0
- numpy=1.26.4
- pandas=2.2.0
Expand Down
10 changes: 10 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Change log
=========

Version 0.1.3 (unreleased)
--------------------------

* Tutorial dataset error on momentum.ipynb #50
* Fix issue #48 - log_hazard returns torch.Inf
* Fix warning with Spearman correlation #41
* Added in-depth statistical background to link AUC to C-index #39
* Created Conda Forge version #47
* Updated CICD builds #53

Version 0.1.2
-------------

Expand Down
6 changes: 3 additions & 3 deletions tests/test_kaplan_meier.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ def test_kaplan_meier_prediction_error_raised(self):
for batch in batch_container.batches:
(train_time, train_event, test_time, *_) = batch

train_event[
-1
] = False # if last event is censoring, the last KM is > 0 and it cannot predict beyond this time
train_event[-1] = (
False # if last event is censoring, the last KM is > 0 and it cannot predict beyond this time
)
km = KaplanMeierEstimator()
km(train_event, train_time, censoring_dist=False)

Expand Down

0 comments on commit 4e4d8fb

Please sign in to comment.