Skip to content

dalbandea/pyobs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build/Test Build Doc codecov License: GPL v2

A Python library to analyse data generated from (Monte Carlo) Markov chains.

If you use this library in your publications please consider citing:

Authors

Copyright (C) 2020, Mattia Bruno

Installation

To install the library directly in your local python distribution, simply run

pip install git+https://github.com/mbruno46/pyobs.git@master#egg=pyobs
# or for upgrading
pip install -U git+https://github.com/mbruno46/pyobs.git@master#egg=pyobs

After installation, pyobs can be imported like any other package

import pyobs
help(pyobs.observable)

The library can also be installed from a local clone of the repository in developer mode, as described in the documentation. Recompilation of the C++ extensions might be necessary in this case.

Example

import numpy
import pyobs

data = numpy.loadtxt('plaquette.dat')

plaq = pyobs.observable(description='the plaquette')
plaq.create('ensembleA',data)

# perform arbitrary operations
print(plaq, plaq**2)

logplaq = pyobs.log(plaq)

About

A Python library to analyse data generated from (Monte Carlo) Markov chains.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.5%
  • C++ 3.3%
  • Shell 0.2%