Skip to main content

Python programs for Rich Inman's PhD work involving the Coimbra Chamber at UCSD.

Project description

Build Status Code Coverage Badge License Badge

images/coimbra_ucsd_logo.png

Table of Contents

Description

Back to Table of Contents

Description will go here.

Installation

Run the following to install:

$ 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:

>>> 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

$ sudo launchctl load -F /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist

Stopping the mySQL service:

$ 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

images/chamber_iso_view.jpg images/chamber_scale.jpg images/chamber_profile.jpg images/chamber_optics.jpg

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coimbra_chamber-0.0.8-py3-none-any.whl (41.4 kB view details)

Uploaded Python 3

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

Hashes for coimbra_chamber-0.0.8.tar.gz
Algorithm Hash digest
SHA256 690a221147d21777fdcb64643cc06507e86ae8fc1b0887d6de1d51c9985a9d6b
MD5 619f0a5c1d48d47e1dd5efee1b18c930
BLAKE2b-256 9bfeef720c3ccf738d17c7648a71798eeacc49de6f6d1cd874d7702f063629ff

See more details on using hashes here.

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

Hashes for coimbra_chamber-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6b2b5259d02946e24907a15a94992b2d77b72b16da811d23955ab1d46cd8596d
MD5 619d88581cd1bcca7d8f1719aa7bc907
BLAKE2b-256 68857589618a8d926a08a2b25a1c381d016109952c17a69f4caa1c31ecd8875f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page