Skip to content

Commit

Permalink
Merge branch 'main' into tutorials
Browse files Browse the repository at this point in the history
# Conflicts:
#	pyproject.toml
#	requirements-dev.txt
  • Loading branch information
dalonsoa committed Jan 11, 2024
2 parents 98c4695 + c89535e commit d29bac7
Show file tree
Hide file tree
Showing 18 changed files with 856 additions and 1,063 deletions.
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ dev = [
"pytest-cov",
"geopandas",
"matplotlib",
"shapely"
"shapely",
"pytest-cov"
]

demos = [
Expand Down Expand Up @@ -65,8 +66,5 @@ addopts = "-v -p no:warnings --cov=wsimod --cov-report=html"
select = ["E", "F", "I"] # pycodestyle, Pyflakes, isort. Ignoring pydocstyle (D), for now
exclude = ["docs", "tests"] # Let's ignore tests and docs folders, for now

[tool.ruff.per-file-ignores]
"wsimod/*" = ["E501"] # 176 lines (all comments) are too long (>88). Ignoring, for now

[tool.ruff.pydocstyle]
convention = "google"
4 changes: 1 addition & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --output-file=requirements.txt
# pip-compile
#
colorama==0.4.6
# via tqdm
dill==0.3.7
# via wsimod (pyproject.toml)
numpy==1.26.2
Expand Down
287 changes: 129 additions & 158 deletions wsimod/arcs/arcs.py

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions wsimod/core/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"""Created on Fri Dec 6 15:17:07 2019.
@author: bdobson
"""
from wsimod.core import constants

M3_S_TO_ML_D = 86.4
MM_KM2_TO_ML = 1e-3 * 1e6 * 1e3 * 1e-6 # mm->m, km2->m2, m3->l, l->Ml
MM_M2_TO_ML = 1e-3 * 1e3 * 1e-6 # mm->m, m3->l, l->Ml
MM_M2_TO_SIM_VOLUME = MM_M2_TO_ML # SIM volume is by default ML, but can be changed by changing MM_TO_SIM_VOLUME
MM_M2_TO_SIM_VOLUME = MM_M2_TO_ML # SIM volume is by default ML, but can be changed by
# changing MM_TO_SIM_VOLUME
MM_M2_TO_M3 = 1e-3 # mm->m
ML_TO_M3 = 1000
PCT_TO_PROP = 1 / 100
Expand Down Expand Up @@ -117,7 +117,8 @@ def set_default_pollutants():
"do",
"temperature",
"ph",
] # e.g. pollutants whose concentration should not increase if volume is distilled out
] # e.g. pollutants whose concentration should not increase if volume is distilled
# out
constants.ADDITIVE_POLLUTANTS = [
"org-phosphorus",
"phosphate",
Expand Down
Loading

0 comments on commit d29bac7

Please sign in to comment.