Skip to article frontmatterSkip to article content

morpc-py

Introduction

The MORPC data team maintains a package with contains commonly-used constants, mappings, and functions to allow for code-reuse in multiple scripts. The package documentation and code is available at the morpc-py repository in GitHub.

This package is still in development but will contain the following modules:

Installation

A version of the package is available via pip and can be installed by a standard pip install.

$ pip install morpc

Dev Install

As the package is still in development, the best way to install it is via the pip -editable option. To do so:

  1. Pull the most recent verision of the jordan_dev (branch name may change later) to a local repo.
  2. Using the following command to install an editable version, replacing the path to the correct location.
$ pip install -e "C:/path/to/folder/morpc-py/"

Import the package as normal

$ import morpc

To contribute to the development branch make changes in the local repo and push them to git. When making changes to the package, you will have to re-import the package. If you are working in a Jupyter environment you will have to do this after restarting the kernel.

Documentation

See docs for documentation.