Skip to content

Commit b416696

Browse files
authored
Merge pull request #46 from CitrineInformatics/release/0.2.1
Maintenance release: Documentation and testing
2 parents 6a0f92c + 6e3a145 commit b416696

File tree

8 files changed

+622
-165
lines changed

8 files changed

+622
-165
lines changed

README.md

+15-12
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
# taurus
2-
Python binding for Citrine's nextgen data concepts (codename: taurus).
2+
Python binding for Citrine's nextgen data model (codename: taurus).
33

4+
This package provides a framework for storing information about the processes that create materials, the materials themselves, and measurements performed on those materials.
45

5-
Provides a framework for storing information about the processes that create materials, the materials themselves, and measurements performed on those materials.
6-
Detailed documentation of the next gen format can be found in the language-agnostic documentation.
6+
## Usage
7+
8+
To install `taurus`, you can simply:
9+
```
10+
$ pip install taurus-citrine
11+
```
712

8-
## Installation
13+
Documentation of this package can be found at https://citrineinformatics.github.io/taurus/
14+
Detailed documentation of the `taurus` data model can be found in the [language-agnostic documentation](https://citrineinformatics.github.io/taurus-documentation/).
15+
16+
## Developer instructions
917
To download the repo and install requirements, run
1018

1119
```pip install git+https://github.com/CitrineInformatics/taurus.git```
@@ -16,14 +24,9 @@ In order to assess coverage locally, run `pytest` with the following arguments:
1624
* `--cov-report term-missing` Prints line numbers for lines that are not executed (optional)
1725
* `--cov-report term:skip-covered` Skips output for modules with full coverage (optional)
1826
* `--cov-report xml` Saves coverage report to `coverage.xml` (optional)
19-
* `--cov-fail-under=85` Throws an error if coverage is less than 85% (optional)
27+
* `--cov-fail-under=100` Throws an error if coverage is less than 100% (optional)
2028

21-
The following command will run all tests, print line numbers for lines that are not executed, skip modules with full coverage, and fail if coverage is less than 85%:
22-
`python -m pytest --cov=taurus/ --cov-report term:skip-covered --cov-report term-missing --cov-fail-under=85`
29+
The following command will run all tests, print line numbers for lines that are not executed, skip modules with full coverage, and fail if coverage is less than 100%:
30+
`python -m pytest --cov=taurus/ --cov-report term:skip-covered --cov-report term-missing --cov-fail-under=100`
2331

24-
## Usage
25-
Ingester scripts are used to import real-world materials data.
26-
The results can then be serialized to JSON, and deserialized back into Taurus.
2732

28-
An example ingester can be found in `/taurus/ingest/material_run_example.py`, and code that feeds example data into the ingester is at `taurus/ingest/tests/test_material_run_example.py`.
29-
For details, see `taurus/ingest/readme.md`.

docs/source/depth/index.rst

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
======================
2+
In depth documentation
3+
======================
4+
5+
.. toctree::
6+
:maxdepth: 2
7+
8+
unit_parsing

docs/source/depth/unit_parsing.rst

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
==========================
2+
Unit Parsing
3+
==========================
4+
5+
Unit parsing is performed using the Pint_ package.
6+
By default, Pint supports a larger set of units than the Citrine Platform.
7+
Therefore, we include a custom unit definition file in Taurus: `citrine_en.txt`_.
8+
This file contains the most commonly used units and will grow over time.
9+
10+
Requests for support of additional units can be made by opening an issue in the `taurus repository`_ on github.
11+
12+
.. _Pint: https://pint.readthedocs.io/en/0.9/
13+
.. _citrine_en.txt: https://github.com/CitrineInformatics/taurus/blob/master/taurus/units/citrine_en.txt
14+
.. _taurus repository: https://github.com/CitrineInformatics/taurus

docs/source/index.rst

+3-5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
Welcome to the Taurus Documentation!
77
===================================================
88

9-
.. toctree::
10-
:maxdepth: 2
11-
:caption: Contents:
12-
139
Taurus is the Python implementation of the Citrine data model, the full documentation of which
1410
can be found `here <https://citrineinformatics.github.io/taurus-documentation/>`_.
1511

@@ -22,8 +18,10 @@ Table of Contents
2218
:maxdepth: 2
2319
:numbered: 4
2420

21+
depth/index
22+
2523
Indices and tables
26-
==================
24+
------------------
2725

2826
* :ref:`genindex`
2927
* :ref:`modindex`

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def run(self):
3636

3737

3838
setup(name='taurus-citrine',
39-
version='0.2.0',
39+
version='0.2.1',
4040
url='http://github.com/CitrineInformatics/taurus',
4141
description='Python library for the Citrine Platform',
4242
author='Max Hutchinson',

0 commit comments

Comments
 (0)