Skip to content

Commit

Permalink
Automated doc build for refs/heads/main
Browse files Browse the repository at this point in the history
  • Loading branch information
PopSim-bot committed Dec 23, 2024
1 parent 0ccb01d commit a251821
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 29 deletions.
Binary file modified main/_images/sec_catalog_anapla_models_mallardblackduck_2l19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified main/_images/sec_catalog_homsap_models_outofafrica_2t12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified main/_images/sec_catalog_homsap_models_outofafrica_3g09.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified main/_images/sec_catalog_homsap_models_outofafrica_4j17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified main/_images/sec_catalog_homsap_models_papuansoutofafrica_10j19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified main/_images/sec_catalog_orysat_models_bottleneckmigration_3c07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified main/_images/sec_catalog_pantro_models_bonoboghost_4k19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified main/_images/sec_catalog_ponabe_models_twospecies_2l11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 20 additions & 13 deletions main/_sources/development.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1652,7 +1652,7 @@ Testing your DFE model and submitting a PR

After you finished your implementation, and specified all the
necessary citations,
we recommend that you run some basic local tests to see that
we recommend that you run some basic local checks to see that
the model was successfully loaded to ``stdpopsim``.
You may follow the process outlined for `Testing your demographic model and submitting a PR`_.

Expand All @@ -1667,24 +1667,31 @@ of the development team before it is fully incorporated into ``stdpopsim``.
This will likely require additional feedback from you,
so, stay tuned for discussion during the review process.

To facilitate this, there is one more step: please open a
`new issue <https://github.com/popsim-consortium/stdpopsim/issues/new>`__,
using the "DFE QC" template.
The template asks for the basic information that someone will need
to independently verify the implemented DFE.

---------------------
Reviewing a DFE model
---------------------

The review process for DFE models is currently being developed.
For now, we suggest that you
`open a new blank issue <https://github.com/popsim-consortium/stdpopsim/issues/new>`__
and specify the following information:
The process for reviewing a DFE is essentially the same
as for reviewing a demographic model (see `Overview of the stdpopsim review process`_).
Briefly, you will re-implement the DFE "blind", i.e., without looking at the DFE
implementation already added to the code.
Then, the unit tests check whether the implementations are equivalent.
To do this, you add your implementation to ``stdpopsim/qc/<SPECIES_ID>.py``,
followed by a call like

.. code-block:: python
1. **PR for new model:**
2. **Original paper:**
3. **Parameter values:**
4. **Potential issues:**
5. **QC'er requests:**
_species.get_dfe(_MODEL_ID_).register_qc(_your_review_function())
A reviewer will be assigned to check your implementation and approve it.
All discussion about the review can be conducted in the **QC issue**
mentioned above.
where ``_MODEL_ID_`` is the string specified as the ID for the original DFE,
and ``_your_review_function()`` is the function you've added to the QC file
that returns a DFE object.

****************
Coding standards
Expand Down
34 changes: 19 additions & 15 deletions main/development.html
Original file line number Diff line number Diff line change
Expand Up @@ -1582,7 +1582,7 @@ <h3>Coding the DFE model<a class="headerlink" href="#coding-the-dfe-model" title
<h3>Testing your DFE model and submitting a PR<a class="headerlink" href="#testing-your-dfe-model-and-submitting-a-pr" title="Permalink to this heading"></a></h3>
<p>After you finished your implementation, and specified all the
necessary citations,
we recommend that you run some basic local tests to see that
we recommend that you run some basic local checks to see that
the model was successfully loaded to <code class="docutils literal notranslate"><span class="pre">stdpopsim</span></code>.
You may follow the process outlined for <a class="reference internal" href="#testing-your-demographic-model-and-submitting-a-pr">Testing your demographic model and submitting a PR</a>.</p>
<p>Once you are convinced that the model was accurately implemented and loaded to <code class="docutils literal notranslate"><span class="pre">stdpopsim</span></code>,
Expand All @@ -1594,23 +1594,27 @@ <h3>Testing your DFE model and submitting a PR<a class="headerlink" href="#testi
of the development team before it is fully incorporated into <code class="docutils literal notranslate"><span class="pre">stdpopsim</span></code>.
This will likely require additional feedback from you,
so, stay tuned for discussion during the review process.</p>
<p>To facilitate this, there is one more step: please open a
<a class="reference external" href="https://github.com/popsim-consortium/stdpopsim/issues/new">new issue</a>,
using the “DFE QC” template.
The template asks for the basic information that someone will need
to independently verify the implemented DFE.</p>
</section>
<section id="reviewing-a-dfe-model">
<h3>Reviewing a DFE model<a class="headerlink" href="#reviewing-a-dfe-model" title="Permalink to this heading"></a></h3>
<p>The review process for DFE models is currently being developed.
For now, we suggest that you
<a class="reference external" href="https://github.com/popsim-consortium/stdpopsim/issues/new">open a new blank issue</a>
and specify the following information:</p>
<ol class="arabic simple">
<li><p><strong>PR for new model:</strong></p></li>
<li><p><strong>Original paper:</strong></p></li>
<li><p><strong>Parameter values:</strong></p></li>
<li><p><strong>Potential issues:</strong></p></li>
<li><p><strong>QC’er requests:</strong></p></li>
</ol>
<p>A reviewer will be assigned to check your implementation and approve it.
All discussion about the review can be conducted in the <strong>QC issue</strong>
mentioned above.</p>
<p>The process for reviewing a DFE is essentially the same
as for reviewing a demographic model (see <a class="reference internal" href="#overview-of-the-stdpopsim-review-process">Overview of the stdpopsim review process</a>).
Briefly, you will re-implement the DFE “blind”, i.e., without looking at the DFE
implementation already added to the code.
Then, the unit tests check whether the implementations are equivalent.
To do this, you add your implementation to <code class="docutils literal notranslate"><span class="pre">stdpopsim/qc/&lt;SPECIES_ID&gt;.py</span></code>,
followed by a call like</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">_species</span><span class="o">.</span><span class="n">get_dfe</span><span class="p">(</span><span class="n">_MODEL_ID_</span><span class="p">)</span><span class="o">.</span><span class="n">register_qc</span><span class="p">(</span><span class="n">_your_review_function</span><span class="p">())</span>
</pre></div>
</div>
<p>where <code class="docutils literal notranslate"><span class="pre">_MODEL_ID_</span></code> is the string specified as the ID for the original DFE,
and <code class="docutils literal notranslate"><span class="pre">_your_review_function()</span></code> is the function you’ve added to the QC file
that returns a DFE object.</p>
</section>
</section>
<section id="coding-standards">
Expand Down
2 changes: 1 addition & 1 deletion main/searchindex.js

Large diffs are not rendered by default.

0 comments on commit a251821

Please sign in to comment.