Skip to content

add example for calculating GVD #154

add example for calculating GVD

add example for calculating GVD #154

Triggered via pull request January 19, 2024 05:45
Status Success
Total duration 35s
Artifacts

format.yml

on: pull_request
runner / black
26s
runner / black
Fit to window
Zoom out
Zoom in

Annotations

7 warnings
runner / black: docs/photonics/examples/calculate_GVD.py#L57
[blackfmt] reported by reviewdog 🐶 Raw Output: docs/photonics/examples/calculate_GVD.py:57:-resolutions = dict(core={"resolution": 0.02, "distance": 0.3}, docs/photonics/examples/calculate_GVD.py:58:- cladding={"resolution": 0.05, "distance": 0.3}, docs/photonics/examples/calculate_GVD.py:59:- buried_oxide={"resolution": 0.05, "distance": 0.3}) docs/photonics/examples/calculate_GVD.py:57:+resolutions = dict( docs/photonics/examples/calculate_GVD.py:58:+ core={"resolution": 0.02, "distance": 0.3}, docs/photonics/examples/calculate_GVD.py:59:+ cladding={"resolution": 0.05, "distance": 0.3}, docs/photonics/examples/calculate_GVD.py:60:+ buried_oxide={"resolution": 0.05, "distance": 0.3}, docs/photonics/examples/calculate_GVD.py:61:+)
runner / black: docs/photonics/examples/calculate_GVD.py#L70
[blackfmt] reported by reviewdog 🐶 Raw Output: docs/photonics/examples/calculate_GVD.py:72:+
runner / black: docs/photonics/examples/calculate_GVD.py#L74
[blackfmt] reported by reviewdog 🐶 Raw Output: docs/photonics/examples/calculate_GVD.py:74:- (3.0249 * wavelength ** 2) / (wavelength ** 2 - 0.1353406 ** 2) + (40314 * wavelength ** 2) / ( docs/photonics/examples/calculate_GVD.py:75:- wavelength ** 2 - 1239.842 ** 2) + 1) docs/photonics/examples/calculate_GVD.py:77:+ (3.0249 * wavelength**2) / (wavelength**2 - 0.1353406**2) docs/photonics/examples/calculate_GVD.py:78:+ + (40314 * wavelength**2) / (wavelength**2 - 1239.842**2) docs/photonics/examples/calculate_GVD.py:79:+ + 1 docs/photonics/examples/calculate_GVD.py:80:+ )
runner / black: docs/photonics/examples/calculate_GVD.py#L83
[blackfmt] reported by reviewdog 🐶 Raw Output: docs/photonics/examples/calculate_GVD.py:83:- return np.sqrt(0.6961663 * wavelength ** 2 / (wavelength ** 2 - 0.0684043 ** 2) + ( docs/photonics/examples/calculate_GVD.py:84:- 0.4079426 * wavelength ** 2 / (wavelength ** 2 - 0.1162414 ** 2)) + ( docs/photonics/examples/calculate_GVD.py:85:- 0.8974794 * wavelength ** 2 / (wavelength ** 2 - 9.896161 ** 2)) + 1) docs/photonics/examples/calculate_GVD.py:88:+ return np.sqrt( docs/photonics/examples/calculate_GVD.py:89:+ 0.6961663 * wavelength**2 / (wavelength**2 - 0.0684043**2) docs/photonics/examples/calculate_GVD.py:90:+ + (0.4079426 * wavelength**2 / (wavelength**2 - 0.1162414**2)) docs/photonics/examples/calculate_GVD.py:91:+ + (0.8974794 * wavelength**2 / (wavelength**2 - 9.896161**2)) docs/photonics/examples/calculate_GVD.py:92:+ + 1 docs/photonics/examples/calculate_GVD.py:93:+ )
runner / black: docs/photonics/examples/calculate_GVD.py#L100
[blackfmt] reported by reviewdog 🐶 Raw Output: docs/photonics/examples/calculate_GVD.py:100:-
runner / black: docs/photonics/examples/calculate_GVD.py#L127
[blackfmt] reported by reviewdog 🐶 Raw Output: docs/photonics/examples/calculate_GVD.py:127:-axs[0].semilogy(wavelength_list, neff_list, 'ro', label='data') docs/photonics/examples/calculate_GVD.py:134:+axs[0].semilogy(wavelength_list, neff_list, "ro", label="data")
runner / black: docs/photonics/examples/calculate_GVD.py#L143
[blackfmt] reported by reviewdog 🐶 Raw Output: docs/photonics/examples/calculate_GVD.py:143:-GVD = (-wavelength_list / (2.99792e-7) * y_spl_2d(wavelength_list)) docs/photonics/examples/calculate_GVD.py:150:+GVD = -wavelength_list / (2.99792e-7) * y_spl_2d(wavelength_list)