Skip to content

Commit

Permalink
refactor pattern settings
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickcleeve2 committed Jan 27, 2024
1 parent d16f3b4 commit 21c9c8e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/openfibsem/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ python example/example_milling_.py
```python title="example/example_milling.py"

from fibsem import utils
from fibsem.structures import FibsemPattern, FibsemPatternType, FibsemMillingSettings
from fibsem.structures import FibsemMillingSettings, FibsemRectangeSettings, FibsemLineSettings
from fibsem import milling
import logging

Expand All @@ -251,8 +251,7 @@ def main():
microscope, settings = utils.setup_session(manufacturer="Demo", ip_address="localhost")

# rectangle pattern
rectangle_pattern = FibsemPattern(
pattern = FibsemPatternType.Rectangle,
rectangle_pattern = FibsemRectangeSettings(
width = 10.0e-6,
height = 10.0e-6,
depth = 2.0e-6,
Expand All @@ -262,8 +261,7 @@ def main():
)

# line pattern one
line_pattern_01 = FibsemPattern(
pattern = FibsemPatternType.Line,
line_pattern_01 = FibsemLineSettings(
start_x = 0.0,
start_y = 0.0,
end_x = 10.0e-6,
Expand Down

0 comments on commit 21c9c8e

Please sign in to comment.