Skip to content

Commit c505ecf

Browse files
authored
Add ngtube education project configs (#620)
* Add extra NG tube for education configs * Quote token so whitespace is obvious
1 parent 186afc9 commit c505ecf

File tree

4 files changed

+103
-1
lines changed

4 files changed

+103
-1
lines changed

pixl_core/src/core/uploader/_treapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def send_via_api(self, data: BytesIO, filename: str) -> None:
118118
119119
"""
120120
if not self._is_token_valid():
121-
msg = f"Token invalid: {self.token}"
121+
msg = f"Token invalid: '{self.token}'"
122122
raise RuntimeError(msg)
123123

124124
self._upload_file(data, filename)
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Copyright (c) 2025 University College London Hospitals NHS Foundation Trust
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
project:
16+
name: "uclh-nasogastric-tube-project-for-education-1b"
17+
azure_kv_alias: null
18+
modalities: ["DX", "CR"]
19+
20+
tag_operation_files:
21+
base:
22+
- "base.yaml" #Expected base config file for any project
23+
- "xray.yaml"
24+
manufacturer_overrides: null
25+
26+
allowed_manufacturers:
27+
- regex: ".*"
28+
exclude_series_numbers: []
29+
30+
min_instances_per_series: 1
31+
32+
destination:
33+
dicom: "tre"
34+
parquet: "tre"
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Copyright (c) 2025 University College London Hospitals NHS Foundation Trust
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
project:
16+
name: "uclh-nasogastric-tube-project-for-education-2a"
17+
azure_kv_alias: null
18+
modalities: ["DX", "CR"]
19+
20+
tag_operation_files:
21+
base:
22+
- "base.yaml" #Expected base config file for any project
23+
- "xray.yaml"
24+
manufacturer_overrides: null
25+
26+
allowed_manufacturers:
27+
- regex: ".*"
28+
exclude_series_numbers: []
29+
30+
min_instances_per_series: 1
31+
32+
destination:
33+
dicom: "tre"
34+
parquet: "tre"
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Copyright (c) 2025 University College London Hospitals NHS Foundation Trust
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
project:
16+
name: "uclh-nasogastric-tube-project-for-education-2b"
17+
azure_kv_alias: null
18+
modalities: ["DX", "CR"]
19+
20+
tag_operation_files:
21+
base:
22+
- "base.yaml" #Expected base config file for any project
23+
- "xray.yaml"
24+
manufacturer_overrides: null
25+
26+
allowed_manufacturers:
27+
- regex: ".*"
28+
exclude_series_numbers: []
29+
30+
min_instances_per_series: 1
31+
32+
destination:
33+
dicom: "tre"
34+
parquet: "tre"

0 commit comments

Comments
 (0)