From fecefccd5e1ced7a8fa4ea26595f22ab32c3ead9 Mon Sep 17 00:00:00 2001 From: Paulo van Breugel Date: Sun, 22 Dec 2024 23:51:33 +0100 Subject: [PATCH] r.maxent.train: Prevent use of scientific notation for precision number (#1270) Prevent use of scientific notation for precision number Fix author details to make sure g.citation yields the correct results (for r.maxent.train, r.maxent.setup, r.maxent.predict, v.maxent.swd. --- src/raster/r.maxent.predict/r.maxent.predict.html | 12 +++++------- src/raster/r.maxent.setup/r.maxent.setup.html | 8 +++----- src/raster/r.maxent.train/r.maxent.train.html | 12 +++++------- src/raster/r.maxent.train/r.maxent.train.py | 1 + src/vector/v.maxent.swd/v.maxent.swd.html | 14 +++++--------- 5 files changed, 19 insertions(+), 28 deletions(-) diff --git a/src/raster/r.maxent.predict/r.maxent.predict.html b/src/raster/r.maxent.predict/r.maxent.predict.html index d42dd06181..5dcf76e3d5 100644 --- a/src/raster/r.maxent.predict/r.maxent.predict.html +++ b/src/raster/r.maxent.predict/r.maxent.predict.html @@ -244,11 +244,9 @@

SEE ALSO

AUTHOR

-Paulo van Breugel, https://ecodiv.earth
- -

-HAS green academy University of Applied Sciences
-Innovative -Biomonitoring research group
-Climate-robust +Paulo van Breugel, HAS green academy, Innovative +Biomonitoring research group, Climate-robust Landscapes research group diff --git a/src/raster/r.maxent.setup/r.maxent.setup.html b/src/raster/r.maxent.setup/r.maxent.setup.html index a769e1421d..25f8814955 100644 --- a/src/raster/r.maxent.setup/r.maxent.setup.html +++ b/src/raster/r.maxent.setup/r.maxent.setup.html @@ -85,11 +85,9 @@

SEE ALSO

AUTHOR

-Paulo van Breugel, https://ecodiv.earth
- -

-HAS green academy University of Applied Sciences
Paulo van Breugel, HAS green academy, Innovative -Biomonitoring research group
, Climate-robust Landscapes research group diff --git a/src/raster/r.maxent.train/r.maxent.train.html b/src/raster/r.maxent.train/r.maxent.train.html index 6b0f90bae7..75a7e1122b 100644 --- a/src/raster/r.maxent.train/r.maxent.train.html +++ b/src/raster/r.maxent.train/r.maxent.train.html @@ -271,11 +271,9 @@

SEE ALSO

AUTHOR

-Paulo van Breugel, https://ecodiv.earth
- -

-HAS green academy University of Applied Sciences
-Innovative -Biomonitoring research group
-Climate-robust +Paulo van Breugel, HAS green academy, Innovative +Biomonitoring research group, Climate-robust Landscapes research group diff --git a/src/raster/r.maxent.train/r.maxent.train.py b/src/raster/r.maxent.train/r.maxent.train.py index 29e08ca310..56d77dd487 100755 --- a/src/raster/r.maxent.train/r.maxent.train.py +++ b/src/raster/r.maxent.train/r.maxent.train.py @@ -1280,6 +1280,7 @@ def main(options, flags): precision = options["precision"] if precision.isdigit(): prec = 10 ** -int(precision) + prec = f"{prec:.{precision}f}" gs.run_command( "r.mapcalc", expression=f"{grasslayers[idx]} = round({grasslayers[idx]}, {prec})", diff --git a/src/vector/v.maxent.swd/v.maxent.swd.html b/src/vector/v.maxent.swd/v.maxent.swd.html index c6776f2f69..fcc7230068 100644 --- a/src/vector/v.maxent.swd/v.maxent.swd.html +++ b/src/vector/v.maxent.swd/v.maxent.swd.html @@ -146,13 +146,9 @@

REFERENCES

AUTHOR

-Paulo van Breugel, paulo at ecodiv.earth - -

-HAS green academy University of Applied Sciences
-Innovative -Biomonitoring research group
-Climate-robust +Paulo van Breugel, HAS green academy, Innovative +Biomonitoring research group, Climate-robust Landscapes research group