Skip to content

Commit

Permalink
Amend
Browse files Browse the repository at this point in the history
  • Loading branch information
LSchueler committed Nov 10, 2023
1 parent b312512 commit 500ca40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/00_misc/06_fourier.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
)

# Now, we can finally calculate the field with the given parameters.
srf((x, y), mesh_type='structured')
srf((x, y), mesh_type="structured")

# GSTools has a few simple visualization methods built in.
srf.plot()
6 changes: 4 additions & 2 deletions examples/00_misc/07_fourier_trans.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
seed=1681903,
)
# and computing it
srf((x, y), mesh_type='structured')
srf((x, y), mesh_type="structured")

# With the field generated, we can now apply transformations
# starting with a discretization of the field into 4 different values
Expand All @@ -37,5 +37,7 @@

# This is already a nice result, but we want to pronounce the peaks of the
# field. We can do this by applying a log-normal transformation on top
srf.transform("lognormal", field="transform_discrete", store="transform_lognormal")
srf.transform(
"lognormal", field="transform_discrete", store="transform_lognormal"
)
srf.plot("transform_lognormal")

0 comments on commit 500ca40

Please sign in to comment.