Skip to content

Commit

Permalink
Deploying to gh-pages from @ dfec554 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Oct 29, 2024
1 parent 5c3b42b commit 9e58b4e
Show file tree
Hide file tree
Showing 53 changed files with 1,377 additions and 2,057 deletions.
2 changes: 1 addition & 1 deletion .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: 76b75c114fb7887932de8bffe9513f43
config: 7c637663551ee65eff66a4e6ea97380d
tags: 645f666f9bcd5a90fca523b33c5a78b7
103 changes: 38 additions & 65 deletions _modules/ccc/calcfunctions.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@
document.documentElement.dataset.mode = localStorage.getItem("mode") || "";
document.documentElement.dataset.theme = localStorage.getItem("theme") || "";
</script>

<!-- Loaded before other Sphinx assets -->
<link href="../../_static/styles/theme.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
<link href="../../_static/styles/bootstrap.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
<link href="../../_static/styles/pydata-sphinx-theme.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
<!--
this give us a css class that will be invisible only if js is disabled
-->
<noscript>
<style>
.pst-js-only { display: none !important; }

</style>
</noscript>

<link href="../../_static/vendor/fontawesome/6.5.2/css/all.min.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="../../_static/vendor/fontawesome/6.5.2/webfonts/fa-solid-900.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="../../_static/vendor/fontawesome/6.5.2/webfonts/fa-brands-400.woff2" />
<link rel="preload" as="font" type="font/woff2" crossorigin href="../../_static/vendor/fontawesome/6.5.2/webfonts/fa-regular-400.woff2" />
<!-- Loaded before other Sphinx assets -->
<link href="../../_static/styles/theme.css?digest=26a4bc78f4c0ddb94549" rel="stylesheet" />
<link href="../../_static/styles/pydata-sphinx-theme.css?digest=26a4bc78f4c0ddb94549" rel="stylesheet" />

<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/styles/sphinx-book-theme.css?v=a3416100" />
Expand All @@ -35,10 +37,11 @@
<link rel="stylesheet" type="text/css" href="../../_static/sphinx-thebe.css?v=4fa983c6" />
<link rel="stylesheet" type="text/css" href="../../_static/sphinx-design.min.css?v=95c83b7e" />

<!-- So that users can add custom icons -->
<script src="../../_static/scripts/fontawesome.js?digest=26a4bc78f4c0ddb94549"></script>
<!-- Pre-loaded scripts that we'll load fully later -->
<link rel="preload" as="script" href="../../_static/scripts/bootstrap.js?digest=dfe6caa3a7d634c4db9b" />
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
<script src="../../_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>
<link rel="preload" as="script" href="../../_static/scripts/bootstrap.js?digest=26a4bc78f4c0ddb94549" />
<link rel="preload" as="script" href="../../_static/scripts/pydata-sphinx-theme.js?digest=26a4bc78f4c0ddb94549" />

<script src="../../_static/documentation_options.js?v=9eb32ce0"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
Expand All @@ -61,6 +64,7 @@
<link rel="search" title="Search" href="../../search.html" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="docsearch:language" content="en"/>
<meta name="docsearch:version" content="" />
</head>


Expand All @@ -76,36 +80,24 @@
<i class="fa-solid fa-arrow-up"></i>Back to top</button>


<input type="checkbox"
class="sidebar-toggle"
id="pst-primary-sidebar-checkbox"/>
<label class="overlay overlay-primary" for="pst-primary-sidebar-checkbox"></label>

<input type="checkbox"
class="sidebar-toggle"
id="pst-secondary-sidebar-checkbox"/>
<label class="overlay overlay-secondary" for="pst-secondary-sidebar-checkbox"></label>

<div class="search-button__wrapper">
<div class="search-button__overlay"></div>
<div class="search-button__search-container">
<dialog id="pst-search-dialog">

<form class="bd-search d-flex align-items-center"
action="../../search.html"
method="get">
<i class="fa-solid fa-magnifying-glass"></i>
<input type="search"
class="form-control"
name="q"
id="search-input"
placeholder="Search this book..."
aria-label="Search this book..."
autocomplete="off"
autocorrect="off"
autocapitalize="off"
spellcheck="false"/>
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form></div>
</div>
</form>
</dialog>

