Skip to content

Commit 2cd6944

Browse files
authored
[prep] v0.3.0 release (#28)
* be specific with pandas import * update version number; bump synapseclient version * update changelog
1 parent 293eb51 commit 2cd6944

File tree

4 files changed

+390
-171
lines changed

4 files changed

+390
-171
lines changed

cnb_tools/validation_toolkit.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import pandas as pd
1+
from pandas import Series
22

33

44
def check_missing_keys(
5-
gold_col: pd.Series, pred_col: pd.Series, verbose: bool = False
5+
gold_col: Series, pred_col: Series, verbose: bool = False
66
) -> str:
77
"""Check for missing keys.
88
@@ -29,7 +29,7 @@ def check_missing_keys(
2929

3030

3131
def check_unknown_keys(
32-
gold_col: pd.Series, pred_col: pd.Series, verbose: bool = False
32+
gold_col: Series, pred_col: Series, verbose: bool = False
3333
) -> str:
3434
"""Check for unknown keys.
3535
@@ -55,7 +55,7 @@ def check_unknown_keys(
5555
return error
5656

5757

58-
def check_duplicate_keys(pred_col: pd.Series, verbose: bool = False) -> str:
58+
def check_duplicate_keys(pred_col: Series, verbose: bool = False) -> str:
5959
"""Check for duplicate keys.
6060
6161
Tip: Example Use Case
@@ -79,7 +79,7 @@ def check_duplicate_keys(pred_col: pd.Series, verbose: bool = False) -> str:
7979
return error
8080

8181

82-
def check_nan_values(pred_col: pd.Series) -> str:
82+
def check_nan_values(pred_col: Series) -> str:
8383
"""Check for NAN values.
8484
8585
Tip: Example Use Case
@@ -99,7 +99,7 @@ def check_nan_values(pred_col: pd.Series) -> str:
9999

100100

101101
def check_binary_values(
102-
pred_col: pd.Series, label1: int = 0, label2: int = 1
102+
pred_col: Series, label1: int = 0, label2: int = 1
103103
) -> str:
104104
"""Check that values are binary (default: 0 or 1).
105105
@@ -122,7 +122,7 @@ def check_binary_values(
122122

123123
# pylint: disable=unsupported-binary-operation
124124
def check_values_range(
125-
pred_col: pd.Series, min_val: int | float = 0, max_val: int | float = 1
125+
pred_col: Series, min_val: int | float = 0, max_val: int | float = 1
126126
) -> str:
127127
"""Check that values are between min and max values, inclusive.
128128

docs/changelog/release-notes.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
### Features
44
- Add new CLI command: `cnb-tools challenge SUBCOMMAND`
55

6+
### Docs
7+
- Add How-To tutorial on how the Validation Toolkit can be used
8+
9+
### Bug fixes
10+
- Remove custom classes, as to prevent future confusion with synapseclient's classes
11+
12+
## 0.3.0
13+
14+
### Features
15+
- Add new module: validation_toolkit ([#26](https://github.com/Sage-Bionetworks-Challenges/cnb-tools/pull/26))
16+
17+
### Bug fixes
18+
- Handle use case when there is one or more unknown submission IDs in given list ([#23](https://github.com/Sage-Bionetworks-Challenges/cnb-tools/pull/23))
19+
620
## 0.2.0
721

822
### Features

0 commit comments

Comments
 (0)