Python programs for Rich Inman's PhD work involving the Coimbra Chamber at UCSD.
Project description
Coimbra Chamber
===============
|build| |codecov| |license|
.. image:: images/coimbra_ucsd_logo.png
Table of Contents
-----------------
* `Description`_
* `Installation`_
* `Getting Started`_
* `Python Version`_
* `MySQL Database`_
* `Preferred Way to Run Tests`_
* `Images`_
Description
-----------
Back to `Table of Contents`_
Description will go here.
Installation
------------
Run the following to install:
.. code-block:: bash
$ pip install coimbra_chamber
Getting Started
---------------
Back to `Table of Contents`_
We must configure our database before running any analysis:
First, we must decide if we want to use an in-memory SQLite database or point to an instance of a MySQL database.
Then we need to create a config file in our working directory to reflect our configuration.
Create a copy of the file `example-config.ini` from the repository and rename it to `config.ini`.
Move the `config.ini` file that we just created into your working directory and open the file.
Change database_type to `memory` if we chose an in-memory database above.
Otherwise, leave the database_type as `MySQL` and replace the `host`, `user`, and `password` fields with the host, username, and password for MySQL database we choose.
Then, to run an analysis:
.. code-block:: python
>>> import coimbra_chamber as cc
>>> manager = cc.DataManager()
>>> manager.run()
Follow the prompts in the terminal to complete your analysis.
Python Version
--------------
Back to `Table of Contents`_
This module is intended to use Python 3.6. and above.
MySQL Database
------------------------------------------
Back to `Table of Contents`_
NOTE: In order to run the integration tests, a local version of mySQL must be
installed and running.
On OSX you can run the following line to start the mySQL service after
installing from LINK
.. code-block:: bash
$ sudo launchctl load -F /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist
Stopping the mySQL service:
.. code-block:: bash
$ sudo launchctl unload -F /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist
Preferred Way to Run Tests
---------------------------
Back to `Table of Contents`_
1. From the repo directory; i.e., coimbra_chamber
.. code-block:: bash
$ python -m pytest tests -xv --cov=coimbra_chamber --cov-report html tests
The above line requires both `pytest` and `pytest-cov` are installed.
Images
------
Back to `Table of Contents`_
.. image:: images/chamber_iso_view.jpg
.. image:: images/chamber_scale.jpg
.. image:: images/chamber_profile.jpg
.. image:: images/chamber_optics.jpg
.. |build| image:: https://travis-ci.com/rinman24/coimbra_chamber.svg?branch=master
:alt: Build Status
:scale: 100%
:target: https://travis-ci.com/rinman24/coimbra_chamber
.. |codecov| image:: https://codecov.io/gh/rinman24/coimbra_chamber/branch/master/graph/badge.svg
:alt: Code Coverage Badge
:scale: 100%
:target: https://codecov.io/gh/rinman24/coimbra_chamber
.. |license| image:: https://img.shields.io/badge/License-MIT-yellow.svg
:alt: License Badge
:scale: 100%
:target: https://opensource.org/licenses/MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
coimbra_chamber-0.0.8.tar.gz
(58.7 kB
view details)
Built Distribution
File details
Details for the file coimbra_chamber-0.0.8.tar.gz
.
File metadata
- Download URL: coimbra_chamber-0.0.8.tar.gz
- Upload date:
- Size: 58.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 690a221147d21777fdcb64643cc06507e86ae8fc1b0887d6de1d51c9985a9d6b |
|
MD5 | 619f0a5c1d48d47e1dd5efee1b18c930 |
|
BLAKE2b-256 | 9bfeef720c3ccf738d17c7648a71798eeacc49de6f6d1cd874d7702f063629ff |
File details
Details for the file coimbra_chamber-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: coimbra_chamber-0.0.8-py3-none-any.whl
- Upload date:
- Size: 41.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b2b5259d02946e24907a15a94992b2d77b72b16da811d23955ab1d46cd8596d |
|
MD5 | 619d88581cd1bcca7d8f1719aa7bc907 |
|
BLAKE2b-256 | 68857589618a8d926a08a2b25a1c381d016109952c17a69f4caa1c31ecd8875f |