Skip to content

Commit a0f2d5e

Browse files
committed
fixing docs
1 parent ce659cb commit a0f2d5e

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

docs/examples/geometry/plot_ring_5.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,28 @@
1919
structure_type=StructureType.CIRCULAR,
2020
number_of_fibers=5,
2121
fusion_degree=0.4,
22-
fiber_radius=62.5e-6
22+
fiber_radius=62.5e-6,
2323
)
2424

25-
profile.refractive_index = 1.4444 # Refractive index of silica at the specified wavelength
25+
profile.refractive_index = (
26+
1.4444 # Refractive index of silica at the specified wavelength
27+
)
2628

2729

2830
# Load fibers (e.g., SMF-28) positioned at the cores of the profile structure
2931
fiber_loader = FiberLoader()
3032
fibers = [
31-
fiber_loader.load_fiber('SMF28', clad_refractive_index=profile.refractive_index, position=core_position)
33+
fiber_loader.load_fiber(
34+
"SMF28", clad_refractive_index=profile.refractive_index, position=core_position
35+
)
3236
for core_position in profile.cores
3337
]
3438

3539
# Set up the geometry with the defined background, profile structure, and resolution
3640
geometry = Geometry(
3741
x_bounds=DomainAlignment.CENTERING,
3842
y_bounds=DomainAlignment.CENTERING,
39-
resolution=250
43+
resolution=250,
4044
)
4145

4246
# Add the fibers to the geometry
@@ -45,4 +49,4 @@
4549
geometry.initialize()
4650

4751
# Plot the resulting geometry
48-
geometry.plot(show_mesh=True)
52+
geometry.plot()

0 commit comments

Comments
 (0)