<div class="pst-async-banner-revealer d-none">
<aside id="bd-header-version-warning" class="d-none d-print-none" aria-label="Version warning"></aside>
Expand All @@ -123,7 +115,8 @@



<div class="bd-sidebar-primary bd-sidebar">
<dialog id="pst-primary-sidebar-modal"></dialog>
<div id="pst-primary-sidebar" class="bd-sidebar-primary bd-sidebar">



Expand Down Expand Up @@ -153,21 +146,17 @@


<img src="../../_static/ccc.png" class="logo__image only-light" alt="Cost-of-Capital-Calculator - Home"/>
<script>document.write(`<img src="../../_static/ccc.png" class="logo__image only-dark" alt="Cost-of-Capital-Calculator - Home"/>`);</script>
<img src="../../_static/ccc.png" class="logo__image only-dark pst-js-only" alt="Cost-of-Capital-Calculator - Home"/>


</a></div>
<div class="sidebar-primary-item">

<script>
document.write(`
<button class="btn search-button-field search-button__button" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
<i class="fa-solid fa-magnifying-glass"></i>
<span class="search-button__default-text">Search</span>
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span>
</button>
`);
</script></div>
<button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
<i class="fa-solid fa-magnifying-glass"></i>
<span class="search-button__default-text">Search</span>
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span>
</button></div>
<div class="sidebar-primary-item"><nav class="bd-links bd-docs-nav" aria-label="Main">
<div class="bd-toc-item navbar-nav active">

Expand Down Expand Up @@ -333,24 +322,16 @@



<script>
document.write(`
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button" title="light/dark" aria-label="light/dark" data-bs-placement="bottom" data-bs-toggle="tooltip">
<i class="theme-switch fa-solid fa-sun fa-lg" data-mode="light"></i>
<i class="theme-switch fa-solid fa-moon fa-lg" data-mode="dark"></i>
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto"></i>
</button>
`);
</script>
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button pst-js-only" aria-label="Color mode" data-bs-title="Color mode" data-bs-placement="bottom" data-bs-toggle="tooltip">
<i class="theme-switch fa-solid fa-sun fa-lg" data-mode="light" title="Light"></i>
<i class="theme-switch fa-solid fa-moon fa-lg" data-mode="dark" title="Dark"></i>
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto" title="System Settings"></i>
</button>


<script>
document.write(`
<button class="btn btn-sm pst-navbar-icon search-button search-button__button" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
<button class="btn btn-sm pst-navbar-icon search-button search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
<i class="fa-solid fa-magnifying-glass fa-lg"></i>
</button>
`);
</script>
</button>

</div></div>

Expand Down Expand Up @@ -379,10 +360,7 @@ <h1></h1>
<h1>Source code for ccc.calcfunctions</h1><div class="highlight"><pre>
<span></span><span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="kn">import</span> <span class="nn">pandas</span> <span class="k">as</span> <span class="nn">pd</span>
<span class="kn">from</span> <span class="nn">ccc.constants</span> <span class="kn">import</span> <span class="n">TAX_METHODS</span><span class="p">,</span> <span class="n">RE_ASSETS</span><span class="p">,</span> <span class="n">RE_INDUSTRIES</span>
<span class="kn">from</span> <span class="nn">ccc.utils</span> <span class="kn">import</span> <span class="n">str_modified</span>

<span class="n">ENFORCE_CHECKS</span> <span class="o">=</span> <span class="kc">True</span>
<span class="kn">from</span> <span class="nn">ccc.constants</span> <span class="kn">import</span> <span class="n">TAX_METHODS</span>


