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

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file example_qspec-0.1.0.tar.gz.

File metadata

  • Download URL: example_qspec-0.1.0.tar.gz
  • Upload date:
  • Size: 662.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for example_qspec-0.1.0.tar.gz
Algorithm Hash digest
SHA256 96793a2f30a29d94d7b7e1a3eb191724bc8921a4aeaa604658b8923886861668
MD5 c6e1354397ff32ebf2672adc8c68c05b
BLAKE2b-256 0405ccb62f5ebefd03525feb17580cc1065e756f02108131baf419198ac6690d

See more details on using hashes here.

File details

Details for the file example_qspec-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: example_qspec-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for example_qspec-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc4908c0ebd77d5c54c4f7ecd46efc47935c36cda4e0ef099971747a6b616d6f
MD5 06c340b179d70d98ee4be44d85f2ab6f
BLAKE2b-256 bda5f620e453a892b9cfcdf3b31790488a026b923175effeb020b967b2fa4dad

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