Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 13, 2024
1 parent fc10bfd commit ff93fdb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
36 changes: 18 additions & 18 deletions docs/tutorials/notebooks/example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "2815939c",
"id": "0",
"metadata": {},
"source": [
"![Sequence Logo](https://raw.githubusercontent.com/sequence-dev/sequence/develop/docs/_static/sequence-logo-text-lowercase.png)\n",
Expand All @@ -14,7 +14,7 @@
},
{
"cell_type": "markdown",
"id": "722b40f1",
"id": "1",
"metadata": {},
"source": [
"# Create the *sequence* model grid\n",
Expand All @@ -25,7 +25,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "c90feada",
"id": "2",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -38,7 +38,7 @@
},
{
"cell_type": "markdown",
"id": "1f44bed6",
"id": "3",
"metadata": {},
"source": [
"The following code create a new grid with 100 vertical stacks that are each 1000 m in width. We then set the initial topoography (and bathymetry) for the model as well as setting sea level."
Expand All @@ -47,7 +47,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "43bc9d89",
"id": "4",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -58,7 +58,7 @@
},
{
"cell_type": "markdown",
"id": "753b28ce",
"id": "5",
"metadata": {},
"source": [
"# Create the process components\n",
Expand All @@ -73,7 +73,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "96d9cc6f",
"id": "6",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -110,7 +110,7 @@
},
{
"cell_type": "markdown",
"id": "9f2dce0a",
"id": "7",
"metadata": {},
"source": [
"# Create a new *Sequence* model\n",
Expand All @@ -121,7 +121,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "1ba92be6",
"id": "8",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -141,7 +141,7 @@
},
{
"cell_type": "markdown",
"id": "282f70e1",
"id": "9",
"metadata": {},
"source": [
"Run the model for 3000 time steps."
Expand All @@ -150,7 +150,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "55057e5e",
"id": "10",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -161,7 +161,7 @@
},
{
"cell_type": "markdown",
"id": "82ce0bad",
"id": "11",
"metadata": {},
"source": [
"# Dynamically change parameters\n",
Expand All @@ -174,7 +174,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "97b28fe7",
"id": "12",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -184,7 +184,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "64d17bdf",
"id": "13",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -195,7 +195,7 @@
},
{
"cell_type": "markdown",
"id": "bd7345df",
"id": "14",
"metadata": {},
"source": [
"## Create a vertical fault\n",
Expand All @@ -206,7 +206,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "740e6641",
"id": "15",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -217,7 +217,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b21a4edd",
"id": "16",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -227,7 +227,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "796b0042",
"id": "17",
"metadata": {},
"outputs": [],
"source": [
Expand Down
12 changes: 6 additions & 6 deletions sequence/sediment_flexure.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ def __init__(
"Flexure parameters\n"
+ toml.dumps(
{
"isostasy_time": 0.0
if self._isostasy_time is None
else self._isostasy_time,
"isostasy_time": (
0.0 if self._isostasy_time is None else self._isostasy_time
),
"alpha": self.alpha,
"rigidity": self.rigidity,
"gamma_mantle": self.gamma_mantle,
Expand Down Expand Up @@ -350,9 +350,9 @@ def __init__(
"sand_density": self._sand_density,
"mud_density": self._mud_density,
"water_density": self._water_density,
"isostasy_time": 0.0
if self.isostasy_time is None
else self.isostasy_time,
"isostasy_time": (
0.0 if self.isostasy_time is None else self.isostasy_time
),
"alpha": self.alpha,
"rigidity": self.rigidity,
"gamma_mantle": self.gamma_mantle,
Expand Down

0 comments on commit ff93fdb

Please sign in to comment.