Skip to content

Commit

Permalink
Merge pull request #66 from quant-aq/dhhagan-docs
Browse files Browse the repository at this point in the history
Updated docs to include google-ish formatted docstrings and improved guides
  • Loading branch information
dhhagan authored Jul 13, 2023
2 parents b87c92a + 1b3999d commit e929d72
Show file tree
Hide file tree
Showing 414 changed files with 37,677 additions and 391 deletions.
1 change: 0 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
source .venv/bin/activate
cd docs
make clean
make guides
make html
cd ..
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-and-report.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: run tests and report results
name: ci.tests
on: [pull_request, workflow_dispatch]
jobs:
tests:
Expand Down
69 changes: 30 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,19 @@
[![PyPI version](https://badge.fury.io/py/py-smps.svg)](https://badge.fury.io/py/py-smps)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Coverage Status](https://coveralls.io/repos/github/dhhagan/py-smps/badge.svg?branch=master)](https://coveralls.io/github/dhhagan/py-smps?branch=master)
[![ci.tests](https://github.com/quant-aq/py-smps/actions/workflows/test-and-report.yml/badge.svg)](https://github.com/quant-aq/py-smps/actions/workflows/test-and-report.yml)


# py-smps
Python library for the analysis and visualization of data from a Scanning Mobility Particle Sizer (SMPS) and other particle sizing instruments (SEMS, OPC's).

## Dependencies
py-smps is a Python data analysis library built for analyzing size-resolved aerosol data from a variety of aerosol sizing instruments (e.g., Scanning Mobility Particle Sizer, Optical Particle Counters).

The full list of dependencies can be found in the `pyproject.toml` file and are summarized below:

```py
python = ">=3.8, <3.12"
statsmodels = "^0.13"
seaborn = "^0.10"
joblib = "^1.0"
requests = "^2.24"
scipy = "^1.9"
numpy = "^1.23.2"
pandas = "^1.4"
```

As of `v1.2.0a0`, the library should be compatible with Apple silicone (tested on both M1 and M2).

## Python Versions
**NOTE: As of `v1.2.0`, the library is compatible with Apple silicone (M1, M2 chips).**

Python3.8 through Python3.11 are currently supported.
# Installation

## Installation

To install from PyPi:
Official releases of `py-smps` can be installed from [PyPI](https://pypi.org/project/py-smps/):

$ pip install py-smps [--upgrade]

Expand All @@ -40,39 +25,45 @@ To install the edge release directly from GitHub:

pip install git+https://github.com/quant-aq/py-smps.git

## Unittests
# Dependencies

Unittests can be run by issuing the following command from within the main repo:
## Supported Python versions
- Python 3.8+

```sh
$ poetry run pytest -s tests/ --ignore=tests/datafiles
```
## Mandatory Dependencies

The full list of dependencies can be found in the [`pyproject.toml`](pyproject.toml) file.

# Development

## Documentation
## Testing

Documentation is available [here](https://quant-aq.github.io/py-smps/). Docs are built using Sphinx and can be built locally by doing the following:
Tests can be run by issuing the following command from within the main repo:

```sh
$ cd docs/
$ make clean
$ make guides
$ make html
$ cd ..
$ poetry run pytest -s tests/ --ignore=tests/datafiles
```

Then, you can navigate to your local directory at `docs/_build/html/` and open up the `index.html` file in your preferred browser window.


## Contributing to Development

We welcome all contributions from the community in the form of issues reporting, feature requests, bug fixes, etc.

If there is a feature you would like to see or a bug you would like to report, please open an issue. We will try to get to things as promptly as possible. Otherwise, feel free to send PR's!


## Colorbar Information
# Documentation

Documentation is available [here](https://quant-aq.github.io/py-smps/). To build locally, you must first install [pandoc](https://pandoc.org/). Docs are built using Sphinx and can be built locally by doing the following:

```sh
# Activate the virtualenv
$ poetry shell

* [matplotlib colorbars](http://matplotlib.org/examples/color/colormaps_reference.html)
* [seaborn color palette](http://seaborn.pydata.org/tutorial/color_palettes.html)
# Build the docs
$ cd docs/
$ make clean
$ make html
$ cd ..
```

Then, you can navigate to your local directory at `docs/build/html/` and open up the `index.html` file in your preferred browser window.
24 changes: 24 additions & 0 deletions docs-archived/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: guides
guides:
make -C guides/
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs-archived/_build/doctrees/api/index.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs-archived/_build/doctrees/environment.pickle
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added docs-archived/_build/doctrees/index.doctree
Binary file not shown.
Binary file added docs-archived/_build/doctrees/usage/api.doctree
Binary file not shown.
Binary file added docs-archived/_build/doctrees/usage/guide.doctree
Binary file not shown.
4 changes: 4 additions & 0 deletions docs-archived/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +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: 88c7c1ce5590a768c17125b66aee50df
tags: 645f666f9bcd5a90fca523b33c5a78b7
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit e929d72

Please sign in to comment.