Skip to content

Commit bbe0a49

Browse files
authored
PT-6000 UpsamplingNS Remove rgb and ned params (#761)
* PT-6000 UpsamplingNS Remove rgb and ned params * bump: version * fix: fix changelog based on pr comment
1 parent 4297f9b commit bbe0a49

File tree

4 files changed

+11
-36
lines changed

4 files changed

+11
-36
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ You can check your current version with the following command:
3030

3131
For more information, see [UP42 Python package description](https://pypi.org/project/up42-py/).
3232

33+
### 2.5.0a1
34+
**July 22, 2025**
35+
- Removed `rgb` and `ned` parameters from the `UpsamplingNS` job template.
36+
3337
## 2.4.0
3438
**July 21, 2025**
3539

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "up42-py"
3-
version = "2.4.0"
3+
version = "2.5.0a1"
44
description = "Python SDK for UP42, the geospatial marketplace and developer platform."
55
authors = ["UP42 GmbH <[email protected]>"]
66
license = "https://github.com/up42/up42-py/blob/master/LICENSE"

tests/test_processing_templates.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class TestParameterlessTemplates:
4141
templates.DetectionCarsOI,
4242
templates.DetectionAircraftOI,
4343
templates.DetectionTrucksOI,
44+
templates.UpsamplingNS,
4445
],
4546
)
4647
def test_should_construct_single_item_job_templates(self, template_class):
@@ -62,25 +63,6 @@ def test_should_construct_multi_item_template(self, template_class):
6263
assert template.inputs == {"title": TITLE, "items": [ITEM_URL]}
6364

6465

65-
class TestNSUpsampling:
66-
def test_should_construct_template(self):
67-
ned, rgb = random.choices([True, False], k=2)
68-
template = templates.UpsamplingNS(
69-
title=TITLE,
70-
item=item,
71-
ned=ned,
72-
rgb=rgb,
73-
workspace_id=constants.WORKSPACE_ID,
74-
)
75-
assert template.is_valid and template.cost == COST
76-
assert template.inputs == {
77-
"title": TITLE,
78-
"item": ITEM_URL,
79-
"NED": ned,
80-
"RGB": rgb,
81-
}
82-
83-
8466
class TestPansharpening:
8567
@pytest.mark.parametrize("grey_weight", [templates.GreyWeight(band="red", weight=random.random()), None])
8668
def test_should_construct_template(self, grey_weight: Optional[templates.GreyWeight]):

up42/processing_templates.py

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ class DetectionAircraftOI(WorkspaceIdSingleItemTemplate):
6262
process_id = "detection-aircraft-oi"
6363

6464

65+
@dataclasses.dataclass
66+
class UpsamplingNS(WorkspaceIdSingleItemTemplate):
67+
process_id = "upsampling-ns"
68+
69+
6570
@dataclasses.dataclass
6671
class DetectionChangeSpacept(WorkspaceIdMultiItemTemplate):
6772
process_id = "detection-change-spacept"
@@ -94,22 +99,6 @@ def inputs(self) -> dict:
9499
}
95100

96101

97-
@dataclasses.dataclass
98-
class UpsamplingNS(processing.SingleItemJobTemplate):
99-
ned: bool = False
100-
rgb: bool = True
101-
workspace_id: Union[str, base.WorkspaceId] = dataclasses.field(default=base.WorkspaceId())
102-
process_id = "upsampling-ns"
103-
104-
@property
105-
def inputs(self):
106-
return {
107-
**super().inputs,
108-
"NED": self.ned,
109-
"RGB": self.rgb,
110-
}
111-
112-
113102
@dataclasses.dataclass
114103
class GreyWeight:
115104
band: str

0 commit comments

Comments
 (0)