Coder Social home page Coder Social logo

scipy.org's Introduction

scipy.org

The SciPy website is built on the scientific-python-hugo-theme and served using Hugo.

Build

After installing Hugo and Dart Sass, build locally:

git submodule update --init
make html

The pages are in public/.

To run the development server, which hosts the site and recompiles automatically on edits:

make serve

Team lists

To update the teams, the team_query.py provided by the theme is used. It needs a GitHub token with read:org permissions. The token has to be exported as GH_TOKEN.

GH_TOKEN=xxxxxxxxxx make teams

Analytics

The service Plausible.io is used to gather simple and privacy-friendly analytics for the site. The dashboard can be accessed here. The Scientific-Python community is managing the account.

scipy.org's People

Contributors

albi3ro avatar alexbrc avatar brettrmurphy avatar cam-gerlach avatar charris avatar dalito avatar dependabot[bot] avatar ev-br avatar gfyoung avatar ilayn avatar ivanbgd avatar jarrodmillman avatar jnothman avatar juliantaylor avatar ksurya avatar larsmans avatar marscher avatar matthew-brett avatar mattip avatar melissawm avatar mkg33 avatar pv avatar rgommers avatar scottza avatar stefanv avatar takluyver avatar teoliphant avatar tupui avatar tylerjereddy avatar xoviat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scipy.org's Issues

IPython FITS file plotting problem

Dear all,

I am facing a problem while running a script ( please find the attached files in the zip folder - I am attaching both the ipython notebook version and also the python script ).

I am trying to plot an array of values, write it into a FITS file format, read it back again and plot it ---> I don't get the same plots!

If you could please help me with this it would be great.

The following are the versions of my packages and compiler:

matplotlib : '2.0.0b1'

numpy : '1.11.0'

astropy : u'1.1.2'

python : 2.7

Sincerely,
Anik Halder
python_fits_file_problem.zip

Link Rot

Algorete Loopy link on install.rst is no longer working -- suggest removing it from the list

cKDTree

Hi all,
I have two array (A,B) containing: ID, x, y, z of the same number of points but slightly differents.
I would like to have an array in which each row has the ID x y z of the two nearest points of the two array.
At the moment I have this:

import numpy as np
from scipy.spatial import cKDTree
A = np.loadtxt('A.txt')
B = np.loadtxt('B.txt')
tree = cKDTree( B[:,[1,2,3]] )
d, inds = tree.query( A[:,[1,2,3]], k=1, p=np.inf, eps=0.0)
A_new = A[inds]
xyz_near = np.hstack(( B[:,0:4], A_new[:,0:4] ))

But the array "xyz_near" does not contain the right couple:
image
As you can see the first two row are right but not the next three.

If I do the same thing in matlab with dsearchn:
image
that is right.
I have tried to change p to 1, 2 and np.inf but same result.

Thanks

Updating the FAQ regarding FITS

FAQ, Section "I want to load data from a text file. How do I make this code more efficient?", regarding the FITS format: the pyfits package is no longer independently developed and has been subsumed into the astropy project.

Solving the Discrete Lyapunov Equation does not work with matrix input

Function scipy.linalg.solve_discrete_lyapunov does not work when the second argument (Right-hand side square matrix) is of type numpy.matrixlib.defmatrix.matrix. Example:

>>> from numpy import array, matrix
>>> from scipy.linalg import solve_discrete_lyapunov
>>> a = matrix([[0, 1],[-1/2, -1]])
>>> b = matrix([0, 3]).T
>>> solve_discrete_lyapunov(a, b*b.T)
Traceback (most recent call last):
  File "<ipython-input-244-c3af118b7628>", line 5, in <module>
    x = solve_discrete_lyapunov(a, b*b.T)
  File "C:\Miniconda3\lib\site-packages\scipy\linalg\_solvers.py", line 145, in solve_discrete_lyapunov
    x = solve(lhs, q.flatten())
  File "C:\Miniconda3\lib\site-packages\scipy\linalg\basic.py", line 80, in solve
    raise ValueError('incompatible dimensions')