<div class="viewcode-block" id="update_depr_methods">
Expand Down Expand Up @@ -676,9 +654,6 @@ <h1>Source code for ccc.calcfunctions</h1><div class="highlight"><pre>
<span class="k">for</span> <span class="n">index</span><span class="p">,</span> <span class="n">element</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">ind_code</span><span class="p">)</span>
<span class="k">if</span> <span class="n">element</span> <span class="ow">in</span> <span class="n">re_credit</span><span class="p">[</span><span class="s2">&quot;By industry&quot;</span><span class="p">]</span><span class="o">.</span><span class="n">keys</span><span class="p">()</span>
<span class="p">]</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Keys = &quot;</span><span class="p">,</span> <span class="n">re_credit</span><span class="p">[</span><span class="s2">&quot;By industry&quot;</span><span class="p">]</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Ind idx = &quot;</span><span class="p">,</span> <span class="n">idx</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Dict = &quot;</span><span class="p">,</span> <span class="n">re_credit</span><span class="p">[</span><span class="s2">&quot;By industry&quot;</span><span class="p">],</span> <span class="n">re_credit</span><span class="p">)</span>
<span class="n">ind_code_idx</span> <span class="o">=</span> <span class="p">[</span><span class="n">ind_code</span><span class="p">[</span><span class="n">i</span><span class="p">]</span> <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="n">idx</span><span class="p">]</span>
<span class="n">re_credit_rate_ind</span><span class="p">[</span><span class="n">idx</span><span class="p">]</span> <span class="o">=</span> <span class="p">[</span>
<span class="n">re_credit</span><span class="p">[</span><span class="s2">&quot;By industry&quot;</span><span class="p">][</span><span class="n">ic</span><span class="p">]</span> <span class="k">for</span> <span class="n">ic</span> <span class="ow">in</span> <span class="n">ind_code_idx</span>
Expand All @@ -696,8 +671,6 @@ <h1>Source code for ccc.calcfunctions</h1><div class="highlight"><pre>
<span class="p">]</span>
<span class="c1"># take the larger of the two R&amp;E credit rates</span>
<span class="n">inv_tax_credit</span> <span class="o">+=</span> <span class="n">np</span><span class="o">.</span><span class="n">maximum</span><span class="p">(</span><span class="n">re_credit_rate_asset</span><span class="p">,</span> <span class="n">re_credit_rate_ind</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;RE_credit object =&quot;</span><span class="p">,</span> <span class="n">re_credit</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;inv_tax_credit object =&quot;</span><span class="p">,</span> <span class="n">inv_tax_credit</span><span class="p">)</span>
<span class="n">rho</span> <span class="o">=</span> <span class="p">(</span>
<span class="p">((</span><span class="n">r</span> <span class="o">-</span> <span class="n">pi</span> <span class="o">+</span> <span class="n">delta</span><span class="p">)</span> <span class="o">/</span> <span class="p">(</span><span class="mi">1</span> <span class="o">-</span> <span class="n">u</span><span class="p">))</span>
<span class="o">*</span> <span class="p">(</span><span class="mi">1</span> <span class="o">-</span> <span class="n">inv_tax_credit</span> <span class="o">*</span> <span class="n">nu</span> <span class="o">-</span> <span class="n">u_d</span> <span class="o">*</span> <span class="n">z</span> <span class="o">*</span> <span class="p">(</span><span class="mi">1</span> <span class="o">-</span> <span class="n">psi</span> <span class="o">*</span> <span class="n">inv_tax_credit</span><span class="p">))</span>
Expand Down Expand Up @@ -913,8 +886,8 @@ <h1>Source code for ccc.calcfunctions</h1><div class="highlight"><pre>
</div>

<!-- Scripts loaded after <body> so the DOM is not blocked -->
<script src="../../_static/scripts/bootstrap.js?digest=dfe6caa3a7d634c4db9b"></script>
<script src="../../_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b"></script>
<script defer src="../../_static/scripts/bootstrap.js?digest=26a4bc78f4c0ddb94549"></script>
<script defer src="../../_static/scripts/pydata-sphinx-theme.js?digest=26a4bc78f4c0ddb94549"></script>

<footer class="bd-footer">
</footer>
Expand Down
Loading

0 comments on commit 9e58b4e

Please sign in to comment.