Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to Julia 1.10.3 #154

Merged
merged 4 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:

- uses: julia-actions/setup-julia@v2
with:
version: '1.10.0'
version: '1.10.3'
- uses: julia-actions/cache@v1
with:
cache-name: ${{ runner.os }}-${{ steps.get-date.outputs.date }}
Expand Down
26 changes: 14 additions & 12 deletions docs/benchmarks/mode_solver_rectangle.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
# ---
# jupyter:
# jupytext:
# formats: py:light,md:myst
# formats: py:percent,md:myst
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.14.4
# format_name: percent
# format_version: '1.3'
# jupytext_version: 1.15.0
# kernelspec:
# display_name: Python 3
# name: python3
# ---

# %% [markdown]
# # Benchmark of the mode solver 1

# %% [markdown]
# Reproducing {cite}`Hadley2002`, where the modes of a analytically solvable geometry are calculated.
# The error for all modes is calculated to be smaller than $\pm 1 \cdot 10^{-8}$.
# We'll show that we get pretty close, but will stop at a resonable resolution to keep the runtime sensible.
# Getting even higher accurancy will be left open for adaptive refinement.
# The results are presented here:

# + tags=["remove-stderr", "hide-input"]
# %% tags=["remove-stderr", "hide-input"]
from collections import OrderedDict

import numpy as np
Expand Down Expand Up @@ -87,16 +89,16 @@

pd.DataFrame(
{
"epsilons": [
"Epsilons": [
f"{epsilons['core']:.2f} / {epsilons['clad']:.2f}" for epsilons in epsilons_paper
],
"reference value": (f"{n:.8f}" for n in neff_values_paper),
"calculated value slepc": (f"{n:.8f}" for n in neff_values_femwell_slepc),
"difference slepc": (
"Reference value": (f"{n:.8f}" for n in neff_values_paper),
"Calculated value slepc": (f"{n:.8f}" for n in neff_values_femwell_slepc),
"Difference slepc": (
f"{n1-n2:.8f}" for n1, n2 in zip(neff_values_paper, neff_values_femwell_slepc)
),
"calculated value scipy": (f"{n:.8f}" for n in neff_values_femwell_scipy),
"difference scipy": (
"Calculated value scipy": (f"{n:.8f}" for n in neff_values_femwell_scipy),
"Difference scipy": (
f"{n1-n2:.8f}" for n1, n2 in zip(neff_values_paper, neff_values_femwell_scipy)
),
}
Expand All @@ -107,8 +109,8 @@
],
subset=["difference slepc", "difference scipy"],
)
# -

# %% [markdown]
# ## Bibliography
#
# ```{bibliography}
Expand Down
Loading