ValueError: incompatible dimensions

Casting the second argument to an array (numpy.ndarray) solves the problem, but this is somewhat unexpected behaviour.

>>> solve_discrete_lyapunov(a, array(b*b.T))
array([[ 21.6, -14.4],
       [-14.4,  21.6]])

error in the doc of scipy.signal.convolve

Hi,

in the doc http://docs.scipy.org/doc/scipy/reference/tutorial/signal.html#filtering
for the function scipy.signal.convolve it says:

"If the flag has a value of ‘same’ then only the middle K values are returned starting at y[...] so that the output has the same length as the largest input"

But when I run it it seems that the output has the same length as the first input.

x = np.array([1.0, 2.0, 3.0])
h = np.array([0.0, 1.0, 0.0, 0.0, 0.0])

len(signal.convolve(h, x, 'same'))
5
len(signal.convolve(x, h, 'same'))
3

scipy.stats

hello, i use python 3.4. But when i use scipy.stats ,i am comfused to unable to load this ?

List of Scikits 404

scikits.appspot.com returns 404, so the list of scikits (scikits.appspot.com/scikits) cannot be accessed.

error in numpy mask doc

In http://docs.scipy.org/doc/numpy/reference/maskedarray.generic.html#the-numpy-ma-module
Indexing and slicing, the example is:

x = ma.array([1, 2, 3, 4, 5], mask=[0, 1, 0, 0, 1])
mx = x[:3]
mx
masked_array(data = [1 -- 3],
mask = [False True False],
fill_value = 999999)
mx[1] = -1
mx
masked_array(data = [1 -1 3],
mask = [False True False],
fill_value = 999999)

However, for mx, given we assigned mx[1] as -1 ,so the output is supposed to be unmasked for mx[1]. I tested it with Python 2.7.11, here is the output:

import numpy.ma as ma
x = ma.array([1, 2, 3, 4, 5], mask=[0, 1, 0, 0, 1])
mx = x[:3]
mx
masked_array(data = [1 -- 3],
mask = [False True False],
fill_value = 999999)

mx[1] = -1
mx
masked_array(data = [1 -1 3],
mask = [False False False],
fill_value = 999999)

mstats.mannwhitneyu and stats.mannwhitneyu return inconsistent pvalues

Assuming sample_population and base_population are masked arrays:

mstats.mannwhitneyu(sample_population, base_population)

and

stats.mannwhitneyu(sample_population.compressed(), base_population.compressed())

Return the same mann-whitney statistic but differing p-values. The pvalue from mstats is twice the pvalue from stats suggesting that the mstats implementation is returning a 2 sided pvalue while the stats implementation returns the 1-sided pvalue - but there's nothing in the scipy documentation to indicate that this is the case.

SSL certificate expired

The SSL certificate has expired today, now browsers display warnings when browsing the site

List of scikits page is broken

When accessing http://scikits.appspot.com/scikits I get

Traceback (most recent call last):
  File "/base/data/home/runtimes/python/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 715, in __call__
    handler.get(*groups)
  File "/base/data/home/apps/s~scikits-hrd/1.387270795685241486/scikits.py", line 207, in get
    packages = sorted(Package.packages().values())
  File "/base/data/home/apps/s~scikits-hrd/1.387270795685241486/scikits.py", line 326, in packages
    results = server.search(dict(name="scikit"))
  File "/base/data/home/runtimes/python/python_dist/lib/python2.5/xmlrpclib.py", line 1147, in __call__
    return self.__send(self.__name, args)
  File "/base/data/home/runtimes/python/python_dist/lib/python2.5/xmlrpclib.py", line 1437, in __request
    verbose=self.__verbose
  File "/base/data/home/apps/s~scikits-hrd/1.387270795685241486/tools.py", line 230, in request
    response.headers)
ProtocolError: <ProtocolError for pypi.python.org/pypi: 403 >

