Skip to content

Commit

Permalink
Updated old code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gert-Jan Both committed Nov 8, 2024
1 parent d7bdb6b commit aec9e35
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 128 deletions.
7 changes: 3 additions & 4 deletions modified_born/03_angled_interface.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# In this notebook we redevelop the code to do proper padding and z - y - x ordering.
# We've already made the samples, just checking.
# In this notebook we check Cedrics suggestion about using a angled interface
# %% Imports
from functools import reduce
from numbers import Number
Expand All @@ -13,10 +12,10 @@
from jax.typing import ArrayLike
import jax
from scipy.signal.windows import tukey
from samples import angled_interface

# %%
n_sample = jnp.full((1000, 1000), 1.0)
n_sample = n_sample.at[jnp.triu_indices(n=1000)].set(1.55)[::-1, None, :]
n_sample = angled_interface()

plt.imshow(jnp.rot90(n_sample[:, 0, :]))
plt.colorbar()
Expand Down
124 changes: 0 additions & 124 deletions modified_born/08_compact_green.py

This file was deleted.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies = [
"matplotlib>=3.9.2",
"pytest>=8.3.3",
"ruff>=0.7.1",
"jaxopt>=0.8.3",
]
version = "0.3.0"

Expand Down
17 changes: 17 additions & 0 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aec9e35

Please sign in to comment.