Skip to content

Commit

Permalink
And of course also black the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
LSchueler committed May 28, 2024
1 parent 23e1b3a commit c10d4c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/00_misc/06_fourier.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
)

# Now, we can 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()
Expand All @@ -44,7 +44,7 @@
# GSTools. Therefore, we set the cutoff values to absolut values in Fourier
# space. But always check, if you cover enough of the spectral density to not
# run into numerical problems.
modes_cutoff = [1., 1.]
modes_cutoff = [1.0, 1.0]

# Next, we have to compute the numerical step size in Fourier space. This choice
# influences the periodicity, which we want to set to the domain size by
Expand Down
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 @@ -28,7 +28,7 @@
seed=1681903,
)
# and compute it on our spatial domain
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 @@ -38,5 +38,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 c10d4c7

Please sign in to comment.