Unused variable declaration in generated f2pywrappers2

I am using f2py for a project where the coding standards forbid the declaration of unused variables. This is enforced by automated builds which consider warnings as errors. As such, I am prevented from successfully compiling the *-f2pywrappers2.f90 code due to the declaration of an unused variable.

The variable "j" is declared in the wrappers generated to provide the dimensions of arrays. The declaration comes in the form of "integer r,i,j" but "j" is never used. I have tracked this down to "numpy/f2py/f90mod_rules.py", specifically line 52 in numpy version 1.10.2, in the definition of "fgetdims1". The declaration seems to have existed since at least numpy version 1.4.1. Removal of the declaration of "j", while leaving "r" and "i", eliminates the unused variable warnings.

Improving topical software

The topical software page is a direct translation of a wiki page.

  • It is very long, and not very easy to read.
  • It is not regularly updated --- authors of some projects add their packages there, but this does not seem to occur very commonly.
  • It is far from comprehensive, not listing e.g. stuff on pypi

There are probably better ways to do it, potentially including
(i) splitting the long list to one metadata file per entry,
(ii) replacing sections by hierarchical tags,
(iii) automatically importing data from pypi (whole Science/Research category), using the local metadata for tagging.

Bounds not respected in scipy.optimize.minimize?

The following code did not produce the results that I expected. I don't know whether it's a bug or not, but I suspect that it is. Problematically (for me at least), the behavior is very different when undefined is set to None, 0.0, 1.0, etc. I expected that the bounds parameter would ensure that f(x) was not invoked with an invalid value of x. SLSQP is not the only minimizer that exhibits this problem, and other on the Internet appear to have received similar results.

import scipy.optimize
undefined = None
def f(x):
    if x > 1.0:
        print("x > 1.0, x=%12.10f" % x)
        return undefined
    print("f(%f)=1.0" % x)
    return 1.0
# The bounds are not properly respected!
print scipy.optimize.minimize(f, 1.0, method='SLSQP', bounds=[(0.0, 1.0)])

I don't necessarily expect a fix, I just wanted to report the issue.

Contact [email protected] not responsible

The contact: [email protected] listed at https://planet.scipy.org/ is not responsible.
Please update. I received this email:

-------- Forwarded Message --------
Subject: Fwd: http://wiki.scipy.org/Cookbook Forbidden
Date: Tue, 6 Oct 2015 11:41:22 +0300
From: Lisandro Dalcin [email protected]
To: Frank Breitling [email protected]

Dear Frank, I got two emails in the forward below, they may help you
to fix the issues in the scipy.org site.

---------- Forwarded message ----------
From: Brian Granger [email protected]
Date: 2 October 2015 at 22:01
Subject: Re: http://wiki.scipy.org/Cookbook Forbidden
To: Lisandro Dalcin [email protected]

Hi!

I think it is these folks:

Allen Parker [email protected] with a Cc to Didrik Pinte
[email protected]

Let me know if that doesn't work.

Cheers,

Brian

On Wed, Sep 30, 2015 at 12:56 PM, Lisandro Dalcin [email protected] wrote:

Dear Brian, how are you? I got the complaint I'm forwarding.

Basically, if you go to http://scipy.org/ and then you click in the
top-right icon (Blog), then you should be redirected to
https://planet.scipy.org/ , but the mpi4py docs show up. I have no
idea who is the admin of scipy.org these days, any tip about how to
proceed to get this fixed?

---------- Forwarded message ----------
From: Frank Breitling [email protected]
Date: 30 September 2015 at 14:16
Subject: Re: http://wiki.scipy.org/Cookbook Forbidden
To: Lisandro Dalcin [email protected]

Your name is the first thing that appears at

https://planet.scipy.org/

You get there when you click on Blogs from (top right) on

http://scipy.org/

Then you should get this changed as soon as possible.

On 29.09.2015 13:15, Lisandro Dalcin wrote:

