Skip to content

Commit

Permalink
CC-91 Reactivate the use of scale
Browse files Browse the repository at this point in the history
  • Loading branch information
aranega committed Sep 12, 2024
1 parent 57f0522 commit 89adb3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions cryoet_data_portal_neuroglancer/models/json_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ def generate_json(self) -> dict:
"type": self.layer_type,
"name": f"{self.name}",
"source": {
# **create_source(f"precomputed://{self.source}", self.scale, self.scale),
"url": f"precomputed://{self.source}",
**create_source(f"precomputed://{self.source}", self.scale, self.scale),
"subsources": {
"default": True,
"mesh": self.display_mesh,
Expand Down
6 changes: 3 additions & 3 deletions cryoet_data_portal_neuroglancer/state_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@ def generate_oriented_point_layer(
color: str = "#FFFFFF",
point_size_multiplier: float = 1.0,
line_width: float = 1.0,
# scale: tuple[float, float, float] = (1.0, 1.0, 1.0),
scale: tuple[float, float, float] = (1.0, 1.0, 1.0),
is_visible: bool = True,
is_instance_segmentation: bool = False,
) -> dict[str, Any]:
source, name, url, _, scale = _setup_creation(source, name, url, scale=1.0)
source, name, url, _, scale = _setup_creation(source, name, url, scale=scale)
_validate_color(color)
return OrientedPointAnnotationGenerator(
source=source,
name=name,
color=color,
point_size_multiplier=point_size_multiplier,
line_width=line_width,
scale=(1.0, 1.0, 1.0),
scale=scale,
is_visible=is_visible,
is_instance_segmentation=is_instance_segmentation,
).to_json()
Expand Down

0 comments on commit 89adb3d

Please sign in to comment.