Skip to main content

A small example package

Project description

  • Summary:

    • This package includes codes and data for "Efficient Bayesian Inference on Quantile Spectral Analysis of Multivariate Stationary Time Series" by Zhixiong Hu and Raquel Prado.
    • The codes are written in Python 3.7.0 (suggested version >= 3.7).
    • Author: Zhixiong Hu
  • Set Up

    Note: If conda command is still unavailable in the terminal, please open Anaconda Navigator app (installed in the previous step) and open the terminal as following:

    image info

    • Open the terminal as in the previous step. To install the package, type 'pip install -i https://pypi.org/simple/ example-qspec==0.1.0' (or type 'pip install --upgrade example_qspec')
    • 'cd' to where the [packaging_tutorial/test] folder is located (set [test] as work directory)
  • Run Test Code:

    • In the [test] folder, [runbook_1.py] and [runbook_2.py] are runbooks to show how to use our approach to reproduce part of the results in the paper.
    • Use Anacoda Prompt command line, type 'python runbook_1.py' or 'python runbook_2.py' to run the test code.
    • The results will be stored (as .png files) in [test] folder.
    • The [test/utils] folder includes sample data used in the runbooks.
  • Use .npy data in R

    • All the data is stored as .npy files. To load .npy in R, use the following command:
# R code, please download reticulate R package first

library(reticulate)
np <- import("numpy")
array = np$load('test/utils/qvar1.npy') # specify where .npy is

Note We are actively updating the code. For example, currently the naming convention is messy. In the next step, we want to follow PeP-8 style to improve the readability and consistency of our Python code.

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

example_qspec-0.1.0.tar.gz (662.0 kB view hashes)

Uploaded Source

Built Distribution

example_qspec-0.1.0-py3-none-any.whl (12.1 kB view hashes)

Uploaded Python 3

Supported by

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