On 28 September 2015 at 17:02, Frank Breitling [email protected] wrote:

Alright, but then why is your name listed instead of the admin?
Maybe you should have somebody change this.

Where is my name listed? I never had admin access to that server, I
only had user-level access to the subdomain http://mpi4py.scipy.org/,
which I'm no longer using and goes down time to time. That subdomain
is there just to host documentation about one of my projects, but I
never handled the "wiki" subdomain.

Did you try to send an email to the scipy mailing list?
http://www.scipy.org/scipylib/mailing-lists.html

Lisandro Dalcin

Research Scientist
Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)
Numerical Porous Media Center (NumPor)
King Abdullah University of Science and Technology (KAUST)
http://numpor.kaust.edu.sa/

4700 King Abdullah University of Science and Technology
al-Khawarizmi Bldg (Bldg 1), Office # 4332
Thuwal 23955-6900, Kingdom of Saudi Arabia
http://www.kaust.edu.sa

Office Phone: +966 12 808-0459

Brian E. Granger
Associate Professor of Physics and Data Science
Cal Poly State University, San Luis Obispo
@ellisonbg on Twitter and GitHub
[email protected] and [email protected]

citing.rst in wrong place

The citing.rst talks about citing all of the core projects, but is located under /scipylib/ which only applies to Scipy library.

matrix multiplication goes wrong

I tried to multiply two matrix, but the result is wrong.
Here is the instance I used:

public_base = np.matrix([[-1612927239, 1853012542, 1451467945], [-2137446623, 2455606985, 1923480029], [2762180674, -3173333120, -2485675809]])
original_signature = np.matrix([[87398273893], [763829184], [118237397273]])
point = public_base * original_signature

and the answer I got is
[[-4827367651133834946]
[ 5600303079090794586]
[ 426332741103555793]]

but since the correct answer is

1.0e+19 *

3.2066
4.2494
-5.4914

The icons at the top of the page are too close

On my version of Firefox, with slightly larger fonts, the text under the different icons is running together, and the icons themselves look squashed together with excess space on the margins.

UnivariateSpline: interpolator(a) raises error, but interpolator.integrate(a,b) does not

I would like to create an interpolator which also integrates. The UnivariateSpline class seems like a simple solution to this problem.

My problem is that I would like it to return nan values outside of the bbox range. I came up with a solution involving a try/except statement. This works for the original interpolator function, but not for its integral (!)

My hacky solution is to evaluate the interpolator to catch the error, but then evaluate the integral. This seems like a bug to me though, so I thought I would report it.

At the same time, I will ask if there is a better way to perform this operation.

x=np.r_[0:10:10j]
interpolator=UnivariateSpline(x, x, k=1, ext=2)
xNew=np.r_[5:15:10j]

integral=[]
for d in xNew:
    # fill extrapolated values with nan
    try:
        _=interpolator(d)
        integral.append(interpolator.integral(0,d))
    except ValueError:
        integral.append(np.nan)

Overloaded ‘isnan(double&)’ is ambiguous when compiling with gcc 4.8.1 -std=c++11

This may be a numpy issue rather than a scipy issue, nevertheless, when installing scipy with the command "sudo -H pip install" I get the following compilation error:

In file included from scipy/special/Faddeeva.cc:122:0:
scipy/special/Faddeeva.cc: In function ‘std::complex Faddeeva::erf(std::complex, double)’:
/usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_math.h:171:41: error: call of overloaded ‘isnan(double&)’ is ambiguous

System details:
Ubuntu 12.04.2 LTS
gcc (Ubuntu 4.8.1-2ubuntu1~12.04) 4.8.1
numpy.version = '1.10.1'

It appears numpy is trying to use the math.h version of isnan. I suspect somewhere else in the build process cmath.h has also been included resulting in the ambiguity.

Homepage not updated with recent news

I notice that there are commits for adding new news items for releases of e.g. scipy 0.17,
but they are not visible on the homepage itself. The latest news item there is from January 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.