Coder Social home page Coder Social logo

astrolibpy's People

Watchers

 avatar

astrolibpy's Issues

readcol alternative?

Hi, I don't know if you use 'readcol' much in its current form, but if
you're interested I've found that this version of the code is pretty fast
and I believe it's robust:

http://casa.colorado.edu/~ginsbura/pyreadcol.htm

Adam

Original issue reported on code.google.com by keflavich on 14 Apr 2009 at 2:09

mpfit.py Numpy 'FutureWarning'

What steps will reproduce the problem?
1. Run mpfit.py

What is the expected output? What do you see instead?
Works at the moment but with 'FutureWarning'

What version of the product are you using? On what operating system?
Latest mpfit, AFAIK.  OS X 10.8.5 Enthought Canopy 64 bit Python (latest)

Please provide any additional information below.
Message says:

......./mpfit.py:1965: FutureWarning: Numpy has detected that you (may be) 
writing to an array returned
by numpy.diagonal or by selecting multiple fields in a record
array. This code will likely break in the next numpy release --
see numpy.diagonal or arrays.indexing reference docs for details.
The quick fix is to make an explicit copy (e.g., do
arr.diagonal().copy() or arr[['f0','f1']].copy()).

Original issue reported on code.google.com by [email protected] on 5 Oct 2013 at 1:41

mpfit bug when combining maxstepsize and fixed parameters

This line:
https://code.google.com/p/astrolibpy/source/browse/mpfit/mpfit.py#1206
should be 
whmax = (numpy.nonzero((qmax[ifree] != 0.) & (maxstep[ifree] > 0)))[0]


In current form, if any (but not all) parameters have a specified max step size 
and any are fixed, the wrong max step size will be used in the mrat check below.

Original issue reported on code.google.com by keflavich on 22 Mar 2015 at 12:58

bug in mpfit with analytical derivative ??

It seems that using mpfit, with "autoderivative=0" keyword, is not possible to 
run mpfit  properly.  I get always an error:

1) if in my function (as suggested in the header comments of mpfit.py) I return 
"[status, (y-model)/err, pderiv]",  the function fdjac2 say "ValueError: too 
many values to unpack". This is right because in fdjac2 it is expected to get 2 
arrays (and not 3).

2) if in my function I return "[status, pderiv]",  fdjac2 say " ERROR: 
Derivative matrix was not computed properly."  This is also right because the 
fdjac2 condition: 
"if len(fjac) != m*nall:" 
cannot be never reached.

So my question is: how use properly mpfit with autoderivative=0 ?
Is there an (explicit) example on how to use it?

Original issue reported on code.google.com by [email protected] on 7 May 2015 at 8:56

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.