to
install numpy 1.2.0.
Try sentuser.py to make sure it runs properly. If not, contact me.
==
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7 N
:38 PM, josef.p...@gmail.com wrote:
On Tue, Sep 21, 2010 at 7:01 PM, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
I may have bounced a similar problem around here a few months ago, but
this one is a bit more important to get an answer for.
I'm about to distribute some report programs
How do I access 1.2 in such a way as to end up with a float? I keep
getting a matrix.
from numpy import matrix
m = matrix([[1.2],[2.3]])
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz
to access an
individual element:
In [1]: from numpy import matrix
In [2]: m = matrix([[1.2],[2.3]])
In [3]: m[0,0]
Out[3]: 1.2
-paul
-Original Message-
From: numpy-discussion-boun...@scipy.org
[mailto:numpy-discussion-boun...@scipy.org] On Behalf Of Wayne Watson
Sent: Tuesday
his subject well, then bringing some extra knowledge to
the process helps. As I understand it, he solves parameters in A, then
uses them in B, and so on. I guess that's a reasonable way to do it.
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015
Found hugin (google), but I think it's a bit too general for my current
interests. You might enjoy an optimization video course from Stanford
Univ on the web.
http://see.stanford.edu/see/lecturelist.aspx?coll=17005383-19c6-49ed-9497-2ba8bfcfe5f6
--
Wayne Watson (Watson Adventures
understand it, he solves parameters in A, then
uses them in B, and so on. I guess that's a reasonable way to do it.
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7 N, 121° 2' 32
in
numpy/scipy/scikits/IRAF/whatever.
Anne
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet
Science
/IRAF/whatever.
Anne
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet
Science and democracy
properties of an objective lens that may have non-linear features.
I can provide an excerpt from the paper, if the above is not clear.
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz
essentially no change?
Friedrich
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg
/scipy/scikits/IRAF/whatever.
Anne
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet
Science and democracy are based
Subject is a book title from some many years ago, I wonder if it ever
got to Python? I know there were C and Fortran versions.
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39
http://mail.scipy.org/mailman/listinfo/numpy-discussion
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA
On 5/28/2010 9:16 PM, David Goldsmith wrote:
On Fri, May 28, 2010 at 8:31 PM, Anne Archibald aarch...@physics.mcgill.ca
wrote:
On
28 May 2010 23:59, Wayne Watson sierra_mtnv...@sbcglobal.net
wrote:
That opened a few avenues. After reading this, I went on a merry
search with
Google. I
Is Subject method available in Python?
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet
There are no statues or memorials
-Newton when that is appropriate
to the problem.
Chuck
On Fri, May 28, 2010 at 12:36 PM, Wayne
Watson sierra_mtnv...@sbcglobal.net
wrote:
Is
Subject method available in Python?
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N
Suppose I have a 640x480 pixel video chip and would like to find star
images on it, possible planets and the moon. A possibility of noise
exits, or bright pixels. Is there a known method for finding the
centroids of these astro objects?
--
Wayne Watson (Watson Adventures, Prop
...@gmail.com wrote:
On Fri, May 28, 2010 at 5:45 PM, Wayne Watson sierra_mtnv...@sbcglobal.net
wrote:
Suppose I have a 640x480 pixel video chip and would like to find star
images on it, possible planets and the moon. A possibility of noise
exits, or bright pixels
]
On Behalf Of Wayne Watson
Sent: Friday, March 26, 2010 5:44 PM
To:mailto:numpy-discussion@scipy.org
numpy-discussion@scipy.orgmailto:numpy-discussion@scipy.org
Subject: [Numpy-discussion] Why this Difference in Importing NumPy 1.2 vs 1.4?
I wrote a program in Python 2.5 under Win7 and it runs
ages\scipy\stats\stats.py", line 191,
in module
import scipy.special as special
File "C:\Python25\lib\site-packages\scipy\special\__init__.py", line
22, in module
from numpy.testing import NumpyTest
ImportError: cannot import name NumpyTest
Comments?
--
Wayne Watso
describe below on the first
attempt. For
some reason unknown to me, it works on the second try.
Switching
to Numpy 1.3
is the best solution to the error.
-paul
From:
numpy-discussion-boun...@scipy.org
[mailto:numpy-discussion-boun...@scipy.org] On Behalf Of Wayne Watson
Sent
Google shows there is a mail list for SciPy, but when I go to the web
page it shows GMANE, and various feeds for SciPy-Dev and User. Maybe
I'm missing something?
Information about gmane.comp.python.scientific.user
The archive for this list can be read the following ways:
On the web, using
On 2/17/2010 10:00 PM, Scott Sinclair wrote:
On 18 February 2010 05:30, Wayne Watsonsierra_mtnv...@sbcglobal.net wrote:
...
I'm on win7's Add/Remove numpy. No scipy. I just checked the version via
import and it's 0.6.0.
You can download the latest NumPy and SciPy installers
I don't think I'm on the current version. Does it make sense to move ahead?
Is there a way to suppress the messages?
On 2/16/2010 9:25 PM, josef.p...@gmail.com wrote:
On Wed, Feb 17, 2010 at 12:10 AM, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
Hi, I'm working on a 1800+ line
On 2/16/2010 10:01 PM, Scott Sinclair wrote:
On 17 February 2010 07:25,josef.p...@gmail.com wrote:
On Wed, Feb 17, 2010 at 12:10 AM, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
Hi, I'm working on a 1800+ line program that uses tkinter. Here are the
messages I started getting
I normally use IDLE on Win, but recently needed to go to command prompt
to see all error messages. When I did, I was greeted by a host of
deprecation and Numpy messages before things got running. The program
otherwise functioned OK, after I found the problem I was after. Are
these messages a
\Wayne\Sandia_Meteors\Sentinel_Development\Development_Sentuser+
Utilities\sentuser\sentuser_20080716NoiseStudy7.py, line 1990, in Process
root.mainloop()
File C:\Python25\lib\lib-tk\Tkinter.py, line 1023, in mainloop
On 2/16/2010 4:32 PM, David Cournapeau wrote:
Hi Wayne,
Wayne Watson
books
I've used. I think I'll look at them again. Google didn't even show
anything.
Thanks for the response. I'll try to clear manually the locations we've
mentioned.
On 2/5/2010 9:01 PM, josef.p...@gmail.com wrote:
On Fri, Feb 5, 2010 at 10:37 PM, Wayne Watson
sierra_mtnv...@sbcglobal.net
See Subject.
I'm working in IDLE in Win7. It seems to me MPL gets stuck in
site-packages under C:\Python25. Maybe this is as simple as deleting the
entry?
Well, yes there's a MPL folder under site-packages and an info MPL file
of 540 bytes. There are also pylab.py, pyc,and py0 files under
I was just looking at the (Win) Python documentation via the Help on
IDLE, and a Global Module Index. Does anything like that exist for
numpy, matplotlib, scipy?
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std
for Box plots. I don't need to draw anything.
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet
I was thinking about how
Thanks. I'll give it a try. Is this something fairly new?
Robert Kern wrote:
On Fri, Jan 15, 2010 at 17:06, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
I have from about 90 to 600 points of different data sets that I would
like to find the 10th and 90th percentile for. Does
, NameError: global name 'cos' is not defined, but
the sin() above it does not? They are both built-in functions.
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7 N, 121° 2
:
On Mon, Dec 21, 2009 at 9:40 AM, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
In this code,
===start
import math
import numpy as np
from numpy import matrix
def sinD(D): # given in degrees, convert to radians
return sin(radians(D))
def cosD(D):
return cos(radians(D
to clear the namespace before it runs the program. If not, yikes!
Robert Kern wrote:
On Mon, Dec 21, 2009 at 11:40, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
In this code,
===start
import math
import numpy as np
from numpy import matrix
def sinD(D): # given in degrees
josef.p...@gmail.com wrote:
On Mon, Dec 21, 2009 at 6:11 PM, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
...
)
print np.sin(2.2)
I've been assuming that IDLE clears the namespace. It's quite possible
that I get anomalous results as I move between Run the program via
I may have inadvertently made a slip between using script versus shell.
What I'm getting at it that the namespace is the same for both the
editor window and shell window. I find that a little bizarre. I would
have expected each Run from the editor to clear all modules, and only
load those
Thanks, but I think I've got this under control now, and am moving on.
Robert Kern wrote:
On Mon, Dec 21, 2009 at 13:44, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
Yes, one can get both sin and cos via the interactive shell, if math is
imported as you have done.
However, I thought
I've just become acquainted with the help command in WinXP IDLE.
help(numyp.sin) works fine. What's going on with dot?
help(numpy.core.multiarray.dot)
Help on built-in function dot in module numpy.core.multiarray:
dot(...)
Is there help for dot?
--
Wayne Watson (Watson
1.2.0. Did you find the description in the reference manual?
Charles R Harris wrote:
On Sun, Dec 20, 2009 at 7:37 PM, Wayne Watson
sierra_mtnv...@sbcglobal.net mailto:sierra_mtnv...@sbcglobal.net
wrote:
I've just become acquainted with the help command in WinXP IDLE.
help
wrote:
On Sun, Dec 20, 2009 at 22:44, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
1.2.0. Did you find the description in the reference manual?
No, he found it using help(numpy.dot) using a more recent version of
numpy. I highly recommend upgrading.
--
Wayne Watson
drawn a distinction between dot
product and scalar product, that, when one is talking about
Euclidean vectors, just isn't there: in that context, they are one and
the same thing.
DG
On Fri, Dec 18, 2009 at 9:29 PM, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
I'll amend that. I
Dag Sverre Seljebotn wrote:
Wayne Watson wrote:
I'm trying to compute the angle between two vectors in three dimensional
space. For that, I need to use the scalar (dot) product , according to
a calculus book (quoting the book) I'm holding in my hands right now.
I've used dot
:
On 12/19/2009 11:45 AM, Wayne Watson wrote:
A 4x1, 1x7, and 1x5 would be examples of a 1D array or matrix, right?
Are you saying that instead of using a rotational matrix ...
that I should use a 2-D array for rotCW? So why does numpy have a matrix
class? Is the class only used when working
OK, so what's your recommendation on the code I wrote? Use shape 0xN?
Will that eliminate the need for T?
I'll go back to Tenative Python, and re-read dimension, shape and the like.
Charles R Harris wrote:
On Sat, Dec 19, 2009 at 9:45 AM, Wayne Watson
sierra_mtnv...@sbcglobal.net
That's for sure! :-)
Charles R Harris wrote:
On Sat, Dec 19, 2009 at 10:38 AM, Wayne Watson
sierra_mtnv...@sbcglobal.net mailto:sierra_mtnv...@sbcglobal.net
wrote:
Yes, flat sounds useful here. However, numpy isn't bending over
backwards to tie in conventional mathematical
live in.
Thanks to all on this thread.
Christopher Barker wrote:
Wayne Watson wrote:
Yes, flat sounds useful here. However, numpy isn't bending over
backwards to tie in conventional mathematical language into it.
exactly -- it isn't bending over at all! (well a little -- see below
Is it possible to calculate a dot product in numpy by either notation
(a ^ b, where ^ is a possible notation) or calling a dot function
(dot(a,b)? I'm trying to use a column matrix for both vectors.
Perhaps, I need to somehow change them to arrays?
--
Wayne Watson (Watson
That should do it. Thanks. How do I get the scalar result by itself?
Keith Goodman wrote:
On Fri, Dec 18, 2009 at 1:51 PM, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
Is it possible to calculate a dot product in numpy by either notation
(a ^ b, where ^ is a possible notation
Very good.
Is there a scalar product in numpy?
Keith Goodman wrote:
On Fri, Dec 18, 2009 at 2:51 PM, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
That should do it. Thanks. How do I get the scalar result by itself?
np.dot(x.T,x)[0,0]
14
or
x = np.array
to think it's a common enough need that there would be something
available like sumsq().
Keith Goodman wrote:
On Fri, Dec 18, 2009 at 3:22 PM, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
Is there a scalar product in numpy?
Isn't that the same thing as a dot product? np.dot doesn't
is very oriented towards vectors
and matrices. Surprisingly it doesn't seem to be available in numpy's
bag of tricks.
David Goldsmith wrote:
On Fri, Dec 18, 2009 at 3:40 PM, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
Well, they aren't quite the same. If a is the length of A, and b
)
ValueError: objects are not aligned
end msgs===
Why the msg? The types look alike and each array/matrix contains two
elements..
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time
Nicely done.
Alan G Isaac wrote:
On 12/18/2009 7:12 PM, Wayne Watson wrote:
The point of the scalar product is to produce theta.
As David said, that is just NumPy's `dot`.
a = np.array([0,2])
b = np.array([5,0])
theta = np.arccos(np.dot(a,b)/np.sqrt(np.dot(a,a)*np.dot(b,b
I'll amend that. I should have said, Dot's all folks. -- Bugs Bunny
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet
elements..
Chuck
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
--
Wayne Watson
a from as above to
get all the classes, does
it give all the capabilities that just using import numpy does?
Anne Archibald wrote:
2009/12/17 Wayne Watson sierra_mtnv...@sbcglobal.net:
I'm just getting used to the math and numpy library, and have begun
working on a problem
it works?
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet
350 350 350 350 350 350 350 350 350 350
David Goldsmith wrote:
On Fri, Nov 27, 2009 at 9:25 PM, Wayne Watson
sierra_mtnv...@sbcglobal.net mailto:sierra_mtnv...@sbcglobal.net
wrote:
I actually wrote my own several days ago. When I began getting myself
more familiar with numpy, I was hoping there would be an easy to use
How would I do that?
Anne Archibald wrote:
2009/11/28 Wayne Watson sierra_mtnv...@sbcglobal.net:
I was only illustrating a way that I would not consider, since the
hardware has already created the pdf. I've already coded it pretty much
as you have suggested. As I think I mention ed above
list?
There certainly is:
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
And yes, that is the place for such questions.
HTH,
-Chris
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std
,
I've all too often had to write my own histogram programs for this,
FORTRAN, etc. My data is from a 640x480 collection of b/w pixels, which
a processor has binned from 0-255, so I don't want repeat doing a
histogram on 307K data points.
Vincent Schut wrote:
Wayne Watson wrote:
I have
need to understand better. .
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet
350 350 350 350 350 350 350 350
Lots of good suggestions. I'll pull them into a document for further
reference.
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet
-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet
350 350 350 350 350 350 350 350 350 350
Make the number famous
How do I compute avg, std dev, min, max and other simple stats if I only
know the frequency distribution?
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7 N, 121° 2' 32 W
, the statistics are produced directly from it.
josef.p...@gmail.com wrote:
On Fri, Nov 27, 2009 at 9:47 PM, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
How do I compute avg, std dev, min, max and other simple stats if I only
know the frequency distribution?
If you are willing to assign
described in some detail? Normalized?
The histogram x-axis goes from 0 to 4.5. How does that happen?
Is v is two dimensional? What if it's one dimensional?
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time
josef.p...@gmail.com wrote:
On Thu, Nov 26, 2009 at 2:44 PM, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
I decided to try some example code from Subject.
import numpy
import pylab
# Build a vector of 1 normal deviates with variance 0.5^2 and mean 2
mu, sigma = 2, 0.5
v
I guess the answer is easy about why a plot is not produced. The remark
in the histogram line says this will not work in numpy. Oh, well.
Wayne Watson wrote:
josef.p...@gmail.com wrote:
On Thu, Nov 26, 2009 at 2:44 PM, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
I decided
move the drawing area slightly. Zoom,
pencil, seems pretty offbeat.
Pauli Virtanen wrote:
to, 2009-11-26 kello 15:08 -0800, Wayne Watson kirjoitti:
I guess the answer is easy about why a plot is not produced. The remark
in the histogram line says this will not work in numpy. Oh, well
I have a list that already has the frequencies from 0 to 255. However,
I'd like to make a histogram that has say 32 bins whose ranges are 0-7,
8-15, ... 248-255. Is it possible?
--
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N
josef.p...@gmail.com wrote:
On Thu, Nov 26, 2009 at 9:48 PM, josef.p...@gmail.com wrote:
On Thu, Nov 26, 2009 at 8:18 PM, Wayne Watson
sierra_mtnv...@sbcglobal.net wrote:
Yes, I'm just beginning to deal with the contents of NumPy, SciLab, and
SciPy. They all have seemed part
75 matches
Mail list logo