Skip to content

Commit

Permalink
Merge pull request #49 from GOBLIN-Proj/bug_fix
Browse files Browse the repository at this point in the history
bug fix zero vals
  • Loading branch information
colmduff committed May 14, 2024
2 parents 5d4bd1d + e4ef58f commit 6e7a182
Show file tree
Hide file tree
Showing 70 changed files with 156 additions and 158 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
project = 'Grassland Production, a GOBLIN module'
copyright = '2024, Colm Duffy'
author = 'Colm Duffy'
release = '0.3.3'
release = '0.3.4'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 1 addition & 1 deletion docs/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 3a9496e49c334b378fdc34c8a0934e5e
config: 4cf34a8c0d9de3a3ccebd393c78865d2
tags: 645f666f9bcd5a90fca523b33c5a78b7
4 changes: 2 additions & 2 deletions docs/html/CONTRIBUTING.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Contributing &mdash; Grassland Production, a GOBLIN module 0.3.3 documentation</title>
<title>Contributing &mdash; Grassland Production, a GOBLIN module 0.3.4 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
Expand All @@ -17,7 +17,7 @@

<script src="_static/jquery.js?v=5d32c60e"></script>
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="_static/documentation_options.js?v=d5a15cff"></script>
<script src="_static/documentation_options.js?v=1e28cc32"></script>
<script src="_static/doctools.js?v=888ff710"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="_static/js/theme.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions docs/html/INSTALLATION.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Installation &mdash; Grassland Production, a GOBLIN module 0.3.3 documentation</title>
<title>Installation &mdash; Grassland Production, a GOBLIN module 0.3.4 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
Expand All @@ -17,7 +17,7 @@

<script src="_static/jquery.js?v=5d32c60e"></script>
<script src="_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="_static/documentation_options.js?v=d5a15cff"></script>
<script src="_static/documentation_options.js?v=1e28cc32"></script>
<script src="_static/doctools.js?v=888ff710"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="_static/js/theme.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions docs/html/_modules/grassland_production/database.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>grassland_production.database &mdash; Grassland Production, a GOBLIN module 0.3.3 documentation</title>
<title>grassland_production.database &mdash; Grassland Production, a GOBLIN module 0.3.4 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
Expand All @@ -16,7 +16,7 @@

<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=d5a15cff"></script>
<script src="../../_static/documentation_options.js?v=1e28cc32"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
Expand Down
20 changes: 10 additions & 10 deletions docs/html/_modules/grassland_production/dry_matter.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>grassland_production.dry_matter &mdash; Grassland Production, a GOBLIN module 0.3.3 documentation</title>
<title>grassland_production.dry_matter &mdash; Grassland Production, a GOBLIN module 0.3.4 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
Expand All @@ -16,7 +16,7 @@

<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=d5a15cff"></script>
<script src="../../_static/documentation_options.js?v=1e28cc32"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
Expand Down Expand Up @@ -374,15 +374,15 @@ <h1>Source code for grassland_production.dry_matter</h1><div class="highlight"><
<span class="n">mask_validation</span> <span class="o">=</span> <span class="p">(</span><span class="n">baseline_animals_df</span><span class="p">[</span><span class="s2">&quot;year&quot;</span><span class="p">]</span> <span class="o">==</span> <span class="bp">self</span><span class="o">.</span><span class="n">calibration_year</span><span class="p">)</span> <span class="o">&amp;</span> <span class="p">(</span>
<span class="n">baseline_animals_df</span><span class="p">[</span><span class="s2">&quot;cohort&quot;</span><span class="p">]</span> <span class="o">==</span> <span class="n">animal_name</span><span class="p">)</span> <span class="o">&amp;</span> <span class="p">(</span><span class="n">baseline_animals_df</span><span class="p">[</span><span class="s2">&quot;mm_storage&quot;</span><span class="p">]</span> <span class="o">==</span> <span class="s2">&quot;tank liquid&quot;</span><span class="p">)</span> <span class="o">&amp;</span> <span class="p">(</span><span class="n">baseline_animals_df</span><span class="p">[</span><span class="s2">&quot;pop&quot;</span><span class="p">]</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">)</span>


<span class="n">past_total_dm_df</span><span class="o">.</span><span class="n">loc</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">calibration_year</span><span class="p">,</span> <span class="n">cohort</span><span class="p">]</span> <span class="o">+=</span> <span class="p">(</span>
<span class="bp">self</span><span class="o">.</span><span class="n">grass_feed_class</span><span class="o">.</span><span class="n">dry_matter_from_grass</span><span class="p">(</span>
<span class="n">animal_past</span><span class="p">,</span>
<span class="k">if</span> <span class="n">mask_validation</span><span class="o">.</span><span class="n">any</span><span class="p">():</span>
<span class="n">past_total_dm_df</span><span class="o">.</span><span class="n">loc</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">calibration_year</span><span class="p">,</span> <span class="n">cohort</span><span class="p">]</span> <span class="o">+=</span> <span class="p">(</span>
<span class="bp">self</span><span class="o">.</span><span class="n">grass_feed_class</span><span class="o">.</span><span class="n">dry_matter_from_grass</span><span class="p">(</span>
<span class="n">animal_past</span><span class="p">,</span>
<span class="p">)</span>
<span class="o">*</span> <span class="n">kg_to_t</span>
<span class="o">*</span> <span class="mi">365</span>
<span class="o">*</span> <span class="n">baseline_animals_df</span><span class="o">.</span><span class="n">loc</span><span class="p">[</span><span class="n">mask_validation</span><span class="p">,</span> <span class="s2">&quot;pop&quot;</span><span class="p">]</span><span class="o">.</span><span class="n">values</span><span class="o">.</span><span class="n">item</span><span class="p">()</span>
<span class="p">)</span>
<span class="o">*</span> <span class="n">kg_to_t</span>
<span class="o">*</span> <span class="mi">365</span>
<span class="o">*</span> <span class="n">baseline_animals_df</span><span class="o">.</span><span class="n">loc</span><span class="p">[</span><span class="n">mask_validation</span><span class="p">,</span> <span class="s2">&quot;pop&quot;</span><span class="p">]</span><span class="o">.</span><span class="n">values</span><span class="o">.</span><span class="n">item</span><span class="p">()</span>
<span class="p">)</span>
<span class="c1"># Process sheep</span>
<span class="k">for</span> <span class="n">landtype</span> <span class="ow">in</span> <span class="n">COHORTS</span><span class="p">[</span><span class="s2">&quot;sheep&quot;</span><span class="p">]</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
<span class="k">for</span> <span class="n">animal_name</span> <span class="ow">in</span> <span class="n">COHORTS</span><span class="p">[</span><span class="s2">&quot;sheep&quot;</span><span class="p">][</span><span class="n">landtype</span><span class="p">]:</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>grassland_production.farm_data_generation &mdash; Grassland Production, a GOBLIN module 0.3.3 documentation</title>
<title>grassland_production.farm_data_generation &mdash; Grassland Production, a GOBLIN module 0.3.4 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
Expand All @@ -16,7 +16,7 @@

