Skip to content
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
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "tc1d"
version = "0.3.0"
version = "0.3.1"
authors = [
{name = "Dave Whipp", email = "david.whipp@helsinki.fi"},
{name= "Benjamin Gérard", email = "benjamin.gerard@helsinki.fi"},
Expand Down Expand Up @@ -126,3 +126,4 @@ ruff = ">=0.12.12,<0.13"
hatchling = ">=1.27.0,<2"
mypy = ">=1.17.1,<2"
pip = ">=25.2,<26"
pre-commit = ">=4.3.0,<5"
6 changes: 4 additions & 2 deletions src/tc1d/tc1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -3209,6 +3209,9 @@ def run_model(params):
# Loop over all times and use -dt to run erosion model backwards
# TODO: Make this a function???
while curtime > 0.0:
# Increment current time
curtime -= dt

# Find particle velocities and move incrementally to starting depths
vx_pts, vx, vx_max, fault_depth = calculate_erosion_rate(
params,
Expand All @@ -3228,8 +3231,7 @@ def run_model(params):
if params["plot_fault_depth_history"]:
fault_depth_history[idx] = fault_depth

# Increment current time and idx
curtime -= dt
# Increment idx
idx += 1

# Reverse exhumation history for plotting
Expand Down
2 changes: 2 additions & 0 deletions src/tc1d/tc1d_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Import libraries we need
import argparse
from importlib.metadata import version
import sys
import tc1d

Expand All @@ -15,6 +16,7 @@ def main():
description="Calculates transient 1D temperatures and thermochronometer ages",
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
)
parser.add_argument("-v", "--version", action="version", version=version("tc1d"))
general = parser.add_argument_group(
"General options", "Options for various general features"
)
Expand Down