Skip to content

Commit

Permalink
style: rename oriented point JSON generator (#21)
Browse files Browse the repository at this point in the history
No fix seems to be required, though clarified the role of the annotation
generator with more consistent naming
  • Loading branch information
seankmartin authored Sep 5, 2024
2 parents 4ec9ca7 + 2f2c8e9 commit d1fd921
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cryoet_data_portal_neuroglancer/models/json_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def generate_json(self) -> dict:


@dataclass
class OrientedPointAnnotationGenerator(AnnotationJSONGenerator):
class OrientedPointAnnotationJSONGenerator(AnnotationJSONGenerator):
"""Generates JSON Neuroglancer config for oriented point annotation."""

line_width: float = 1.0
Expand Down
4 changes: 2 additions & 2 deletions cryoet_data_portal_neuroglancer/state_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
AnnotationJSONGenerator,
ImageJSONGenerator,
ImageVolumeJSONGenerator,
OrientedPointAnnotationGenerator,
OrientedPointAnnotationJSONGenerator,
SegmentationJSONGenerator,
)
from cryoet_data_portal_neuroglancer.utils import get_scale
Expand Down Expand Up @@ -70,7 +70,7 @@ def generate_oriented_point_layer(
) -> dict[str, Any]:
source, name, url, _, scale = _setup_creation(source, name, url, scale=scale)
_validate_color(color)
return OrientedPointAnnotationGenerator(
return OrientedPointAnnotationJSONGenerator(
source=source,
name=name,
color=color,
Expand Down

0 comments on commit d1fd921

Please sign in to comment.