Skip to content

Commit

Permalink
r.maxent.train: Prevent use of scientific notation for precision numb…
Browse files Browse the repository at this point in the history
…er (#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.
  • Loading branch information
ecodiv authored Dec 22, 2024
1 parent 551a084 commit fecefcc
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 28 deletions.
12 changes: 5 additions & 7 deletions src/raster/r.maxent.predict/r.maxent.predict.html
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,9 @@ <h2>SEE ALSO</h2>

<h2>AUTHOR</h2>

Paulo van Breugel, <a href="https://ecodiv.earth">https://ecodiv.earth</a><br>

<p>
HAS green academy University of Applied Sciences<br>
<a href="https://www.has.nl/en/research/professorships/innovative-bio-monitoring-professorship/">Innovative
Biomonitoring research group</a><br>
<a href="https://www.has.nl/en/research/professorships/climate-robust-landscapes-professorship/">Climate-robust
<a href="https:ecodiv.earth">Paulo van Breugel</a>, <a
href="https://has.nl">HAS green academy</a>, <a
href="https://www.has.nl/en/research/professorships/innovative-bio-monitoring-professorship/">Innovative
Biomonitoring research group</a>, <a
href="https://www.has.nl/en/research/professorships/climate-robust-landscapes-professorship/">Climate-robust
Landscapes research group</a>
8 changes: 3 additions & 5 deletions src/raster/r.maxent.setup/r.maxent.setup.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,9 @@ <h2>SEE ALSO</h2>

<h2>AUTHOR</h2>

Paulo van Breugel, <a href="https://ecodiv.earth">https://ecodiv.earth</a><br>

<p>
HAS green academy University of Applied Sciences<br> <a
<a href="https:ecodiv.earth">Paulo van Breugel</a>, <a
href="https://has.nl">HAS green academy</a>, <a
href="https://www.has.nl/en/research/professorships/innovative-bio-monitoring-professorship/">Innovative
Biomonitoring research group</a><br> <a
Biomonitoring research group</a>, <a
href="https://www.has.nl/en/research/professorships/climate-robust-landscapes-professorship/">Climate-robust
Landscapes research group</a>
12 changes: 5 additions & 7 deletions src/raster/r.maxent.train/r.maxent.train.html
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,9 @@ <h2>SEE ALSO</h2>

<h2>AUTHOR</h2>

Paulo van Breugel, <a href="https://ecodiv.earth">https://ecodiv.earth</a><br>

<p>
HAS green academy University of Applied Sciences<br>
<a href="https://www.has.nl/en/research/professorships/innovative-bio-monitoring-professorship/">Innovative
Biomonitoring research group</a><br>
<a href="https://www.has.nl/en/research/professorships/climate-robust-landscapes-professorship/">Climate-robust
<a href="https:ecodiv.earth">Paulo van Breugel</a>, <a
href="https://has.nl">HAS green academy</a>, <a
href="https://www.has.nl/en/research/professorships/innovative-bio-monitoring-professorship/">Innovative
Biomonitoring research group</a>, <a
href="https://www.has.nl/en/research/professorships/climate-robust-landscapes-professorship/">Climate-robust
Landscapes research group</a>
1 change: 1 addition & 0 deletions src/raster/r.maxent.train/r.maxent.train.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})",
Expand Down
14 changes: 5 additions & 9 deletions src/vector/v.maxent.swd/v.maxent.swd.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,9 @@ <h2>REFERENCES</h2>

<h2>AUTHOR</h2>

Paulo van Breugel, paulo at ecodiv.earth

<p>
HAS green academy University of Applied Sciences<br>
<a
href="https://www.has.nl/en/research/professorships/innovative-bio-monitoring-professorship/">Innovative
Biomonitoring research group</a><br>
<a
href="https://www.has.nl/en/research/professorships/climate-robust-landscapes-professorship/">Climate-robust
<a href="https:ecodiv.earth">Paulo van Breugel</a>, <a
href="https://has.nl">HAS green academy</a>, <a
href="https://www.has.nl/en/research/professorships/innovative-bio-monitoring-professorship/">Innovative
Biomonitoring research group</a>, <a
href="https://www.has.nl/en/research/professorships/climate-robust-landscapes-professorship/">Climate-robust
Landscapes research group</a>

0 comments on commit fecefcc

Please sign in to comment.