Skip to content

Commit

Permalink
make formatting mandatory & reformat kaplan meier test
Browse files Browse the repository at this point in the history
  • Loading branch information
kruscpe1 committed Sep 26, 2024
1 parent 07d085d commit 71ffc30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeqc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
shell: bash -l {0}
run: |
conda activate torchsurv
./dev/codeqc.sh
./dev/codeqc.sh check
- name: Tests
shell: bash -l {0}
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 71ffc30

Please sign in to comment.