ictdesigntools.optical.testing¶
Acceptance testing for installed optical channels, worked out from the design.
- Tier 1 loss limits (
loss_limit): the most a light source and power meter may read across a channel at each wavelength. That is the channel's own designed loss plus the connections to the test cords that the reference method leaves in the reading. A one-cord reference zeroes the meter through a single launch cord, so the reading includes the connections at both ends of the link. Two cords leave one end connection in, and three cords leave neither. - Expected OTDR events (
otdr_events): where along the fibre each connection, splice and splitter sits, the loss each should show, and its reflectance limit when a return loss grade is given. A splice's true loss is the average of the two directions' readings (bidirectional_loss_db), because a mismatch in backscatter makes one direction read high and the other low. - End-face inspection (
inspect): defects and scratches against the IEC 61300-3-35 zone limits indata/inspection.toml. acceptance()gathers all of these for one channel.
>>> from ictdesigntools.cabling.channels import Bulk, Channel, Equipment, Part
>>> from ictdesigntools.cabling.assemblies import End
>>> ch = Channel((Equipment("ODF A", "lc"), Bulk("Pigtail", "smf-os2", 2, a=End("lc")),
... Part("fusion-splice-40"), Bulk("Feeder", "smf-os2", 500),
... Part("fusion-splice-40"), Bulk("Pigtail", "smf-os2", 2, b=End("lc")),
... Equipment("ODF B", "lc")))
>>> lim = loss_limit(ch, 1310)
>>> round(lim.channel_db, 3), lim.end_connections, round(lim.limit_db, 3)
(1.104, 2, 2.604)
>>> [(round(e.position_m), e.kind) for e in otdr_events(ch, 1310)]
[(2, 'splice'), (502, 'splice')]
>>> inspect("sm-pc-35", defects=[("A", 2.5)], scratches=[("A", 3.5), ("A", 3.2)]).passes
False
AcceptanceError ¶
Bases: ValueError
An unknown method, criteria table or zone.
Acceptance
dataclass
¶
Acceptance(
channel: Channel,
limits: tuple[LossLimit, ...],
events: tuple[Event, ...],
inspection: Criteria,
)
lines ¶
The acceptance criteria as lines for a test plan or a drawing note.
Source code in src/ictdesigntools/optical/testing.py
loss_limit ¶
loss_limit(
ch: Channel,
wavelength_nm: int,
method: str = "one-cord",
grade: str = "",
) -> LossLimit
The Tier 1 loss limit for ch at wavelength_nm, with the test cords referenced by
method (one-cord, two-cord or three-cord) and mated pairs at the ANSI/TIA-568.3
maximum or an attenuation grade.
Source code in src/ictdesigntools/optical/testing.py
otdr_events ¶
The events an OTDR trace of ch should show, A end to B end: each part's position,
the loss it may add, and, given a return loss rl_grade, the reflectance it may show at
its connections. Parts at one place (a cassette's rear and front) are one event.
Source code in src/ictdesigntools/optical/testing.py
bidirectional_loss_db ¶
An event's true loss from the readings in each direction: their mean. One direction can read a gain when the fibre after the event backscatters more than the fibre before.
Source code in src/ictdesigntools/optical/testing.py
criteria ¶
One inspection criteria table by slug, or every table.
Source code in src/ictdesigntools/optical/testing.py
inspect ¶
inspect(slug: str, defects=(), scratches=()) -> Inspection
An end face against criteria table slug. defects and scratches are
(zone, size in µm) pairs, as an inspection probe reports them.
Source code in src/ictdesigntools/optical/testing.py
acceptance ¶
acceptance(
ch: Channel,
wavelengths=(1310, 1550),
method: str = "one-cord",
grade: str = "",
rl_grade: str = "",
inspection: str = "",
) -> Acceptance
Everything a channel must meet when it is tested: a loss limit per wavelength, the
OTDR events at the first wavelength, and the end-face criteria (inspection, by default
multimode or single-mode PC at 35 dB as the channel's fibre suggests).