You can subscribe to this list here.
2000 |
Jan
(8) |
Feb
(49) |
Mar
(48) |
Apr
(28) |
May
(37) |
Jun
(28) |
Jul
(16) |
Aug
(16) |
Sep
(44) |
Oct
(61) |
Nov
(31) |
Dec
(24) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(56) |
Feb
(54) |
Mar
(41) |
Apr
(71) |
May
(48) |
Jun
(32) |
Jul
(53) |
Aug
(91) |
Sep
(56) |
Oct
(33) |
Nov
(81) |
Dec
(54) |
2002 |
Jan
(72) |
Feb
(37) |
Mar
(126) |
Apr
(62) |
May
(34) |
Jun
(124) |
Jul
(36) |
Aug
(34) |
Sep
(60) |
Oct
(37) |
Nov
(23) |
Dec
(104) |
2003 |
Jan
(110) |
Feb
(73) |
Mar
(42) |
Apr
(8) |
May
(76) |
Jun
(14) |
Jul
(52) |
Aug
(26) |
Sep
(108) |
Oct
(82) |
Nov
(89) |
Dec
(94) |
2004 |
Jan
(117) |
Feb
(86) |
Mar
(75) |
Apr
(55) |
May
(75) |
Jun
(160) |
Jul
(152) |
Aug
(86) |
Sep
(75) |
Oct
(134) |
Nov
(62) |
Dec
(60) |
2005 |
Jan
(187) |
Feb
(318) |
Mar
(296) |
Apr
(205) |
May
(84) |
Jun
(63) |
Jul
(122) |
Aug
(59) |
Sep
(66) |
Oct
(148) |
Nov
(120) |
Dec
(70) |
2006 |
Jan
(460) |
Feb
(683) |
Mar
(589) |
Apr
(559) |
May
(445) |
Jun
(712) |
Jul
(815) |
Aug
(663) |
Sep
(559) |
Oct
(930) |
Nov
(373) |
Dec
|
From: Travis O. <oli...@ie...> - 2006-08-11 01:45:16
|
Sebastian Haase wrote: > Hi, > Does numpy.ascontiguousarray(arr) "fix" the byteorder when arr is non-native > byteorder ? > > If not, what functions does ? > It can if you pass in a data-type with the right byteorder (or use a native built-in data-type). In NumPy, it's the data-type that carries the "byte-order" information. So, there are lot's of ways to "fix" the byte-order. Of course there is still the difference between "fixing" the byte-order and simply "viewing" the memory in the correct byte-order. The former physically flips bytes around, the latter just flips them on calculation and presentation. -Travis |
From: <hj...@to...> - 2006-08-11 01:34:15
|
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>无标题文档</title> <style type="text/css"> <!-- .td { font-size: 12px; color: #313131; line-height: 20px; font-family: "Arial", "Helvetica", "sans-serif"; } --> </style> </head> <body leftmargin="0" background="http://bo.sohu.com//images/img20040502/dj_bg.gif"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="31" background="http://igame.sina.com.cn/club/images/topmenu/topMenu_8.gif" class="td"><div align="center"><font color="#FFFFFF">主办单位:易腾企业管理咨询有限公司</font></div></td> </tr> </table> <br> <table width="684" border="0" align="center" cellpadding="0" cellspacing="0" height="1171"> <tr> <td height="71" bgcolor="#8C8C8C"> <div align="center"> <table width="100%" border="0" cellspacing="1" cellpadding="0" height="76"> <tr> <td height="74" bgcolor="#F3F3F3"><div align="center"> <span lang="zh-cn"><font size="6">运用EXCEL和PPT改进管理和经营决策</font></span></div></td> </tr> </table> </div></td> </tr> <tr> <td height="1095" bgcolor="#FFFFFF"> <div align="center"> <table width="99%" border="0" cellspacing="0" cellpadding="0" height="48"> <tr> <td width="17%" height="22" bgcolor="#BF0000" class="td"> <div align="center"><font color="#FFFFFF">[课 程 背 景]</font></div></td> <td width="83%" class="td" height="22"> </td> </tr> <tr> <td height="26" colspan="2" class="td"> <p ALIGN="JUSTIFY"><font LANG="ZH-CN"> <font size="2"> 不管您在什么岗位上工作,利用Excel电子表格进行数据分析几乎已经成为每个经理人的必备工具,无论您从事采购、销售、财务分析还是经营决策,电子表格能够帮助你筛选数据、分析数据并制作管理图表,Excel的各种财务函数为您进行本量利分析和经营决策提供了方便。如果你打算利用Excel提高工作质量和效率,运用Powerpoint制作优美的演示报告取得不同凡响的震撼效果,那么这个课程就是为你定制的。<br> <b>培 训 收 益:</b><br> 提高EXCEL和PPT实际操作能力,提高工作效率;<br> 掌握如何利用各种函数建立数学模型进行高效财务分析;<br> 掌握快速实现产品、客户分类的方法,使公司效益倍增;<br> 掌握建立多因素量本利敏感分析模型,使你直观地发现最佳盈利模式;<br> 掌握利用各种预测工具,寻找营销方案;<br> 掌握如何制作令老板满意的各类图表和管理报告。 </font> </font></td> </tr> </table> </div> <div align="center" style="width: 671; height: 1"> </div> <div align="center"> <table width="99%" height="84" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="17%" height="20" bgcolor="#0080C0" class="td"> <div align="center"><font color="#FFFFFF">[课 程 大 纲]</font></div></td> <td width="83%" class="td"> </td> </tr> <tr> <td height="64" colspan="2" class="td"> <p> <font size="2"><b>一、EXCEL和Powerpoint的操作技巧</b><br> 1 数据管理:<br> 数据格式、建立公式、数据编辑、图表制作、排序、筛选、分类汇总<br> 2 数据分析:<br> 数据透视表(图)、数据敏感分析、单变量求解、模拟运算表、规划求解<br> 3 不同类型报告的模版演示:<br> ①业绩报告;项目汇报、②财务报告、③动员与展望、④评审/评估报告<br> 4 图表应用的五个步骤:<br> 目标、主题、对比关系、数据、图表<br> 5 用PPT表达思想<br> 管理结构、工作流程、业绩趋势和分析、竞争对手的对比<br> 6 PPT与EXCEL,OUTLOOK的链接使用技巧<br> <br> <b>二、如何运用图表进行事务处理和工作报告</b><br> 怎样快速创建出你需要的图表<br> 如何创建动态图<br> 如何因地制宜地使用图表<br> 行政管理表格设计<br> 人力资源管理表格设计<br> 如何自动生成员工考核工资表<br> 企业销售业绩的图表表达<br> 产品市场占有率的图表表达<br> 如何运用EXCEL分析市场调查问卷<br> 如何运用EXCEL制作和分析销售报表<br> 如何运用EXCEL制作和分析财务报表<br> 人事、物料、财务数据库的链接和自动处理<br> <br> <b>三、如何运用EXCEL进行本量利分析和经营决策</b><br> 成本费用分析与管理<br> 销售业务管理与决策<br> 动态本量利模型分析<br> 固定资产折旧计算<br> 工资及个人所得税计算<br> 现金日报及现金流量表的编制<br> 由资产负债表自动生成现金流量表<br> 工资、固定资产投资、折旧方案筛选等实际运用模板建立和应用分析<br> 量本利分析、回归分析、方案预测、销售客户产品分析等实战演练<br> 定性指标的定量化分析技术应用的模拟演练<br> 运用数据透视表(图)进行经营分析的分析思路和模拟演练<br> 投资项目评价与决策<br> <br> <b>四、管理和经营报告</b><br> 用图片插入技术制作项目分析短片<br> 动画展示产品型号及功能<br> 市场分析及推广计划演示<br> 形象化的股东大会营运报告<br> 制作动感宣传片<br> 丰富多彩的可行性研究报告<br> <br> <b>五、案例分析和实例演练</b></font></p></td> </tr> </table> <table width="99%" height="84" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="17%" height="20" bgcolor="#0080C0" class="td"> <div align="center"><font color="#FFFFFF">[导 师 简 介]</font></div></td> <td width="83%" class="td"> </td> </tr> <tr> <td height="64" colspan="2" class="td"> <p> <font color="#FF0000"> </font><font size="2">Mr Wang ,管理工程硕士、高级经济师,国际职业培训师协会认证职业培训师,历任跨国公司工业工程经理、管理会计分析师、营运总监等高级管理职务多年,同时还担任 < 价值工程 > 杂志审稿人、辽宁省营口市商业银行独立董事等职务,对企业管理有较深入的研究。 王老师主要从事成本控制、财务管理、管理会计决策等课程的讲授,为 IBM 、 TDK 、松下、可口可乐、康师傅、汇源果汁、雪津啤酒、吉百利食品、冠捷电子、 INTEX 明达塑胶、正新橡胶、美国 ITT 集团、广上科技、美的空调、中兴通讯、京信通信、联想电脑,应用材料 ( 中国 ) 公司、艾克森 - 金山石化、中国化工进出口公司、正大集团大福饲料、厦华集团、灿坤股份、NEC 东金电子、太原钢铁集团、 PHILIPS 、深圳开发科技、大冷王运输制冷、三洋华强、 TCL 、美的汽车、上海贝尔阿尔卡特、天津扎努西、上海卡博特等知名企业提供项目辅导或专题培训。王老师授课经验丰富,风格幽默诙谐、逻辑清晰、过程互动,案例生动、深受学员喜爱。</font></p></td> </tr> </table> </div> <div align="center"> <table width="679" border="0" cellpadding="0" cellspacing="0" height="70"> <tr> <td width="132" height="24" bgcolor="#0080C0" class="td"> <div align="center"><font color="#FFFFFF">[时间/地点/联系方式]</font></div></td> <td width="546" class="td" height="24"> </td> </tr> <tr> <td height="46" colspan="2" class="td" width="679"> <p><font size="2"><b>时间:</b> 8月19-20日</font> <font size="2">(周六/日) 北京 1980/人<font face="宋体">(含课程费、教材、午餐等)</font> 四人以上参加,赠予一名名额</font></p> </td> </tr> </table> </div> <table width="678" height="45" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="25" class="td" width="676"> <font size="2"><b>报名/咨询:</b><font color="#000000"> </font>谢小姐 <font color="#000000">021-51187126</font><br> 注:如您不需要此邮件,请发送邮件至:ts...@to... 并在标题注明订退</font></td> </tr> </table> </td> </tr> </table> </body> </html> |
From: Sebastian H. <ha...@ms...> - 2006-08-11 00:42:54
|
Hi, Does numpy.ascontiguousarray(arr) "fix" the byteorder when arr is non-native byteorder ? If not, what functions does ? - Sebastian Haase |
From: Sebastian H. <ha...@ms...> - 2006-08-11 00:23:12
|
On Thursday 10 August 2006 16:57, Travis Oliphant wrote: > Sebastian Haase wrote: > > Hi, > > trying to convert my memmap - records - numarray code for reading a > > image file format (Mrc). > > There are 10 fields of strings (each 80 chars long) in the header: > > in numarray I used the format string '10a80' > > This results in a single <None> value in numpy. > > Same after changing it to '10S80'. > > > > Am I doing something wrong !? > > Not that I can see. But, it's possible that there is a > misunderstanding of what '10a80' represents. > > What is giving you the <None> value? > > For example, I can create a file with 10, 80-character strings and open it > using memmap and a data-type of > > dt = numpy.dtype('10a80') > > and it seems to work fine. > > -Travis This is what I get: It claims that the 'title' field (the last one) is 10 times 'S80' but trying to read that array from the first (and only) record (a.Mrc._hdrArray.title[0]) I just get None... >>> a=Mrc.bindFile('Heather2/GFPtublive-Vecta43') TODO: byteorder >>> repr(a.Mrc._hdrArray.dtype) 'dtype([('Num', '<i4', 3), ('PixelType', '<i4'), ('mst', '<i4', 3), ('m', '<i4', 3), ('d', '<f4', 3), ('angle', '<f4', 3), ('axis', '<i4', 3), ('mmm1', '<f4', 3), ('type', '<i2'), ('nspg', '<i2'), ('next', '<i4'), ('dvid', '<i2'), ('blank', '|i1', 30), ('NumIntegers', '<i2'), ('NumFloats', '<i2'), ('sub', '<i2'), ('zfac', '<i2'), ('mm2', '<f4', 2), ('mm3', '<f4', 2), ('mm4', '<f4', 2), ('ImageType', '<i2'), ('LensNum', '<i2'), ('n1', '<i2'), ('n2', '<i2'), ('v1', '<i2'), ('v2', '<i2'), ('mm5', '<f4', 2), ('NumTimes', '<i2'), ('ImgSequence', '<i2'), ('tilt', '<f4', 3), ('NumWaves', '<i2'), ('wave', '<i2', 5), ('zxy0', '<f4', 3), ('NumTitles', '<i4'), ('title', '| S80', 10)])' >>> a.Mrc._hdrArray.NumTitles [3] >>> a.Mrc._hdrArray.NumTitles[0] 3 >>> type(a.Mrc._hdrArray.title[0]) <type 'NoneType'> >>> type(a.Mrc._hdrArray.title[1]) Traceback (most recent call last): File "<input>", line 1, in ? File "/home/haase/qqq/lib/python/numpy/core/defchararray.py", line 45, in __getitem__ val = ndarray.__getitem__(self, obj) IndexError: index out of bounds I get the same on byteswapped data and non-byteswapped data. -Sebastian |
From: Sebastian H. <ha...@ms...> - 2006-08-10 23:43:12
|
Hi, trying to convert my memmap - records - numarray code for reading a image file format (Mrc). There are 10 fields of strings (each 80 chars long) in the header: in numarray I used the format string '10a80' This results in a single <None> value in numpy. Same after changing it to '10S80'. Am I doing something wrong !? Thanks, Sebastian Haase |
From: Travis O. <oli...@ie...> - 2006-08-10 20:22:26
|
Sasha wrote: > I see that Travis just fixed that by making context optional > <http://projects.scipy.org/scipy/numpy/changeset/2987>. I am not sure > it is a good idea to allow use of ufuncs for which domain is not > defined in ma. This may lead to hard to find bugs coming from ma > arrays with nans in the data. I would rather see linalg passing the > (func,args) context to wrap. That would not fix the reported problem, > but will make diagnostic clearer. > > This can be done as well. The problem is that __array_wrap__ is used in quite a few places (without context) and ma needs to have a default behavior when context is not supplied. -Travis |
From: Sasha <nd...@ma...> - 2006-08-10 20:07:19
|
I see that Travis just fixed that by making context optional <http://projects.scipy.org/scipy/numpy/changeset/2987>. I am not sure it is a good idea to allow use of ufuncs for which domain is not defined in ma. This may lead to hard to find bugs coming from ma arrays with nans in the data. I would rather see linalg passing the (func,args) context to wrap. That would not fix the reported problem, but will make diagnostic clearer. On 8/10/06, Daran L. Rife <dr...@uc...> wrote: > Hi Sasha, > > > Inverting a matrix with masked values does not make much sense. Call > > "filled" method with an appropriate fill value before passing the > > matrix to "inv". > > In principle you are right, but even though I use masked arrays > in this operation, when the operation itself is done no masked > values remain. Thus, my code works very well with the "old" > Numeric--and has worked well for some time. That said, I will > try your suggestion of doing a "filled" on the matrix before > sending it off to the inverse module. > > > Thanks, > > > Daran > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Numpy-discussion mailing list > Num...@li... > https://lists.sourceforge.net/lists/listinfo/numpy-discussion > |
From: Daran L. R. <dr...@uc...> - 2006-08-10 19:33:59
|
Hi Sasha, > Inverting a matrix with masked values does not make much sense. Call > "filled" method with an appropriate fill value before passing the > matrix to "inv". In principle you are right, but even though I use masked arrays in this operation, when the operation itself is done no masked values remain. Thus, my code works very well with the "old" Numeric--and has worked well for some time. That said, I will try your suggestion of doing a "filled" on the matrix before sending it off to the inverse module. Thanks, Daran |
From: Travis O. <oli...@ie...> - 2006-08-10 19:10:56
|
I've just finished a first version of the numarray compatibility module. It does not include all the names from the numarray name-space but it does include the most important ones, I believe. It also includes a slightly modified form of the numarray type-objects so that NumPy can recognize them as dtypes. I do not have a lot of code to test the compatibility layer with so any help will be appreciated. The compatibility layer still requires changes to certain methods and attributes on arrays. This is performed by the alter_code1.py module which I will be finishing over the next few hours. Once that is ready (and I've updated NumPy to work with the latest version of Python 2.5 in SVN) I want to make a 1.0b2 release (no later than Friday). I would appreciate it if several people could test the current SVN version of NumPy. In order to support several of the features of NumArray that I had missed, I engaged in a marathon coding sprint last night from about 6:00pm to 6:00am during which time I added output arguments to many of the functions in NumPy, and a clipmode argument to several others. I also added the C-API functions PyArray_OutputConverter and PyArray_ClipmodeConverter to make it easy to get these arguments from Python to C. This caused a change in the C-API that will require re-compilation for 1.0b2. I'm sorry about that. I'm really pushing for stability on the C-API. Now that the numarray compatibility module is complete, I'm more confident that we won't need anymore changes to the C-API for version 1.0. Of course, only when numpy 1.0final comes out will that be a guarantee. While I'm relatively confident about the changes to NumPy, the changes were extensive enough that more testing is warranted including another round of Valgrind tests. Unit-tests written to take advantage of the new output arguments on several of the functions (take, put, compress, clip, conjugate, argmax, argmin, and any function based on a ufunc method -- like sum, product, any, all, etc.) are particularly needed. If serious problems are discovered, then the 1.0b2 might be delayed again, but I'm really pushing to get 1.0b2 out the door soon. The numarray compatibility module and the oldnumeric compatibility module should hopefully help people adapt their code more quickly to NumPy. It's not fool-proof, though, so the best strategy is still to write to NumPy :-) as soon as you can. -Travis |
From: Sasha <nd...@ma...> - 2006-08-10 18:41:36
|
Inverting a matrix with masked values does not make much sense. Call "filled" method with an appropriate fill value before passing the matrix to "inv". On 8/10/06, Daran L. Rife <dr...@uc...> wrote: > Hello, > > I am a veteran user of Numeric and am trying > out the latest version of numpy (numpy 1.01b) > on Mac OS X 10.4 Tiger (8.7.0). > > When trying to invert a matrix with > numpy.linalg.inv I get the following error: > > ----> > > Traceback (most recent call last): > File "./bias_correction.py", line 381, in ? > if __name__ == "__main__": main() > File "./bias_correction.py", line 373, in main > (index_to_stnid, bias_and_innov) = calc_bias_and_innov(cf, stn_info, > obs, infile_obs, grids, infile_grids) > File "./bias_correction.py", line 297, in calc_bias_and_innov > K = make_kalman_gain(R, P_local, H) > File "./bias_correction.py", line 157, in make_kalman_gain > K = MA.dot( MA.dot(P, MA.transpose(H)), inv(MA.dot(H, MA.dot(P, > MA.transpose(H))) + R ) ) > File "/opt/python/lib/python2.4/site-packages/numpy/linalg/linalg.py", > line 149, in inv > return wrap(solve(a, identity(a.shape[0], dtype=a.dtype))) > TypeError: __array_wrap__() takes exactly 3 arguments (2 given) > > <---- > > Is this a known problem, and if so, what is the fix? > > > Thanks very much, > > > Daran > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Numpy-discussion mailing list > Num...@li... > https://lists.sourceforge.net/lists/listinfo/numpy-discussion > |
From: David M. C. <co...@ph...> - 2006-08-10 18:22:40
|
On Thu, 10 Aug 2006 07:33:44 -0600 (MDT) "Daran L. Rife" <dr...@uc...> wrote: > Hello, > > I am a veteran user of Numeric and am trying > out the latest version of numpy (numpy 1.01b) > on Mac OS X 10.4 Tiger (8.7.0). > > When trying to invert a matrix with > numpy.linalg.inv I get the following error: > > ----> > > Traceback (most recent call last): > File "./bias_correction.py", line 381, in ? > if __name__ == "__main__": main() > File "./bias_correction.py", line 373, in main > (index_to_stnid, bias_and_innov) = calc_bias_and_innov(cf, stn_info, > obs, infile_obs, grids, infile_grids) > File "./bias_correction.py", line 297, in calc_bias_and_innov > K = make_kalman_gain(R, P_local, H) > File "./bias_correction.py", line 157, in make_kalman_gain > K = MA.dot( MA.dot(P, MA.transpose(H)), inv(MA.dot(H, MA.dot(P, > MA.transpose(H))) + R ) ) > File "/opt/python/lib/python2.4/site-packages/numpy/linalg/linalg.py", > line 149, in inv > return wrap(solve(a, identity(a.shape[0], dtype=a.dtype))) > TypeError: __array_wrap__() takes exactly 3 arguments (2 given) > > <---- > > Is this a known problem, and if so, what is the fix? It looks like the problem is that numpy.core.ma.MaskedArray.__array_map__ expects a "context" argument, but none gets passed. I'm not familiar with that, so I don't know what the fix is ... -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |co...@ph... |
From: Bryce H. <bhe...@en...> - 2006-08-10 16:51:24
|
For those not able to make SciPy 2006 next week, or who would like to download the ISO a few days early, its available at http://code.enthought.com/downloads/scipy2006-i386.iso.torrent. We squashed a lot onto the CD, so I also had to trim > 100 MB of packages that ship with the standard Ubuntu CD. Here's what I was able to add: * SciPy build from svn (Wed, 12:00 CST) * NumPy built from svn (Wed, 12:00 CST) * Matplotlib built from svn (Wed, 12:00 CST) * IPython built from svn (Wed, 12:00 CST) * Enthought built from svn (Wed, 16:00 CST) * ctypes 1.0.0 * hdf5 1.6.5 * networkx 0.31 * Pyrex 0.9.4.1 * pytables 1.3.2 All of the svn checkouts are zipped in /src, if you'd like to build from a svn version newer than what was shipped, simple copy the compressed package to your home dir, uncompress it, run "svn upate", and built it. Please note: This ISO was built rather hastily, uses un-official code, and received very little testing. Please don't even consider using this in a production environment. Bryce |
From: Hanno K. <kl...@ph...> - 2006-08-10 16:50:43
|
Hi Daran, I fortunately never had the need to run different versions in parallel, so I basically removed the earlier versions of numpy. However, as you possibly know, you can build wrapper functions for fortran code with f2py (which is now shipped with numpy). And that is where I got the segfault behaviour: I had a module compiled for numpy 0.9.6 and then tried to use it with numpy 1.0b. Therefore I thought if you have similar stuff running on your machine that might be a reason. The obvious solution is to recompile the fortran code with the newer version of f2py. But fom what you write, your problem seems to be different. Regards, Hanno "Daran L. Rife" <dr...@uc...> said: > Hi Hanno, > > > I had a similar behaviour when I tried to use module compield with an > > older f2py with a newer version of numpy. So is it maybe possible that > > some *.so files are used from an earlier build? > > > Many thanks for the reply. This was my first attempt > to build and use numpy; I have no previous version. > May I ask how you specificlly solved the problem > on your machine? > > Thanks, > > Daran > > -- > > -- Hanno Klemm kl...@ph... |
From: Daran L. R. <dr...@uc...> - 2006-08-10 16:36:23
|
Hi Chris, Thanks very much for your reply. My apology for the confusion. To be clear, I am a veteran user of Numeric not numpy. I tried installing four versions of Numeric: 23.8, 24.0, 24.1, and 24.2. My Python distro is built from source, using the GCC 4.0.1 suite of compilers. I am running all of this on a Mac G5 PowerPC with Mac OS X 10.4 Tiger (8.7.0). All branches of Numeric 24.x cause a "Segmentation Fault". The scripts I was running this against are a bit complex, so it is not so easy for me to sort out when/where the failure occurs. I'll keep doing some testing and see if I can get a better idea for what seems to be the issue. I'd very like much like to move to numpy, but I have code that needs to be working -now-, so at this point I am more interested in Numeric; I am an adept user of Numeric, and I know it works well on Debian Linux boxes. I will try your suggestion of installing and running the pre-built packages at <http://www.pythonmac.org/packages/py24-fat/>. Thanks again for your patience and for your help. Daran -- > Daran L. Rife wrote: >> Many thanks for the reply. This was my first attempt >> to build and use numpy; > > "numpy" used to be a generic name for the Numerical extensions to > Python. Now there are three versions: > > "Numeric": The original, now at version 24.2 This is probably the last > version that will be produced. > > "numarray": This was designed to be the "next generation" array package. > It has some nice additional features that Numeric does not have, but is > missing some as well. It is at version 1.5.1. it may see some bug fix > releases in the future, but probably won't see any more major development. > > "numpy": this is the "grand unification" array package. It is based on > the Numeric code base, and is designed to have the best features of > Numeric and numarray, plus some extra good stuff. It is now at version > 1.0beta, with an expected release date for 1.0final sometime this fall. > It is under active development, the API is pretty stable now, and it > appears to have the consensus of the numerical python community as the > "way of the future" > > I wrote all that out so that you can be clear which package you are > having trouble with -- you've used both the term "Numeric" and "numpy" > in your posts, and there is some confusion. > > If you are working on a project that does not need to be released for a > few months (i.e. after numpy has reached 1.0 final), I'd use numpy, > rather than Numeric or numarray. > > Also: on OS-X, there are far to many ways to build Python. When you > report a problem, you need to define exactly which python build you are > using, and this goes beyond python version -- fink? darwinports? > built-it-from-source? Framework? Universal, etc... > > The MacPython community is doing it's best to standardize on the > Universal Build of 2.4.3 that you can find here: > > http://www.pythonmac.org/packages/py24-fat/ > > There you will also find pre-built packages for Numeric24.2, > numarray1.5.1, and numpy0.9.8 > > Have you tried any of those? They should be built against Apple's > vectLib. There isn't a package for numpy 1.0beta there yet. I may add > one soon. > >> Interestingly, I can get Numeric version 23.8 to build and >> run just fine, but it appears that the dotblas (BLAS >> optimized matrixmultiply/dot/innerproduct) does not properly >> get built in. Thus, all my matrix operations are -very- slow. > > I'm not sure of the dates, but that is probably a version that didn't > have the check for Apple's vecLib in the setup.py, so it built with the > built-in lapack-lite instead. You can compare the setup.py files from > that and newer versions to see how to make it build against vectLib, but > I suspect if you do that, you'll see the same problems. > > Also, please send a small test script that crashes for you, so others > can test it. > > -Chris |
From: Christopher B. <Chr...@no...> - 2006-08-10 16:14:12
|
Daran L. Rife wrote: > Many thanks for the reply. This was my first attempt > to build and use numpy; "numpy" used to be a generic name for the Numerical extensions to Python. Now there are three versions: "Numeric": The original, now at version 24.2 This is probably the last version that will be produced. "numarray": This was designed to be the "next generation" array package. It has some nice additional features that Numeric does not have, but is missing some as well. It is at version 1.5.1. it may see some bug fix releases in the future, but probably won't see any more major development. "numpy": this is the "grand unification" array package. It is based on the Numeric code base, and is designed to have the best features of Numeric and numarray, plus some extra good stuff. It is now at version 1.0beta, with an expected release date for 1.0final sometime this fall. It is under active development, the API is pretty stable now, and it appears to have the consensus of the numerical python community as the "way of the future" I wrote all that out so that you can be clear which package you are having trouble with -- you've used both the term "Numeric" and "numpy" in your posts, and there is some confusion. If you are working on a project that does not need to be released for a few months (i.e. after numpy has reached 1.0 final), I'd use numpy, rather than Numeric or numarray. Also: on OS-X, there are far to many ways to build Python. When you report a problem, you need to define exactly which python build you are using, and this goes beyond python version -- fink? darwinports? built-it-from-source? Framework? Universal, etc... The MacPython community is doing it's best to standardize on the Universal Build of 2.4.3 that you can find here: http://www.pythonmac.org/packages/py24-fat/ There you will also find pre-built packages for Numeric24.2, numarray1.5.1, and numpy0.9.8 Have you tried any of those? They should be built against Apple's vectLib. There isn't a package for numpy 1.0beta there yet. I may add one soon. > Interestingly, I can get Numeric version 23.8 to build and > run just fine, but it appears that the dotblas (BLAS > optimized matrixmultiply/dot/innerproduct) does not properly > get built in. Thus, all my matrix operations are -very- slow. I'm not sure of the dates, but that is probably a version that didn't have the check for Apple's vecLib in the setup.py, so it built with the built-in lapack-lite instead. You can compare the setup.py files from that and newer versions to see how to make it build against vectLib, but I suspect if you do that, you'll see the same problems. Also, please send a small test script that crashes for you, so others can test it. -Chris -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chr...@no... |
From: Daran L. R. <dr...@uc...> - 2006-08-10 14:58:53
|
Hi Hanno, > I had a similar behaviour when I tried to use module compield with an > older f2py with a newer version of numpy. So is it maybe possible that > some *.so files are used from an earlier build? Many thanks for the reply. This was my first attempt to build and use numpy; I have no previous version. May I ask how you specificlly solved the problem on your machine? Thanks, Daran -- |
From: Hanno K. <kl...@ph...> - 2006-08-10 14:13:01
|
Daran, I had a similar behaviour when I tried to use module compield with an older f2py with a newer version of numpy. So is it maybe possible that some *.so files are used from an earlier build? Hanno "Daran L. Rife" <dr...@uc...> said: > Hi group, > > Sorry, but there was an error on my previous message, > 2nd paragraph, 2nd setence. It should read: > > Unfortunately, I am experiencing a problem that I cannot sort > out. I am running Python 2.4.3 on a Mac G5 running OS X 10.4 > Tiger (8.7.0), using gcc version 4.0.1, and the Apple > vecLib.framework which has an optimized BLAS and LAPACK. > When building Numeric 24.0, 24.1, or 24.2 everything seems > to go AOK. But when I run code which makes use of the Numeric > package (maksed arrays, dot product, LinearAlgebra, etc.) my > code crashes hard and unpredictably. When it crashes I simply > get a "Segmentation Fault". I'm sorry that I can't be more > specific about what seems to happen just before the crash... > I've tried to trace it but to no avail. > > Thanks again for your help. > > > Daran > > -- > > > I recently switched from a Debian Linux box to a Mac G5 > > PowerPC, running Mac OS X 10.4 Tiger (8.7.0). I use the > > Python Numeric package extensively, and have come to > > depend upon it. In my view, this piece of software is > > truly first rate, and it has greatly improved my > > productivity in the area of scientific analysis. > > > > Unfortunately, I am experiencing a problem that I cannot sort > > out. I am running Python 2.4.3 on a Debian box (V3.1), using > > gcc version 4.0.1, and the Apple vecLib.framework which has > > an optimized BLAS and LAPACK. When building Numeric 24.0, > > 24.1, or 24.2 everything seems to go AOK. But when I run > > code which makes use of the Numeric package (maksed arrays, > > dot product, LinearAlgebra, etc.) my code crashes hard and > > unpredictably. When it crashes I simply get a "Segmentation > > Fault". I'm sorry that I can't be more specific about what > > seems to happen just before the crash...I've tried to trace > > it but to no avail. > > > > Interestingly, I can get Numeric version 23.8 to build and > > run just fine, but it appears that the dotblas (BLAS > > optimized matrixmultiply/dot/innerproduct) does not properly > > get built in. Thus, all my matrix operations are -very- slow. > > > > Has anyone seen this problem, or know where I might look > > to solve it? Perhaps I have overlooked a crucial step in > > the build/install of Numeric 24.x on the Mac. > > > > I searched round the Net with google, and have sifted through > > the numpy/scipy/numeric Web pages, various mailing lists, user > > groups, etc., and can't seem to find any relevant info. > > > > Alternatively, can someone explain how to get Numeric 23.8 > > to compile on OS X 10.4 Tiger, with the dotblas module? > > > > > > Thanks very much for your help, > > > > > > Daran > > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job > > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Numpy-discussion mailing list > > Num...@li... > > https://lists.sourceforge.net/lists/listinfo/numpy-discussion > > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Numpy-discussion mailing list > Num...@li... > https://lists.sourceforge.net/lists/listinfo/numpy-discussion > -- Hanno Klemm kl...@ph... |
From: Daran L. R. <dr...@uc...> - 2006-08-10 14:02:32
|
Hi group, Sorry, but there was an error on my previous message, 2nd paragraph, 2nd setence. It should read: Unfortunately, I am experiencing a problem that I cannot sort out. I am running Python 2.4.3 on a Mac G5 running OS X 10.4 Tiger (8.7.0), using gcc version 4.0.1, and the Apple vecLib.framework which has an optimized BLAS and LAPACK. When building Numeric 24.0, 24.1, or 24.2 everything seems to go AOK. But when I run code which makes use of the Numeric package (maksed arrays, dot product, LinearAlgebra, etc.) my code crashes hard and unpredictably. When it crashes I simply get a "Segmentation Fault". I'm sorry that I can't be more specific about what seems to happen just before the crash... I've tried to trace it but to no avail. Thanks again for your help. Daran -- > I recently switched from a Debian Linux box to a Mac G5 > PowerPC, running Mac OS X 10.4 Tiger (8.7.0). I use the > Python Numeric package extensively, and have come to > depend upon it. In my view, this piece of software is > truly first rate, and it has greatly improved my > productivity in the area of scientific analysis. > > Unfortunately, I am experiencing a problem that I cannot sort > out. I am running Python 2.4.3 on a Debian box (V3.1), using > gcc version 4.0.1, and the Apple vecLib.framework which has > an optimized BLAS and LAPACK. When building Numeric 24.0, > 24.1, or 24.2 everything seems to go AOK. But when I run > code which makes use of the Numeric package (maksed arrays, > dot product, LinearAlgebra, etc.) my code crashes hard and > unpredictably. When it crashes I simply get a "Segmentation > Fault". I'm sorry that I can't be more specific about what > seems to happen just before the crash...I've tried to trace > it but to no avail. > > Interestingly, I can get Numeric version 23.8 to build and > run just fine, but it appears that the dotblas (BLAS > optimized matrixmultiply/dot/innerproduct) does not properly > get built in. Thus, all my matrix operations are -very- slow. > > Has anyone seen this problem, or know where I might look > to solve it? Perhaps I have overlooked a crucial step in > the build/install of Numeric 24.x on the Mac. > > I searched round the Net with google, and have sifted through > the numpy/scipy/numeric Web pages, various mailing lists, user > groups, etc., and can't seem to find any relevant info. > > Alternatively, can someone explain how to get Numeric 23.8 > to compile on OS X 10.4 Tiger, with the dotblas module? > > > Thanks very much for your help, > > > Daran > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Numpy-discussion mailing list > Num...@li... > https://lists.sourceforge.net/lists/listinfo/numpy-discussion > |
From: Daran L. R. <dr...@uc...> - 2006-08-10 13:33:56
|
Hello, I am a veteran user of Numeric and am trying out the latest version of numpy (numpy 1.01b) on Mac OS X 10.4 Tiger (8.7.0). When trying to invert a matrix with numpy.linalg.inv I get the following error: ----> Traceback (most recent call last): File "./bias_correction.py", line 381, in ? if __name__ == "__main__": main() File "./bias_correction.py", line 373, in main (index_to_stnid, bias_and_innov) = calc_bias_and_innov(cf, stn_info, obs, infile_obs, grids, infile_grids) File "./bias_correction.py", line 297, in calc_bias_and_innov K = make_kalman_gain(R, P_local, H) File "./bias_correction.py", line 157, in make_kalman_gain K = MA.dot( MA.dot(P, MA.transpose(H)), inv(MA.dot(H, MA.dot(P, MA.transpose(H))) + R ) ) File "/opt/python/lib/python2.4/site-packages/numpy/linalg/linalg.py", line 149, in inv return wrap(solve(a, identity(a.shape[0], dtype=a.dtype))) TypeError: __array_wrap__() takes exactly 3 arguments (2 given) <---- Is this a known problem, and if so, what is the fix? Thanks very much, Daran |
From: Travis O. <oli...@ie...> - 2006-08-10 12:55:51
|
Pierre Barbier de Reuille wrote: > Hi, > > in my documentation, the copyswap function in the PyArray_ArrFuncs > structure is supposed to have this signature: > > copyswap (void) (void* dest, void* src, int swap, int itemsize) > > However, in the latest version of NumPy, the signature is: > > copyswap (void) (void*, void*, int, void*) > > My question is: what correspond to the last void* ? > It's only needed for FLEXIBLE arrays (STRING, UNICODE, VOID), then you pass in an array whose ->descr member has the right itemsize. Look in core/src/arratypes for the definitions of the copyswap functions which can be helpful to see if arguments are actually needed. -Travis |
From: Pierre B. de R. <pb...@cm...> - 2006-08-10 11:38:57
|
Hi, in my documentation, the copyswap function in the PyArray_ArrFuncs structure is supposed to have this signature: copyswap (void) (void* dest, void* src, int swap, int itemsize) However, in the latest version of NumPy, the signature is: copyswap (void) (void*, void*, int, void*) My question is: what correspond to the last void* ? Thanks, Pierre |
From: Daran L. R. <dr...@uc...> - 2006-08-10 05:45:54
|
Hello, I recently switched from a Debian Linux box to a Mac G5 PowerPC, running Mac OS X 10.4 Tiger (8.7.0). I use the Python Numeric package extensively, and have come to depend upon it. In my view, this piece of software is truly first rate, and it has greatly improved my productivity in the area of scientific analysis. Unfortunately, I am experiencing a problem that I cannot sort out. I am running Python 2.4.3 on a Debian box (V3.1), using gcc version 4.0.1, and the Apple vecLib.framework which has an optimized BLAS and LAPACK. When building Numeric 24.0, 24.1, or 24.2 everything seems to go AOK. But when I run code which makes use of the Numeric package (maksed arrays, dot product, LinearAlgebra, etc.) my code crashes hard and unpredictably. When it crashes I simply get a "Segmentation Fault". I'm sorry that I can't be more specific about what seems to happen just before the crash...I've tried to trace it but to no avail. Interestingly, I can get Numeric version 23.8 to build and run just fine, but it appears that the dotblas (BLAS optimized matrixmultiply/dot/innerproduct) does not properly get built in. Thus, all my matrix operations are -very- slow. Has anyone seen this problem, or know where I might look to solve it? Perhaps I have overlooked a crucial step in the build/install of Numeric 24.x on the Mac. I searched round the Net with google, and have sifted through the numpy/scipy/numeric Web pages, various mailing lists, user groups, etc., and can't seem to find any relevant info. Alternatively, can someone explain how to get Numeric 23.8 to compile on OS X 10.4 Tiger, with the dotblas module? Thanks very much for your help, Daran |
From: Paul D. <pfd...@gm...> - 2006-08-10 04:55:42
|
P. F. Dubois, K. Hinsen, and J. Hugunin, "Numerical Python", Computers in Physics, v. 10, #3, May/June 1996. is one reference people have used. Others simply refer to the website. The new book might be the best for numpy itself, dunno. Related papers are: David Ascher, P. F. Dubois, Konrad Hinsen, James Hugunin, and Travis Oliphant, "Numerical Python", UCRL-MA-128569, 93 pp., Lawrence Livermore National Laboratory, Livermore, CA; 1999. -- this is the 'official' Numerical Python documentation as first released. P. F. Dubois, "Extending Python with Fortran", Computing in Science and Engineering, v. 1 #5, Sept./Oct. 1999., p.66-73. David Scherer, Paul Dubois, and Bruce Sherwood, "VPython: 3D Interactive Scientific Graphics for Students", Computing in Science and Engineering, v. 2 #5, Sep./Oct. 2000, p. 56-62. On 09 Aug 2006 21:37:39 -0700, Sebastian Haase <ha...@ms...> wrote: > Hi, > we are using numerical python as an integral part of a microscope > development project over last few years. > > So far we have been using exclusively numarray but now I decided it's > time to slowly but sure migrate to numpy. > > What is the proper way to reference these packages ? > > Thanks to everyone involved, > Sebastian Haase > UCSF > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Numpy-discussion mailing list > Num...@li... > https://lists.sourceforge.net/lists/listinfo/numpy-discussion > > > |
From: Sebastian H. <ha...@ms...> - 2006-08-10 04:36:53
|
Hi, we are using numerical python as an integral part of a microscope development project over last few years. So far we have been using exclusively numarray but now I decided it's time to slowly but sure migrate to numpy. What is the proper way to reference these packages ? Thanks to everyone involved, Sebastian Haase UCSF |
From: Sebastian H. <ha...@ms...> - 2006-08-10 04:35:36
|
Travis Oliphant wrote: > Sebastian Haase wrote: >> On Wednesday 09 August 2006 15:45, you wrote: >> >>> Sebastian Haase wrote: >>> >>>> On Wednesday 09 August 2006 15:18, Travis Oliphant wrote: >>>> >>>>> If numarray supported it, then we should get NumPy to support it as >>>>> well >>>>> unless there is a compelling reason not to. I can't think of any >>>>> except >>>>> that it might be hard to make it work. What is '0i4' supposed to mean >>>>> exactly? Do you get a zero-sized field or is the field not included? >>>>> I think the former will be much easier than the latter. Would >>>>> that be >>>>> O.K.? >>>>> >>>> That's exactly what numarray did. The rest of my code is assuming that >>>> all fields exist (even if they are empty). Otherwise I get a name >>>> error which is worse than getting an empty array. >>>> >>> Do you have a simple code snippet that I could use as a test? >>> >>> -Travis >>> >> >> I think this should do it: >> >> a = N.arange(10, dtype=N.float32) >> a.shape = 5,2 >> type_descr = [("int", "<0i4"),("float", "<2f4")] >> a.dtype = type_descr >> >> > > I'm not sure what a.shape = (5,2) is supposed to do. I left it in the > unit-test out because assigning to the data-type you just defined > already results in > > a['float'].shape being (5,2) > > If it is left in, then an extra dimension is pushed in and > > a['float'].shape is (5,1,2) > > > This is due to the default behavior of assigning data-types when the new > data-type has a larger but compatibile itemsize then the old itemsize. I have to admit that I don't understand that statement. I thought - just "visually" - that a.shape = 5,2 would make a "table" with 2 columns. Then I could go on and give those columns names... Or is the problem that the type "2f4" refers to (some sort of) a "single column" with 2 floats grouped together !? Thanks for implementing it so quickly, Sebastian Haase |