Git Product home page Git Product logo

Comments (7)

dfm avatar dfm commented on August 17, 2024

Have you tried calling the acor function instead of the module? The usage is given here: https://github.com/dfm/acor#usage

from acor.

dfm avatar dfm commented on August 17, 2024

Also: I'd recommend checking out the autocorr module in emcee http://dan.iel.fm/emcee/current/api/#autocorrelation-analysis because it's a bit more reliable. acor will be marginally faster but it will probably only be worth it if you need to compute many autocorrelation times on datasets with billions of points.

from acor.

cmarsan avatar cmarsan commented on August 17, 2024

If I call the acor function, I get:
AttributeError: module 'acor' has no attribute 'acor'

from acor.

dfm avatar dfm commented on August 17, 2024

Sounds like it didn't get installed then. How did you install the package?

from acor.

cmarsan avatar cmarsan commented on August 17, 2024

pip install acor

from acor.

dfm avatar dfm commented on August 17, 2024

I dunno then. Try cloning from github and installing that way. No one has touched this project in 3 years so it's definitely use at your own risk! I'd still recommend the algorithm in emcee before this one.

from acor.

FrederikHeber avatar FrederikHeber commented on August 17, 2024

This is the same issue as #4. My workaround (for python3.5 and newer) is to replace in acor/acor.py

import _acor

by

import acor._acor as _acor

Then the acor function can be used after importing as import acor.acor as acor.

Seems the pip package installed by

pip3 install acor

(states to be acor-1.1.1) is out-dated, the Github code is more recent and fixes this?

from acor.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.