Skip to content

Commit

Permalink
Merge branch 'postgres_test_fix' into 'master'
Browse files Browse the repository at this point in the history
Modify tests to use Postgres, not SQL lite and update documentation and readme

Closes #173

See merge request mass-spectrometry/corems!137
  • Loading branch information
corilo committed Nov 14, 2024
2 parents b4d4c7e + c62789a commit 14c062a
Show file tree
Hide file tree
Showing 81 changed files with 85,380 additions and 79,781 deletions.
5 changes: 3 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ include:


services:
- postgres
- postgres:13

variables:
POSTGRES_DB: molformula
POSTGRES_USER: coremsdb
POSTGRES_PASSWORD: coremsmolform
POSTGRES_HOST_AUTH_METHOD: trust
COREMS_DATABASE_URL: postgresql://coremsdb:coremsmolform@localhost:5432/molformula
COREMS_DATABASE_URL: postgresql://coremsdb:coremsmolform@postgres:5432/molformula
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"

stages:
Expand All @@ -32,6 +32,7 @@ test-source:
- python3 -m pip install --upgrade pip
- python3 -m pip install -r requirements.txt
- python3 -m pip install pytest pytest-cov
- python3 -m pip install psycopg2
- python3 -c "import pathlib; [p.unlink() for p in pathlib.Path('.').rglob('tests/win_only/__init__.py')]"
- export PYTHONNET_RUNTIME=coreclr
- pytest --cache-clear
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<br>
<br>
<a href="https://doi.org/10.5281/zenodo.4641552"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.4641552.svg" alt="CoreMS DOI" style="width:150px"></a>
<a href="https://doi.org/10.5281/zenodo.14009575"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.14009575.svg" alt="DOI"></a>
<br>
</div>

