Skip to content

Commit

Permalink
made pixel size optional so that inputs can just be specified in pixe…
Browse files Browse the repository at this point in the history
…ls if desired
  • Loading branch information
milesagraham committed Jun 11, 2024
1 parent a1d8c70 commit d988d60
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ttmask/cone.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def cone(
cone_height: float = typer.Option(...),
cone_base_diameter: float = typer.Option(...),
soft_edge_width: int = typer.Option(0),
pixel_size: float = typer.Option(...),
pixel_size: float = typer.Option(1),
output: Path = typer.Option(Path("cone.mrc"))
):
c = sidelength // 2
Expand Down
2 changes: 1 addition & 1 deletion src/ttmask/cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def cube(
sidelength: int = typer.Option(...),
cube_sidelength: float = typer.Option(...),
soft_edge_width: float = typer.Option(0),
pixel_size: float = typer.Option(...),
pixel_size: float = typer.Option(1),
output: Path = typer.Option(Path("cube.mrc")),
wall_thickness: float = typer.Option(0),
):
Expand Down
2 changes: 1 addition & 1 deletion src/ttmask/cuboid.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def cuboid(
sidelength: int = typer.Option(...),
cuboid_sidelengths: Annotated[Tuple[float, float, float], typer.Option()] = (None, None, None),
soft_edge_width: float = typer.Option(0),
pixel_size: float = typer.Option(...),
pixel_size: float = typer.Option(1),
output: str = typer.Option(Path("cuboid.mrc")),
wall_thickness: float = typer.Option(0),
):
Expand Down
2 changes: 1 addition & 1 deletion src/ttmask/cylinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def cylinder(
cylinder_diameter: float = typer.Option(...),
wall_thickness: float = typer.Option(0),
soft_edge_width: int = typer.Option(0),
pixel_size: float = typer.Option(...),
pixel_size: float = typer.Option(1),
output: Path = typer.Option(Path("cylinder.mrc"))
):
cylinder_radius = cylinder_diameter / 2
Expand Down
2 changes: 1 addition & 1 deletion src/ttmask/ellipsoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def ellipsoid(
height: float = typer.Option(...),
depth: float = typer.Option(...),
soft_edge_width: int = typer.Option(0),
pixel_size: float = typer.Option(...),
pixel_size: float = typer.Option(1),
output: Path = typer.Option(Path("ellipsoid.mrc")),
wall_thickness: float = typer.Option(0),
):
Expand Down
2 changes: 1 addition & 1 deletion src/ttmask/sphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def sphere(
sidelength: int = typer.Option(...),
sphere_diameter: float = typer.Option(...),
soft_edge_width: int = typer.Option(0),
pixel_size: float = typer.Option(...),
pixel_size: float = typer.Option(1),
output: Path = typer.Option(Path("sphere.mrc")),
wall_thickness: float = typer.Option(0),
):
Expand Down

0 comments on commit d988d60

Please sign in to comment.