Skip to content

Commit fb1f0e5

Browse files
authored
Merge pull request TutteInstitute#20 from gclendenning/main
Add pre-release parameter in pipelines
2 parents 43a5f39 + 3e00738 commit fb1f0e5

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

azure-pipelines.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ pr:
1717
- doc/*
1818
- README.rst
1919

20+
parameters:
21+
- name: includeReleaseCandidates
22+
displayName: "Allow pre-release dependencies"
23+
type: boolean
24+
default: false
25+
2026
variables:
2127
triggeredByPullRequest: $[eq(variables['Build.Reason'], 'PullRequest')]
2228

@@ -66,8 +72,17 @@ stages:
6672

6773
- script: |
6874
python -m pip install --upgrade pip
75+
displayName: 'Upgrade pip'
76+
77+
- script: |
6978
pip install -r requirements.txt
7079
displayName: 'Install dependencies'
80+
condition: ${{ eq(parameters.includeReleaseCandidates, false) }}
81+
82+
- script: |
83+
pip install --pre -r requirements.txt
84+
displayName: 'Install dependencies (allow pre-releases)'
85+
condition: ${{ eq(parameters.includeReleaseCandidates, true) }}
7186
7287
- script: |
7388
pip install -e .

fast_hdbscan/cluster_trees.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def condense_tree(hierarchy, min_cluster_size=10):
131131
lambdas = np.empty(root, dtype=np.float32)
132132
sizes = np.ones(root, dtype=np.int64)
133133

134-
ignore = np.zeros(root + 1, dtype=np.bool8)
134+
ignore = np.zeros(root + 1, dtype=np.bool)
135135

136136
idx = 0
137137

fast_hdbscan/tests/test_hdbscan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ def test_fhdbscan_allow_single_cluster_with_epsilon():
148148
cluster_selection_epsilon=0.0,
149149
).fit(no_structure)
150150
unique_labels, counts = np.unique(c.labels_, return_counts=True)
151-
assert len(unique_labels) == 9
152-
assert counts[unique_labels == -1] == 65
151+
assert len(unique_labels) == 8
152+
assert counts[unique_labels == -1] == 68
153153

154154
# An epsilon of 0.2 will produce 2 noise points and 2 labels
155155
# Allow single cluster does not prevent applying the epsilon threshold.

0 commit comments

Comments
 (0)