Expand Down Expand Up @@ -337,9 +337,9 @@ If you use CoreMS in your work, please use the following citation:
Version [3.0.0 Release on GitHub](https://github.com/EMSL-Computing/CoreMS/releases/tag/v3.0.0), archived on Zenodo:
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.4641552.svg)](https://doi.org/10.5281/zenodo.4641552)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.14009575.svg)](https://doi.org/10.5281/zenodo.14009575)
Yuri E. Corilo, William R. Kew, Lee Ann McCue (2021, March 27). EMSL-Computing/CoreMS: CoreMS 2.0.1 (Version v2.0.1), as developed on Github. Zenodo. http://doi.org/10.5281/zenodo.4641552
Yuri E. Corilo, William R. Kew, Lee Ann McCue, Katherine R . Heal, James C. Carr (2024, October 29). EMSL-Computing/CoreMS: CoreMS 3.0.0 (Version v3.0.0), as developed on Github. Zenodo. http://doi.org/10.5281/zenodo.14009575
```
Expand Down
147 changes: 74 additions & 73 deletions docs/corems.html

Large diffs are not rendered by default.

508 changes: 257 additions & 251 deletions docs/corems/chroma_peak/calc/ChromaPeakCalc.html

Large diffs are not rendered by default.

3,708 changes: 1,892 additions & 1,816 deletions docs/corems/chroma_peak/factory/chroma_peak_classes.html

Large diffs are not rendered by default.

4,561 changes: 2,556 additions & 2,005 deletions docs/corems/encapsulation/constant.html

Large diffs are not rendered by default.

1,372 changes: 720 additions & 652 deletions docs/corems/encapsulation/factory/parameters.html

Large diffs are not rendered by default.

3,611 changes: 1,866 additions & 1,745 deletions docs/corems/encapsulation/factory/processingSetting.html

Large diffs are not rendered by default.

1,450 changes: 756 additions & 694 deletions docs/corems/encapsulation/input/parameter_from_json.html

Large diffs are not rendered by default.

402 changes: 201 additions & 201 deletions docs/corems/encapsulation/output/parameter_to_dict.html

Large diffs are not rendered by default.

858 changes: 479 additions & 379 deletions docs/corems/encapsulation/output/parameter_to_json.html

Large diffs are not rendered by default.

417 changes: 218 additions & 199 deletions docs/corems/mass_spectra/calc/GC_Calc.html

Large diffs are not rendered by default.

2,721 changes: 1,492 additions & 1,229 deletions docs/corems/mass_spectra/calc/GC_Deconvolution.html

Large diffs are not rendered by default.

128 changes: 72 additions & 56 deletions docs/corems/mass_spectra/calc/GC_RI_Calibration.html

Large diffs are not rendered by default.

6,261 changes: 3,130 additions & 3,131 deletions docs/corems/mass_spectra/calc/LC_Calc.html

Large diffs are not rendered by default.

1,208 changes: 591 additions & 617 deletions docs/corems/mass_spectra/calc/MZSearch.html

Large diffs are not rendered by default.

2,435 changes: 1,266 additions & 1,169 deletions docs/corems/mass_spectra/calc/SignalProcessing.html

Large diffs are not rendered by default.

3,230 changes: 1,705 additions & 1,525 deletions docs/corems/mass_spectra/factory/GC_Class.html

Large diffs are not rendered by default.

6,023 changes: 3,024 additions & 2,999 deletions docs/corems/mass_spectra/factory/LC_Class.html

Large diffs are not rendered by default.

135 changes: 69 additions & 66 deletions docs/corems/mass_spectra/factory/chromat_data.html

Large diffs are not rendered by default.

745 changes: 371 additions & 374 deletions docs/corems/mass_spectra/input/andiNetCDF.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/corems/mass_spectra/input/boosterHDF5.html
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ <h1 class="modulename">
</span><span id="L-210"><a href="#L-210"><span class="linenos">210</span></a><span class="sd"> Get the LCMS object.</span>
</span><span id="L-211"><a href="#L-211"><span class="linenos">211</span></a>
</span><span id="L-212"><a href="#L-212"><span class="linenos">212</span></a><span class="sd"> &quot;&quot;&quot;</span>
</span><span id="L-213"><a href="#L-213"><span class="linenos">213</span></a> <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">lcms</span><span class="p">)</span><span class="o">&gt;</span><span class="mi">0</span><span class="p">:</span>
</span><span id="L-213"><a href="#L-213"><span class="linenos">213</span></a> <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">lcms</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">:</span>
</span><span id="L-214"><a href="#L-214"><span class="linenos">214</span></a> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">lcms</span>
</span><span id="L-215"><a href="#L-215"><span class="linenos">215</span></a> <span class="k">else</span><span class="p">:</span>
</span><span id="L-216"><a href="#L-216"><span class="linenos">216</span></a> <span class="k">raise</span> <span class="ne">Exception</span><span class="p">(</span><span class="s2">&quot;Returning an empty LCMS class&quot;</span><span class="p">)</span>
Expand Down Expand Up @@ -532,7 +532,7 @@ <h1 class="modulename">
</span><span id="ReadHDF_BoosterMassSpectra-211"><a href="#ReadHDF_BoosterMassSpectra-211"><span class="linenos">211</span></a><span class="sd"> Get the LCMS object.</span>
</span><span id="ReadHDF_BoosterMassSpectra-212"><a href="#ReadHDF_BoosterMassSpectra-212"><span class="linenos">212</span></a>
</span><span id="ReadHDF_BoosterMassSpectra-213"><a href="#ReadHDF_BoosterMassSpectra-213"><span class="linenos">213</span></a><span class="sd"> &quot;&quot;&quot;</span>
</span><span id="ReadHDF_BoosterMassSpectra-214"><a href="#ReadHDF_BoosterMassSpectra-214"><span class="linenos">214</span></a> <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">lcms</span><span class="p">)</span><span class="o">&gt;</span><span class="mi">0</span><span class="p">:</span>
</span><span id="ReadHDF_BoosterMassSpectra-214"><a href="#ReadHDF_BoosterMassSpectra-214"><span class="linenos">214</span></a> <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">lcms</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">:</span>
</span><span id="ReadHDF_BoosterMassSpectra-215"><a href="#ReadHDF_BoosterMassSpectra-215"><span class="linenos">215</span></a> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">lcms</span>
</span><span id="ReadHDF_BoosterMassSpectra-216"><a href="#ReadHDF_BoosterMassSpectra-216"><span class="linenos">216</span></a> <span class="k">else</span><span class="p">:</span>
</span><span id="ReadHDF_BoosterMassSpectra-217"><a href="#ReadHDF_BoosterMassSpectra-217"><span class="linenos">217</span></a> <span class="k">raise</span> <span class="ne">Exception</span><span class="p">(</span><span class="s2">&quot;Returning an empty LCMS class&quot;</span><span class="p">)</span>
Expand Down Expand Up @@ -1000,7 +1000,7 @@ <h6 id="parameters">Parameters</h6>
</span><span id="ReadHDF_BoosterMassSpectra.get_lcms_obj-211"><a href="#ReadHDF_BoosterMassSpectra.get_lcms_obj-211"><span class="linenos">211</span></a><span class="sd"> Get the LCMS object.</span>
</span><span id="ReadHDF_BoosterMassSpectra.get_lcms_obj-212"><a href="#ReadHDF_BoosterMassSpectra.get_lcms_obj-212"><span class="linenos">212</span></a>
</span><span id="ReadHDF_BoosterMassSpectra.get_lcms_obj-213"><a href="#ReadHDF_BoosterMassSpectra.get_lcms_obj-213"><span class="linenos">213</span></a><span class="sd"> &quot;&quot;&quot;</span>
</span><span id="ReadHDF_BoosterMassSpectra.get_lcms_obj-214"><a href="#ReadHDF_BoosterMassSpectra.get_lcms_obj-214"><span class="linenos">214</span></a> <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">lcms</span><span class="p">)</span><span class="o">&gt;</span><span class="mi">0</span><span class="p">:</span>
</span><span id="ReadHDF_BoosterMassSpectra.get_lcms_obj-214"><a href="#ReadHDF_BoosterMassSpectra.get_lcms_obj-214"><span class="linenos">214</span></a> <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">lcms</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">:</span>
</span><span id="ReadHDF_BoosterMassSpectra.get_lcms_obj-215"><a href="#ReadHDF_BoosterMassSpectra.get_lcms_obj-215"><span class="linenos">215</span></a> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">lcms</span>
</span><span id="ReadHDF_BoosterMassSpectra.get_lcms_obj-216"><a href="#ReadHDF_BoosterMassSpectra.get_lcms_obj-216"><span class="linenos">216</span></a> <span class="k">else</span><span class="p">:</span>
</span><span id="ReadHDF_BoosterMassSpectra.get_lcms_obj-217"><a href="#ReadHDF_BoosterMassSpectra.get_lcms_obj-217"><span class="linenos">217</span></a> <span class="k">raise</span> <span class="ne">Exception</span><span class="p">(</span><span class="s2">&quot;Returning an empty LCMS class&quot;</span><span class="p">)</span>
Expand Down
Loading

0 comments on commit 14c062a

Please sign in to comment.