FiberFusing 1.9.2__tar.gz → 1.9.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/_version.py +3 -3
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/geometry.py +8 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/profile.py +12 -17
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing.egg-info/PKG-INFO +2 -2
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing.egg-info/requires.txt +1 -1
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/PKG-INFO +2 -2
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/extra/randomize_core.py +1 -2
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/extra/structure_shift.py +1 -2
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/geometry/plot_line_3.py +1 -2
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/geometry/plot_line_4.py +1 -2
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/geometry/plot_line_5.py +1 -2
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/geometry/plot_ring_10.py +1 -2
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/geometry/plot_ring_2.py +1 -2
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/geometry/plot_ring_3.py +1 -2
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/geometry/plot_ring_4.py +1 -2
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/geometry/plot_ring_5.py +1 -2
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/geometry/plot_ring_7.py +1 -2
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/pyproject.toml +1 -1
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/tests/test_boundaries.py +1 -2
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/tests/test_fused_structure.py +5 -10
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/tests/test_geometries.py +4 -8
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/.flake8 +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/.github/dependabot.yml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/.github/workflows/deploy_PyPi.yml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/.github/workflows/deploy_anaconda.yml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/.github/workflows/deploy_coverage.yml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/.github/workflows/deploy_documentation.yml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/.gitignore +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/__init__.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/background.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/connection/__init__.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/connection/connection.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/connection/connection_optimization.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/connection/utils.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/coordinate_system.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/directories.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/__init__.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/1550BHP.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/DCF13.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/DCF1300S_20.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/DCF1300S_26.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/DCF1300S_33.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/DCF1300S_42.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/F2028M12.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/F2028M21.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/F2028M24.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/F2058G1.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/F2058L1.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/HI1060.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/HP630.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/SM1950.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/SMF28.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/fluorine_doped_1%_capillary.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/fluorine_doped_2%_capillary.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/test_fiber.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/test_multimode_fiber.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/generic_fiber.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/loader.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/geometries/__init__.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/geometries/base_class.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/geometries/linestring.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/geometries/point.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/geometries/polygon.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/geometries/utils.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/helper.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/optical_structure.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/plottings.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/shapes/__init__.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/shapes/base.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/shapes/circle.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/shapes/ellipse.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/shapes/square.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/structures.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/utils.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing.egg-info/SOURCES.txt +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing.egg-info/dependency_links.txt +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing.egg-info/top_level.txt +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/LICENSE +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/README.rst +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/Makefile +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/README.rst +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/extra/README.rst +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/extra/custom_graded_index_fiber.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/extra/custom_step_index_fiber.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/extra/loading_fiber.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/geometry/README.rst +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/examples/geometry/plot_single.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/images/example_3x3.png +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/images/logo.png +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/make.bat +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/source/_static/default.css +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/source/_static/thumbnail.png +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/source/code/components.rst +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/source/code/coordinate_system.rst +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/source/code/geometry.rst +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/source/code/shapes.rst +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/source/code/utils.rst +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/source/code.rst +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/source/conf.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/source/gallery/index.rst +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/source/index.rst +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/source/references.rst +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/source/sg_execution_times.rst +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/docs/source/theory.rst +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/meta.yaml +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/notebook.ipynb +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/setup.cfg +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/tests/__init__.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/tests/fiber_loader.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/tests/test_cooordinate_system.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/tests/test_fiber.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/tests/test_generic_fiber.py +0 -0
- {fiberfusing-1.9.2 → fiberfusing-1.9.3}/tests/test_polygon.py +0 -0
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '1.9.
|
|
32
|
-
__version_tuple__ = version_tuple = (1, 9,
|
|
31
|
+
__version__ = version = '1.9.3'
|
|
32
|
+
__version_tuple__ = version_tuple = (1, 9, 3)
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'g2364e1c6d'
|
|
@@ -345,6 +345,14 @@ class Geometry():
|
|
|
345
345
|
for structure in self.structure_list:
|
|
346
346
|
if isinstance(structure, FiberFusing.background.BackGround):
|
|
347
347
|
continue
|
|
348
|
+
|
|
349
|
+
if isinstance(structure, FiberFusing.fiber.GenericFiber):
|
|
350
|
+
continue
|
|
351
|
+
|
|
352
|
+
if isinstance(structure, FiberFusing.profile.Profile):
|
|
353
|
+
structure.plot(ax=ax, show=False, show_added=False, show_removed=False, show_centers=False, show_fibers=True)
|
|
354
|
+
continue
|
|
355
|
+
|
|
348
356
|
structure.plot(ax=ax, show=False)
|
|
349
357
|
|
|
350
358
|
ax.set(title='Fiber structure', xlabel=r'x-distance [m]', ylabel=r'y-distance [m]')
|
|
@@ -219,10 +219,9 @@ class Profile(OverlayStructureBaseClass):
|
|
|
219
219
|
def _add_structure_to_instance_(
|
|
220
220
|
self,
|
|
221
221
|
structure: Union[FiberRing, FiberLine],
|
|
222
|
-
fusion_degree: float =
|
|
222
|
+
fusion_degree: float | None = None,
|
|
223
223
|
scale_position: float = 1.0,
|
|
224
|
-
position_shift: List[float] = [0, 0]
|
|
225
|
-
compute_fusing: bool = False
|
|
224
|
+
position_shift: List[float] = [0, 0]
|
|
226
225
|
) -> "Profile":
|
|
227
226
|
"""
|
|
228
227
|
Internal method to add a fiber structure to the instance.
|
|
@@ -231,21 +230,19 @@ class Profile(OverlayStructureBaseClass):
|
|
|
231
230
|
----------
|
|
232
231
|
structure : Union[FiberRing, FiberLine]
|
|
233
232
|
The fiber structure to add.
|
|
234
|
-
fusion_degree : float, optional
|
|
235
|
-
The degree of fusion. Default is
|
|
233
|
+
fusion_degree : float | None, optional
|
|
234
|
+
The degree of fusion. Default is None which means no fusion is applied.
|
|
236
235
|
scale_position : float, optional
|
|
237
236
|
Factor to scale the position. Default is 1.0.
|
|
238
237
|
position_shift : list of float, optional
|
|
239
238
|
Shift vector for the position. Default is [0, 0].
|
|
240
|
-
compute_fusing : bool, optional
|
|
241
|
-
Whether to compute the fusing operation. Default is False.
|
|
242
239
|
|
|
243
240
|
Returns
|
|
244
241
|
-------
|
|
245
242
|
Profile
|
|
246
243
|
The updated Profile instance.
|
|
247
244
|
"""
|
|
248
|
-
if
|
|
245
|
+
if fusion_degree is not None:
|
|
249
246
|
structure.set_fusion_degree(fusion_degree=fusion_degree)
|
|
250
247
|
|
|
251
248
|
structure.scale_position(factor=scale_position)
|
|
@@ -254,7 +251,7 @@ class Profile(OverlayStructureBaseClass):
|
|
|
254
251
|
|
|
255
252
|
self.fiber_list.extend(structure.fiber_list)
|
|
256
253
|
|
|
257
|
-
if
|
|
254
|
+
if fusion_degree is not None:
|
|
258
255
|
structure.init_connected_fibers()
|
|
259
256
|
structure.compute_optimal_structure()
|
|
260
257
|
self.removed_section_list.append(structure.removed_section)
|
|
@@ -273,7 +270,6 @@ class Profile(OverlayStructureBaseClass):
|
|
|
273
270
|
fusion_degree: float = 0.0,
|
|
274
271
|
scale_position: float = 1.0,
|
|
275
272
|
position_shift: List[float] = [0, 0],
|
|
276
|
-
compute_fusing: bool = False,
|
|
277
273
|
angle_shift: float = 0.0
|
|
278
274
|
) -> "Profile":
|
|
279
275
|
"""
|
|
@@ -293,8 +289,6 @@ class Profile(OverlayStructureBaseClass):
|
|
|
293
289
|
Factor to scale the position of each fiber. Default is 1.0.
|
|
294
290
|
position_shift : list of float, optional
|
|
295
291
|
A 2D vector [x, y] to shift the entire structure. Default is [0, 0].
|
|
296
|
-
compute_fusing : bool, optional
|
|
297
|
-
Whether to compute the fusing operation for the structure. Default is False.
|
|
298
292
|
angle_shift : float, optional
|
|
299
293
|
The angle by which to rotate the structure. Default is 0.0.
|
|
300
294
|
|
|
@@ -323,8 +317,7 @@ class Profile(OverlayStructureBaseClass):
|
|
|
323
317
|
structure=structure,
|
|
324
318
|
fusion_degree=fusion_degree,
|
|
325
319
|
scale_position=scale_position,
|
|
326
|
-
position_shift=position_shift
|
|
327
|
-
compute_fusing=compute_fusing
|
|
320
|
+
position_shift=position_shift
|
|
328
321
|
)
|
|
329
322
|
|
|
330
323
|
def add_custom_fiber(self, *fibers) -> None:
|
|
@@ -454,6 +447,7 @@ class Profile(OverlayStructureBaseClass):
|
|
|
454
447
|
show_centers: bool = False,
|
|
455
448
|
show_cores: bool = True,
|
|
456
449
|
show_added: bool = True,
|
|
450
|
+
show_fibers: bool = False,
|
|
457
451
|
show_removed: bool = True) -> None:
|
|
458
452
|
"""
|
|
459
453
|
Plot the structure using matplotlib.
|
|
@@ -476,6 +470,10 @@ class Profile(OverlayStructureBaseClass):
|
|
|
476
470
|
if show_structure:
|
|
477
471
|
self.clad_structure.plot(ax, show=False)
|
|
478
472
|
|
|
473
|
+
if show_fibers:
|
|
474
|
+
for fiber in self.fiber_list:
|
|
475
|
+
fiber.plot(ax, show=False)
|
|
476
|
+
|
|
479
477
|
if show_added:
|
|
480
478
|
self.added_section.plot(ax=ax, facecolor='green', show=False)
|
|
481
479
|
|
|
@@ -489,6 +487,3 @@ class Profile(OverlayStructureBaseClass):
|
|
|
489
487
|
if show_centers:
|
|
490
488
|
for idx, fiber in enumerate(self.fiber_list):
|
|
491
489
|
fiber.center.plot(ax, marker='o', size=40, label=f'Center$_{idx}$', show=False)
|
|
492
|
-
|
|
493
|
-
for fiber in self.fiber_list:
|
|
494
|
-
fiber.plot(ax, show=False)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: FiberFusing
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.3
|
|
4
4
|
Summary: A package fiber fusing configuration simulating the transverse fusion of fiber optics.
|
|
5
5
|
Author-email: Martin Poinsinet de Sivry-Houle <martin.poinsinet.de.sivry@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -51,7 +51,7 @@ Provides-Extra: testing
|
|
|
51
51
|
Requires-Dist: pytest<9.0,>=7.4; extra == "testing"
|
|
52
52
|
Requires-Dist: pytest-cov<7,>=2; extra == "testing"
|
|
53
53
|
Requires-Dist: pytest-json-report~=1.5; extra == "testing"
|
|
54
|
-
Requires-Dist: flake8==7.
|
|
54
|
+
Requires-Dist: flake8==7.3.0; extra == "testing"
|
|
55
55
|
Requires-Dist: coverage~=7.6; extra == "testing"
|
|
56
56
|
Provides-Extra: documentation
|
|
57
57
|
Requires-Dist: numpydoc~=1.8; extra == "documentation"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: FiberFusing
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.3
|
|
4
4
|
Summary: A package fiber fusing configuration simulating the transverse fusion of fiber optics.
|
|
5
5
|
Author-email: Martin Poinsinet de Sivry-Houle <martin.poinsinet.de.sivry@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -51,7 +51,7 @@ Provides-Extra: testing
|
|
|
51
51
|
Requires-Dist: pytest<9.0,>=7.4; extra == "testing"
|
|
52
52
|
Requires-Dist: pytest-cov<7,>=2; extra == "testing"
|
|
53
53
|
Requires-Dist: pytest-json-report~=1.5; extra == "testing"
|
|
54
|
-
Requires-Dist: flake8==7.
|
|
54
|
+
Requires-Dist: flake8==7.3.0; extra == "testing"
|
|
55
55
|
Requires-Dist: coverage~=7.6; extra == "testing"
|
|
56
56
|
Provides-Extra: documentation
|
|
57
57
|
Requires-Dist: numpydoc~=1.8; extra == "documentation"
|
|
@@ -19,8 +19,7 @@ profile.add_structure(
|
|
|
19
19
|
structure_type=StructureType.LINEAR,
|
|
20
20
|
number_of_fibers=4,
|
|
21
21
|
fusion_degree=0.3,
|
|
22
|
-
fiber_radius=62.5e-6
|
|
23
|
-
compute_fusing=True
|
|
22
|
+
fiber_radius=62.5e-6
|
|
24
23
|
)
|
|
25
24
|
|
|
26
25
|
profile.refractive_index = 1.4444 # Refractive index of silica at the specified wavelength
|
|
@@ -18,8 +18,7 @@ profile.add_structure(
|
|
|
18
18
|
structure_type=StructureType.LINEAR,
|
|
19
19
|
number_of_fibers=5,
|
|
20
20
|
fusion_degree=0.4,
|
|
21
|
-
fiber_radius=62.5e-6
|
|
22
|
-
compute_fusing=True
|
|
21
|
+
fiber_radius=62.5e-6
|
|
23
22
|
)
|
|
24
23
|
|
|
25
24
|
profile.refractive_index = 1.4444 # Refractive index of silica at the specified wavelength
|
|
@@ -18,8 +18,7 @@ profile.add_structure(
|
|
|
18
18
|
structure_type=StructureType.CIRCULAR,
|
|
19
19
|
number_of_fibers=10,
|
|
20
20
|
fusion_degree=0.4,
|
|
21
|
-
fiber_radius=62.5e-6
|
|
22
|
-
compute_fusing=True
|
|
21
|
+
fiber_radius=62.5e-6
|
|
23
22
|
)
|
|
24
23
|
|
|
25
24
|
profile.refractive_index = 1.4444 # Refractive index of silica at the specified wavelength
|
|
@@ -19,8 +19,7 @@ profile.add_structure(
|
|
|
19
19
|
structure_type=StructureType.CIRCULAR,
|
|
20
20
|
number_of_fibers=2,
|
|
21
21
|
fusion_degree=0.4,
|
|
22
|
-
fiber_radius=62.5e-6
|
|
23
|
-
compute_fusing=True
|
|
22
|
+
fiber_radius=62.5e-6
|
|
24
23
|
)
|
|
25
24
|
|
|
26
25
|
profile.refractive_index = 1.4444 # Refractive index of silica at the specified wavelength
|
|
@@ -18,8 +18,7 @@ profile.add_structure(
|
|
|
18
18
|
structure_type=StructureType.CIRCULAR,
|
|
19
19
|
number_of_fibers=3,
|
|
20
20
|
fusion_degree=0.4,
|
|
21
|
-
fiber_radius=62.5e-6
|
|
22
|
-
compute_fusing=True
|
|
21
|
+
fiber_radius=62.5e-6
|
|
23
22
|
)
|
|
24
23
|
|
|
25
24
|
profile.refractive_index = 1.4444 # Refractive index of silica at the specified wavelength
|
|
@@ -19,8 +19,7 @@ profile.add_structure(
|
|
|
19
19
|
structure_type=StructureType.CIRCULAR,
|
|
20
20
|
number_of_fibers=4,
|
|
21
21
|
fusion_degree=0.4,
|
|
22
|
-
fiber_radius=62.5e-6
|
|
23
|
-
compute_fusing=True
|
|
22
|
+
fiber_radius=62.5e-6
|
|
24
23
|
)
|
|
25
24
|
|
|
26
25
|
profile.refractive_index = 1.4444 # Refractive index of silica at the specified wavelength
|
|
@@ -19,8 +19,7 @@ profile.add_structure(
|
|
|
19
19
|
structure_type=StructureType.CIRCULAR,
|
|
20
20
|
number_of_fibers=5,
|
|
21
21
|
fusion_degree=0.4,
|
|
22
|
-
fiber_radius=62.5e-6
|
|
23
|
-
compute_fusing=True
|
|
22
|
+
fiber_radius=62.5e-6
|
|
24
23
|
)
|
|
25
24
|
|
|
26
25
|
profile.refractive_index = 1.4444 # Refractive index of silica at the specified wavelength
|
|
@@ -19,8 +19,7 @@ profile.add_structure(
|
|
|
19
19
|
structure_type=StructureType.CIRCULAR,
|
|
20
20
|
number_of_fibers=7,
|
|
21
21
|
fusion_degree=0.4,
|
|
22
|
-
fiber_radius=62.5e-6
|
|
23
|
-
compute_fusing=True
|
|
22
|
+
fiber_radius=62.5e-6
|
|
24
23
|
)
|
|
25
24
|
|
|
26
25
|
profile.refractive_index = 1.4444 # Refractive index of silica at the specified wavelength
|
|
@@ -18,8 +18,7 @@ def test_building_structure(mock_show, number_of_fibers, fusion_degree, structur
|
|
|
18
18
|
structure_type=structure_type,
|
|
19
19
|
number_of_fibers=number_of_fibers,
|
|
20
20
|
fusion_degree=fusion_degree,
|
|
21
|
-
fiber_radius=62.5e-6
|
|
22
|
-
compute_fusing=True
|
|
21
|
+
fiber_radius=62.5e-6
|
|
23
22
|
)
|
|
24
23
|
|
|
25
24
|
profile.plot()
|
|
@@ -36,8 +35,7 @@ def test_randomize_core_position():
|
|
|
36
35
|
structure_type=StructureType.CIRCULAR,
|
|
37
36
|
number_of_fibers=5,
|
|
38
37
|
fusion_degree=0.4,
|
|
39
|
-
fiber_radius=62.5e-6
|
|
40
|
-
compute_fusing=True
|
|
38
|
+
fiber_radius=62.5e-6
|
|
41
39
|
)
|
|
42
40
|
|
|
43
41
|
profile.randomize_core_positions(random_factor=4e-6)
|
|
@@ -56,8 +54,7 @@ def test_rotate_profile():
|
|
|
56
54
|
structure_type=StructureType.CIRCULAR,
|
|
57
55
|
number_of_fibers=5,
|
|
58
56
|
fusion_degree=0.4,
|
|
59
|
-
fiber_radius=62.5e-6
|
|
60
|
-
compute_fusing=True
|
|
57
|
+
fiber_radius=62.5e-6
|
|
61
58
|
)
|
|
62
59
|
|
|
63
60
|
initial_fiber_list = profile.fiber_list.copy()
|
|
@@ -74,8 +71,7 @@ def test_translate_profile():
|
|
|
74
71
|
structure_type=StructureType.CIRCULAR,
|
|
75
72
|
number_of_fibers=5,
|
|
76
73
|
fusion_degree=0.4,
|
|
77
|
-
fiber_radius=62.5e-6
|
|
78
|
-
compute_fusing=True
|
|
74
|
+
fiber_radius=62.5e-6
|
|
79
75
|
)
|
|
80
76
|
|
|
81
77
|
initial_fiber_list = profile.fiber_list.copy()
|
|
@@ -92,8 +88,7 @@ def test_scale_profile():
|
|
|
92
88
|
structure_type=StructureType.CIRCULAR,
|
|
93
89
|
number_of_fibers=5,
|
|
94
90
|
fusion_degree=0.4,
|
|
95
|
-
fiber_radius=62.5e-6
|
|
96
|
-
compute_fusing=True
|
|
91
|
+
fiber_radius=62.5e-6
|
|
97
92
|
)
|
|
98
93
|
|
|
99
94
|
initial_fiber_list = profile.fiber_list.copy()
|
|
@@ -30,8 +30,7 @@ def test_building_geometry(mock_show, fusion_degree, number_of_fibers, structure
|
|
|
30
30
|
structure_type=structure_type,
|
|
31
31
|
number_of_fibers=number_of_fibers,
|
|
32
32
|
fusion_degree=fusion_degree,
|
|
33
|
-
fiber_radius=62.5e-6
|
|
34
|
-
compute_fusing=True
|
|
33
|
+
fiber_radius=62.5e-6
|
|
35
34
|
)
|
|
36
35
|
|
|
37
36
|
profile.refractive_index = 1.4444
|
|
@@ -71,8 +70,7 @@ def test_building_geometry_with_capillary(mock_show, fusion_degree, number_of_fi
|
|
|
71
70
|
structure_type=structure_type,
|
|
72
71
|
number_of_fibers=number_of_fibers,
|
|
73
72
|
fusion_degree=fusion_degree,
|
|
74
|
-
fiber_radius=62.5e-6
|
|
75
|
-
compute_fusing=True
|
|
73
|
+
fiber_radius=62.5e-6
|
|
76
74
|
)
|
|
77
75
|
|
|
78
76
|
profile.refractive_index=1.4444
|
|
@@ -120,8 +118,7 @@ def test_building_geometry_with_capillary_and_fibers(mock_show, fusion_degree, n
|
|
|
120
118
|
structure_type=structure_type,
|
|
121
119
|
number_of_fibers=number_of_fibers,
|
|
122
120
|
fusion_degree=fusion_degree,
|
|
123
|
-
fiber_radius=62.5e-6
|
|
124
|
-
compute_fusing=True
|
|
121
|
+
fiber_radius=62.5e-6
|
|
125
122
|
)
|
|
126
123
|
|
|
127
124
|
profile.refractive_index = 1.4444
|
|
@@ -162,8 +159,7 @@ def test_geometry_api():
|
|
|
162
159
|
structure_type=StructureType.CIRCULAR,
|
|
163
160
|
number_of_fibers=2,
|
|
164
161
|
fusion_degree=0.3,
|
|
165
|
-
fiber_radius=62.5e-6
|
|
166
|
-
compute_fusing=True
|
|
162
|
+
fiber_radius=62.5e-6
|
|
167
163
|
)
|
|
168
164
|
|
|
169
165
|
profile.refractive_index = 1.4444
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fiberfusing-1.9.2 → fiberfusing-1.9.3}/FiberFusing/fiber/fiber_files/test_multimode_fiber.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|