<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=d5a15cff"></script>
<script src="../../_static/documentation_options.js?v=1e28cc32"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions docs/html/_modules/grassland_production/fertilisation.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>grassland_production.fertilisation &mdash; Grassland Production, a GOBLIN module 0.3.3 documentation</title>
<title>grassland_production.fertilisation &mdash; Grassland Production, a GOBLIN module 0.3.4 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
Expand All @@ -16,7 +16,7 @@

<script src="../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../_static/documentation_options.js?v=d5a15cff"></script>
<script src="../../_static/documentation_options.js?v=1e28cc32"></script>
<script src="../../_static/doctools.js?v=888ff710"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/js/theme.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>grassland_production.geo_grassland_production.catchment_grassland &mdash; Grassland Production, a GOBLIN module 0.3.3 documentation</title>
<title>grassland_production.geo_grassland_production.catchment_grassland &mdash; Grassland Production, a GOBLIN module 0.3.4 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
Expand All @@ -16,7 +16,7 @@

<script src="../../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../../_static/documentation_options.js?v=d5a15cff"></script>
<script src="../../../_static/documentation_options.js?v=1e28cc32"></script>
<script src="../../../_static/doctools.js?v=888ff710"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/js/theme.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>grassland_production.geo_grassland_production.geo_farm_data_generation &mdash; Grassland Production, a GOBLIN module 0.3.3 documentation</title>
<title>grassland_production.geo_grassland_production.geo_farm_data_generation &mdash; Grassland Production, a GOBLIN module 0.3.4 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
Expand All @@ -16,7 +16,7 @@

<script src="../../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../../_static/documentation_options.js?v=d5a15cff"></script>
<script src="../../../_static/documentation_options.js?v=1e28cc32"></script>
<script src="../../../_static/doctools.js?v=888ff710"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/js/theme.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>grassland_production.geo_grassland_production.geo_fertilisation &mdash; Grassland Production, a GOBLIN module 0.3.3 documentation</title>
<title>grassland_production.geo_grassland_production.geo_fertilisation &mdash; Grassland Production, a GOBLIN module 0.3.4 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
Expand All @@ -16,7 +16,7 @@

<script src="../../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../../_static/documentation_options.js?v=d5a15cff"></script>
<script src="../../../_static/documentation_options.js?v=1e28cc32"></script>
<script src="../../../_static/doctools.js?v=888ff710"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/js/theme.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>grassland_production.geo_grassland_production.geo_grass_yield &mdash; Grassland Production, a GOBLIN module 0.3.3 documentation</title>
<title>grassland_production.geo_grassland_production.geo_grass_yield &mdash; Grassland Production, a GOBLIN module 0.3.4 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
Expand All @@ -16,7 +16,7 @@

<script src="../../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../../_static/documentation_options.js?v=d5a15cff"></script>
<script src="../../../_static/documentation_options.js?v=1e28cc32"></script>
<script src="../../../_static/doctools.js?v=888ff710"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/js/theme.js"></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>grassland_production.geo_grassland_production.geo_grassland_output &mdash; Grassland Production, a GOBLIN module 0.3.3 documentation</title>
<title>grassland_production.geo_grassland_production.geo_grassland_output &mdash; Grassland Production, a GOBLIN module 0.3.4 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=80d5e7a1" />
<link rel="stylesheet" type="text/css" href="../../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../../_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
Expand All @@ -16,7 +16,7 @@

<script src="../../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../../_static/documentation_options.js?v=d5a15cff"></script>
<script src="../../../_static/documentation_options.js?v=1e28cc32"></script>
<script src="../../../_static/doctools.js?v=888ff710"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/js/theme.js"></script>
Expand Down
Loading

0 comments on commit 6e7a182

Please sign in to comment.