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: Matthew B. <mat...@gm...> - 2006-09-18 18:49:58
|
Hi, As expected: In [67]:a = array([1], dtype='<i4') In [68]:a.astype('>i4').dtype Out[68]:dtype('>i4') I was also expecting this to work for 0d arrays, but it doesn't: In [69]:a = array(1, dtype='<i4') In [70]:a.astype('>i4').dtype Out[70]:dtype('<i4') Is this as intended? Thanks a lot, Matthew |
From: Travis O. <oli...@ie...> - 2006-09-18 18:45:46
|
Martin Wiechert wrote: > Hi list, > > does anybody know, if in C in the PyArray_Descr struct it is safe to manually > change descr->elsize and descr->alignment as long as these are compatible and > descr->elsize is large enough to hold all fields? Of course I mean before any > array is constructed using descr. > Well, you should really make a copy of the PyArray_Descr structure and then fill it in as desired unless you are sure that no other arrays have are using that particular data-type object to describe their own data: PyArray_DescrNew gives you a new copy based on an old one (you just get a reference to the funciton pointers in the 'f' member so don't go changing those). I guess your statement about "before any array is constructed using descr" means you are sure that there are no other arrays using the old elsize and alignment. Then it should be fine. There are not supposed to be any assumptions about the data-types except for what is explicitly provided in the data-type object (PyArray_Descr *). So, changing them will change the data-type and things should ideally work. -Travis |
From: Charles R H. <cha...@gm...> - 2006-09-18 17:35:34
|
On 9/18/06, Mathew Yeates <my...@jp...> wrote: > > semi off topic. > Does anyone know of any good visual programming tools? Forever ago, I > used to use something called Khoros for image processing and I found it > very useful. You connect boxes which represent different processing > steps. At about the same time, there was something similar to Khoros > from SGI. Explorer was its name, I think. > > Anybody out there use this sort of thing? Matlab doesn't offer it, > right? Nor matplotlib? > > Mathew There have been several presentations at the scipy conferences about a visual programming environment for molecular visualization. You might check and see if the presentations are available on the scipy site. Lets see, name is ViPEr, and some papers can be found under publications at this site: http://www.scripps.edu/%7Esanner/python/index.html I have no idea how generally useful the framework is. Chuck |
From: A. M. A. <per...@gm...> - 2006-09-18 17:17:49
|
On 18/09/06, Mathew Yeates <my...@jp...> wrote: > semi off topic. > Does anyone know of any good visual programming tools? Forever ago, I > used to use something called Khoros for image processing and I found it > very useful. You connect boxes which represent different processing > steps. At about the same time, there was something similar to Khoros > from SGI. Explorer was its name, I think. > > Anybody out there use this sort of thing? Matlab doesn't offer it, > right? Nor matplotlib? > > Mathew I doubt it's what you're looking for, but PD and GEM are a visual programming environment, oriented towards music, audio signal processing, 2D and 3D video. (They're related to Max and jMax, which do some of the same things.) A. M. Archibald |
From: Christopher B. <Chr...@no...> - 2006-09-18 17:08:56
|
Sven Schreiber wrote: > on my 1.0b5 I also see this docstring which indeed seems obsolete. I get this docs string from : >>> import numpy as N >>> N.__version__ '1.0b5' >>> a = N.arange(10) >>> help( a.sum) """ sum(...) a.sum(axis=None, dtype=None) -> Sum of array over given axis. Sum the array over the given axis. If the axis is None, sum over all dimensions of the array. """ that looks right to me. -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: Les S. <sch...@op...> - 2006-09-18 17:00:21
|
Mathew Yeates wrote: > semi off topic. > Does anyone know of any good visual programming tools? Forever ago, I > used to use something called Khoros for image processing and I found it > very useful. You connect boxes which represent different processing > steps. > if i recall correctly, there is still a version of Khoros floating around that you can compile under Linux. i've done it several time, but it WAS a while ago. Les Schaffer |
From: mg <mg....@la...> - 2006-09-18 16:56:28
|
Hi all, I am doing a feseability study to migrate our Python based FEM applications from Numarray to Numpy. First, I tried to install Numpy from Python-2.4 on linux-x86, linux-86-64bit. So, all work fine. Great! Moreover, I change easily the BLAS linked libraries. I tried with ATLAS and GOTO. Great again! Second, I try to do the same think on windows-x86 without success. So my first question is: is Numpy-1.0b5 has been tested and is supported on Windows? Third, I tried to install Numpy from Python-2.5, which is our standard Python, on linux-x86... and the compilation stopped during the compilation of core/src/multiarraymodule.c. So my second question is: is there a workaround or is the porting to Python2.5 is yet schedule? My third question is: is the tool to migrate the numarray based Python scripts (numpy.numarray.alter_code1) work fine? (I suppose yes...) We have created a lot of bindings in order to pilote our generic-C++ framework with Python scripts. So, about the Numpy API, is it widely different than the Numarray API? (We will order the Numpy Guide too.) To not duplicate large numerical memory arrays, Numarray allows to aliasing the memory of some bindings with arrays from Numarray, and we have used this feature intensively. So, I wonder if it is currently supported (or even scheduled)? Thanks for your answer, Mathieu. |
From: Mathew Y. <my...@jp...> - 2006-09-18 16:29:43
|
semi off topic. Does anyone know of any good visual programming tools? Forever ago, I used to use something called Khoros for image processing and I found it very useful. You connect boxes which represent different processing steps. At about the same time, there was something similar to Khoros from SGI. Explorer was its name, I think. Anybody out there use this sort of thing? Matlab doesn't offer it, right? Nor matplotlib? Mathew |
From: Lionel R. <lro...@li...> - 2006-09-18 15:47:51
|
Le lundi 18 septembre 2006 17:40, Francesc Altet a =C3=A9crit=C2=A0: > I'm running NumPy 1.0b5. Please, check that you are using a recent > version of it. > > Cheers, Arg, sorry, version here was 0.9, an upgrade and it works fine. thanks again =2D-=20 Lionel Roubeyrie - lro...@li... LIMAIR http://www.limair.asso.fr |
From: Francesc A. <fa...@ca...> - 2006-09-18 15:40:53
|
El dl 18 de 09 del 2006 a les 17:10 +0200, en/na Lionel Roubeyrie va escriure: > Le lundi 18 septembre 2006 12:17, Francesc Altet a =C3=A9crit : > > You have two problems here. The first is that you shouldn't have missig= n > > entries, or conversion from empty strings to ints (or whatever) will > > > > fail: > > >>> int('') > > > > Traceback (most recent call last): > > File "<stdin>", line 1, in ? > > ValueError: invalid literal for int(): > > > > Second, you can't feed a string of literals directly into the rec.array > > constructor (it is not as intelligent to digest this yet). You can > > > > achieve what you want by first massaging the data a bit: > > >>> ra=3Dnumpy.rec.array(datas[1:]) > > > > numpy.rec.fromarrays([ra['f1'],ra['f2'],ra['f3'],ra['f4'],ra['f5']],for= mats > >=3D'a10,i2,a1,i2,a1') recarray([('05/01/2006', 33, 'A', 0, 'N'), > > ('06/01/2006', 41, 'A', 30, 'A'), > > ('07/01/2006', 20, 'A', 16, 'A'), ('08/01/2006', 16, 'A', 13, > > 'A')], > > dtype=3D[('f1', '|S10'), ('f2', '<i2'), ('f3', '|S1'), ('f4', > > '<i2'), ('f5', '|S1')]) > > > > or, a bit more easier, > > > > >>> ca=3Dnumpy.array(datas[1:]) > > >>> numpy.rec.fromarrays(ca.transpose(),formats=3D'a10,i2,a1,i2,a1') > > > > recarray([('05/01/2006', 33, 'A', 0, 'N'), ('06/01/2006', 41, 'A', 30, > > 'A'), > > ('07/01/2006', 20, 'A', 16, 'A'), ('08/01/2006', 16, 'A', 13, > > 'A')], > > dtype=3D[('f1', '|S10'), ('f2', '<i2'), ('f3', '|S1'), ('f4', > > '<i2'), ('f5', '|S1')]) > > > > > > Cheers, >=20 > Hi, > thanks for your help, but I don't understand why is not working here: > lionel[ETD-2006-01__PM2.5_DALTON]624>datas > Sortie[624]: > [['05/01/2006', '33', 'A', '10', 'N'], > ['06/01/2006', '41', 'A', '30', 'A'], > ['07/01/2006', '20', 'A', '16', 'A']] >=20 > lionel[ETD-2006-01__PM2.5_DALTON]625>ra=3Drec.array(datas) >=20 > lionel[ETD-2006-01__PM2.5_DALTON]626>ra > Sortie[626]: > recarray([('05/01/2006', '33', 'A', '10', 'N'), > ('06/01/2006', '41', 'A', '30', 'A'), > ('07/01/2006', '20', 'A', '16', 'A')], > dtype=3D[('f1', '|S10'), ('f2', '|S2'), ('f3', '|S1'), ('f4', '|S2'= ),=20 > ('f5', '|S1')]) >=20 > lionel[ETD-2006-01__PM2.5_DALTON]627>rec.fromarrays( [ra['f1'], ra['f2'],= =20 > ra['f4']], formats=3D'a10,i2,i2') > -------------------------------------------------------------------------= -- > exceptions.TypeError Traceback (most rece= nt=20 > call last) Mmm, this works for me: >>> datas [['05/01/2006', '33', 'A', '0', 'N'], ['06/01/2006', '41', 'A', '30', 'A'], ['07/01/2006', '20', 'A', '16', 'A'], ['08/01/2006', '16', 'A', '13', 'A']] >>> ra=3Drec.array(datas) >>> rec.fromarrays([ra['f1'],ra['f2'],ra['f4']], formats=3D'a10,i2,i2') recarray([('05/01/2006', 33, 0), ('06/01/2006', 41, 30), ('07/01/2006', 20, 16), ('08/01/2006', 16, 13)], dtype=3D[('f1', '|S10'), ('f2', '<i2'), ('f3', '<i2')]) I'm running NumPy 1.0b5. Please, check that you are using a recent version of it. Cheers, --=20 >0,0< Francesc Altet http://www.carabos.com/ V V C=C3=A1rabos Coop. V. Enjoy Data "-" |
From: Lionel R. <lro...@li...> - 2006-09-18 15:10:56
|
Le lundi 18 septembre 2006 12:17, Francesc Altet a =C3=A9crit=C2=A0: > You have two problems here. The first is that you shouldn't have missign > entries, or conversion from empty strings to ints (or whatever) will > > fail: > >>> int('') > > Traceback (most recent call last): > File "<stdin>", line 1, in ? > ValueError: invalid literal for int(): > > Second, you can't feed a string of literals directly into the rec.array > constructor (it is not as intelligent to digest this yet). You can > > achieve what you want by first massaging the data a bit: > >>> ra=3Dnumpy.rec.array(datas[1:]) > > numpy.rec.fromarrays([ra['f1'],ra['f2'],ra['f3'],ra['f4'],ra['f5']],forma= ts >=3D'a10,i2,a1,i2,a1') recarray([('05/01/2006', 33, 'A', 0, 'N'), > ('06/01/2006', 41, 'A', 30, 'A'), > ('07/01/2006', 20, 'A', 16, 'A'), ('08/01/2006', 16, 'A', 13, > 'A')], > dtype=3D[('f1', '|S10'), ('f2', '<i2'), ('f3', '|S1'), ('f4', > '<i2'), ('f5', '|S1')]) > > or, a bit more easier, > > >>> ca=3Dnumpy.array(datas[1:]) > >>> numpy.rec.fromarrays(ca.transpose(),formats=3D'a10,i2,a1,i2,a1') > > recarray([('05/01/2006', 33, 'A', 0, 'N'), ('06/01/2006', 41, 'A', 30, > 'A'), > ('07/01/2006', 20, 'A', 16, 'A'), ('08/01/2006', 16, 'A', 13, > 'A')], > dtype=3D[('f1', '|S10'), ('f2', '<i2'), ('f3', '|S1'), ('f4', > '<i2'), ('f5', '|S1')]) > > > Cheers, Hi, thanks for your help, but I don't understand why is not working here: lionel[ETD-2006-01__PM2.5_DALTON]624>datas Sortie[624]: [['05/01/2006', '33', 'A', '10', 'N'], ['06/01/2006', '41', 'A', '30', 'A'], ['07/01/2006', '20', 'A', '16', 'A']] lionel[ETD-2006-01__PM2.5_DALTON]625>ra=3Drec.array(datas) lionel[ETD-2006-01__PM2.5_DALTON]626>ra Sortie[626]: recarray([('05/01/2006', '33', 'A', '10', 'N'), ('06/01/2006', '41', 'A', '30', 'A'), ('07/01/2006', '20', 'A', '16', 'A')], dtype=3D[('f1', '|S10'), ('f2', '|S2'), ('f3', '|S1'), ('f4', '|S2'),= =20 ('f5', '|S1')]) lionel[ETD-2006-01__PM2.5_DALTON]627>rec.fromarrays( [ra['f1'], ra['f2'],=20 ra['f4']], formats=3D'a10,i2,i2') =2D------------------------------------------------------------------------= =2D- exceptions.TypeError Traceback (most recent= =20 call last) /home/lionel/Etudes_Techniques/ETD-2006-01__PM2.5_DALTON/<ipython console> /usr/lib/python2.4/site-packages/numpy/core/records.py in=20 fromarrays(arrayList, formats, names, titles, shape, aligned) 235 # populate the record array (makes a copy) 236 for i in range(len(arrayList)): =2D-> 237 _array[_names[i]] =3D arrayList[i] 238 239 return _array TypeError: array cannot be safely cast to required type =2D-=20 Lionel Roubeyrie - lro...@li... LIMAIR http://www.limair.asso.fr |
From: <qw...@to...> - 2006-09-18 12:32:52
|
<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="673" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="62" bgcolor="#8C8C8C"> <div align="center"> <table width="100%" border="0" cellspacing="1" cellpadding="0"> <tr> <td height="62" bgcolor="#F3F3F3"> <p align="center"><span style="background-color: #F3F3F3"> <font size="5"><span style="font-weight: 700"> 非</span></font></span><font size="5"><span style="font-weight: 700; background-color: #F3F3F3">财务人员的财务管理<br> -</span></font><font size="4"><span style="background-color: #F3F3F3">沙盘模拟课程</span></font></td> </tr> </table> <font color="#FF0000" size="+3" face="黑体"></font></div></td> </tr> </table> <table width="673" border="0" align="center" cellpadding="0" cellspacing="0" class="td" height="1488"> <tr> <td bgcolor="#8C8C8C" height="22"> </td> </tr> <tr> <td height="1466" bgcolor="#FFFFFF"> <div align="center"> <table width="99%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="17%" height="20" bgcolor="#BF0000" class="td"> <div align="center"><font color="#FFFFFF">[课 程 背 景]</font></div></td> <td width="83%" class="td"> </td> </tr> <tr> <td height="74" colspan="2" class="td"><font FACE="??ì?,SimSun" LANG="ZH-CN"> <p ALIGN="JUSTIFY"> </font><font lang="ZH-CN" size="2"> </font><font lang="ZH-CN" size="2">每一位管理和技术人员都清楚地懂得,单纯从技术角度衡量为合算的方案,也许却是一个财务陷阱,表面赢利而暗地里亏损,使经营者无法接受。如何将技术手段与财务运作相结合,使每位管理和技术人员都从老板的角度进行思考 , 有效地规避财务陷阱,实现管理决策与经营目标的一致性?本课程通过沙盘模拟实施体验式教学,每个小组 5-6 人模拟公司的生产、销售和财务分析过程,学员在模拟对抗中相互激发、体验决策与经营企业的乐趣,同时讲师与学员共同分享解决问题的模型与工具,使学员 " 身同体受 " ,完成从 know-what 向 know-why 转化。本课程通过二十<span style="letter-spacing: -1pt">八个实际案例分析,使企业各级管理和技术人员掌握财务管理知识,利用财务信息改进管理决策,实现管理效益最大化</span>。<br> ★ 对会计与财务管理有基本了解, 提高日常管理活动的财务可行性;<br> ★ 掌握合乎财务原则的管理决策方法 , 与老板的思维同步;<br> ★ 通过成本分析,找到有效降低成本的途径;<br> ★ 通过边际效应分析,实施正确的成本决策;<br> ★ 掌握业绩评价的依据和方法,评估经营业绩 , 实施科学的业绩考核。</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 lang="ZH-CN" size="2"><font color="#FF0000">一、企业财务管理的内容及管理会计的作用</font><br> 1、财务会计的职能<br> 2、财务专家的思维模式<br> 3、财务工作的基本内容<br> 4、财务管理的四个基本原理<br> 5、会计工作的十三个基本原则<br> <font color="#FF0000">二、如何阅读和分析财务报表</font><br> 1、会计报表的构成<br> 2、资产负债表:<br> 资产负债表的逻辑结构与主要内容(透视资产负债表的各个部分)<br> 解读资产负债表(应收款、存货、应付款、固定资产、借款、股东权益)<br> 企业拥有何物,谁拥有企业<br> 财务杠杆的运用 ---- 资本结构分析<br> 3、损益表:<br> 损益表的逻辑结构与主要内容<br> 如何正确确认收入避免 ” 苹果电脑事件 ”<br> 如何计算制造成本 , 反映每种产品的实际贡献<br> 如何计算共同成本<br> 如何计算息税前利润和净利润<br> 4、现金流量表的阅读与分析<br> 现金流量表的逻辑结构与主要内容<br> 5、会计报表之间的关系( Dupont 模型的应用)<br> 6、如何从会计报表读懂企业经营状况<br> • 案例分析:读报表,判断企业业绩水平<br> <font color="#FF0000">三、如何利用财务数据分析并改善经营绩效</font><br> 1、财务比率分析<br> 2、关键财务指标解析<br> 总资产收益率 / 净资产收益率<br> 营业利润率 / 总资产周转率<br> 总资产周转率与资产管理<br> 3、盈利能力分析:资产回报率、股东权益回报率、资产流动速率<br> 4、风险指数分析:流动比率、负债 / 权益比率、营运偿债能力<br> 5、财务报表综合解读:综合运用财务信息透视公司运作水平<br> ◆ 案例分析:某上市公司的财务状况分析与经营绩效评价<br> <font color="#FF0000">四、成本分析与成本决策</font><br> 1、产品成本的概念和构成<br> 成本习性分析<br> 完全成本法<br> 变动成本法<br> 2、CVP(本-量-利)分析与运用<br> 3、固定成本与边际效应分析<br> 4、如何运用目标成本法控制产品成本,保证利润水平<br> 5、如何运用 ABC 作业成本法进行管理分析,实施精细成本管理<br> 6、如何针对沉没成本和机会成本进行正确决策<br> 7、如何改善采购、生产等环节的运作以改良企业的整体财务状况<br> ◆ 综合案例分析<br> <font color="#FF0000">五、投资决策</font><br> 1、管理和技术方案的可行性分析<br> 2、设备改造与更新的决策分析<br> 3、如何根据成本与市场进行合理定价<br> 4、长期投资项目的现金流分析<br> 5、资金的时间价值<br> 6、投资项目评价方法<br> 回收期法<br> 净现值法<br> 内部收益率法<br> ◆ 综合案例演练<br> <font color="#FF0000">六、绩效考评与内部控制</font><br> 1、如何确定责任成本?<br> 2、如何实施内部控制<br> 3、如何针对成本中心进行费用控制<br> 4、如何针对利润中心进行业绩考核<br> 5、如何针对投资中心进行业绩评价<br> 6、如何运用内部市场链进行管理,使每个部门都成为利润中心<br> • 案例研讨: GE 和海尔的绩效考评</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> Mr Wang ,管理工程硕士、高级经济师,国际职业培训师协会认证职业培训师,历任跨国公司生产负责人、工业工程经理、管理会计分析师、营运总监等高级管理职务多年,同时还担任 < 价值工程 > 杂志审稿人、辽宁省营口市商业银行独立董事等职务,对企业管理有较深入的研究。 王老师主要从事 IE 技术应用、成本控制、管理会计决策等课程的讲授,先后为 IBM 、 TDK 、松下、可口可乐、康师傅、汇源果汁、雪津啤酒、吉百利食品、冠捷电子、 INTEX 明达塑胶、正新橡胶、美国 ITT 集团、广上科技、美的空调、中兴通讯、京信通信、联想电脑,应用材料 ( 中国 ) 公司、艾克森 - 金山石化、中国化工进出口公司、正大集团大福饲料、厦华集团、灿坤股份、 NEC 东金电子、太原钢铁集团、 PHILIPS 、深圳开发科技、大冷王运输制冷、三洋华强、 TCL 、美的汽车、上海贝尔阿尔卡特、天津扎努西、上海卡博特等知名企业提供项目辅导或专题培训。王老师授课经验丰富,风格幽默诙谐、逻辑清晰、过程互动,案例生动、深受学员喜爱。 </p></td> </tr> </table> </div> <div align="center"> <table width="99%" border="0" cellpadding="0" cellspacing="0" height="54"> <tr> <td width="17%" height="25" bgcolor="#0080C0" class="td"> <div align="center"><font color="#FFFFFF">[时间/地点/报名]</font></div></td> <td width="83%" class="td" height="25"> </td> </tr> <tr> <td height="29" colspan="2" class="td"> <p><b><font size="2">时间:</font><font size="2" color="#FF0000"> </font></b> <font size="2" color="#000000">9月28-29日 (周四、五) </font><font size="2" color="#FF0000"> <b> </b></font><font size="2"><b>地点: </b>上海</font></p> </td> </tr> </table> </div> <table width="99%" height="35" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="15" class="td"> <p><b><font size="2" color="#000000">费用: </font></b><font size="2" color="#000000">1980元/人(含教材,午餐等) </font><b><font size="2" color="#FF0000"> </font></b><font size="2" color="#000000">四人以上参加,赠予一名名额</font> </p> </td> </tr> </table> <table width="99%" height="35" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="15" class="td"> <font size="2" color="#000000"> <b>电话: </b> 谢小姐 电话:021-51187126 </font><font size="2"><br> 注:尊敬的客户:<br> 您好!以下内容为商-务-广-告;如果对您的工作及生活带来不便,在此深表歉意;如您不需要,请与我们联系</font><font size="2" color="#000000"> </font></td> </tr> </table> </td> </tr> </table> </body> </html> |
From: Sven S. <sve...@gm...> - 2006-09-18 10:21:23
|
Eric Emsellem schrieb: > Hi again > > after some hours of debugging I finally (I think) found the problem: > > numpy.sum([[0,1,2],[2,3,4]]) > 24 > > numpy.sum([[0,1,2],[2,3,4]],axis=0) > array([2, 4, 6]) > > numpy.sum([[0,1,2],[2,3,4]],axis=1) > array([3, 9]) > > > Isn't the first line supposed to act as with "axis=0" by default (see > help numpy.sum!)...??? > Not setting axis=0 it sums everything! The default axis was changed recently to None (btw, which version are you using?), see the release notes on the web. So yes, it's expected. > > Is that the expected behaviour or is the doc not updated? (I realise it > may be better to force axis=.. to indicate what you need but still.. the > example in numpy.sum help gives: > sum([[0, 1], [0, 5]]) > array([0, 6]) which is not what it gives when you do it...) on my 1.0b5 I also see this docstring which indeed seems obsolete. Has it been changed since then? (And similarly for the other functions/methods where axis arguments have changed.) I could check the docstrings systematically and update them, but unfortunately not before the end of this month, sorry. cheers, sven |
From: Albert S. <fu...@gm...> - 2006-09-18 10:17:34
|
Hey Eric > Hi again > > after some hours of debugging I finally (I think) found the problem: > > numpy.sum([[0,1,2],[2,3,4]]) > 24 > > numpy.sum([[0,1,2],[2,3,4]],axis=0) > array([2, 4, 6]) > > numpy.sum([[0,1,2],[2,3,4]],axis=1) > array([3, 9]) > > > Isn't the first line supposed to act as with "axis=0" by default (see > help numpy.sum!)...??? > Not setting axis=0 it sums everything! The problem is that the sum axis default is None, not 0. > Is that the expected behaviour or is the doc not updated? (I realise it > may be better to force axis=.. to indicate what you need but still.. the > example in numpy.sum help gives: > sum([[0, 1], [0, 5]]) > array([0, 6]) which is not what it gives when you do it...) The documentation seems to be outdated. I'm not sure, but I think a few of the axis default might have changed in the not too distant past. Not sure if sum was affected. Either way, could you please file a ticket? http://projects.scipy.org/scipy/numpy/register http://projects.scipy.org/scipy/numpy/newticket Regards, Albert |
From: Francesc A. <fa...@ca...> - 2006-09-18 10:17:15
|
El dl 18 de 09 del 2006 a les 09:38 +0200, en/na Lionel Roubeyrie va escriure: > Le vendredi 15 septembre 2006 16:05, Francesc Altet a =C3=A9crit : > > Another possibility is to play with columns directly from the initial > > recarray. The next is an example: > > > > In [101]: ra=3Dnumpy.rec.array("1"*36, dtype=3D"a4,i4,f4", shape=3D3) > > In [102]: ra > > Out[102]: > > recarray([('1111', 825307441, 2.5784852031307537e-09), > > ('1111', 825307441, 2.5784852031307537e-09), > > ('1111', 825307441, 2.5784852031307537e-09)], > > dtype=3D[('f0', '|S4'), ('f1', '<i4'), ('f2', '<f4')]) > > In [103]: rb=3Dnumpy.rec.fromarrays([numpy.array(ra['f0'], 'i4'),ra['f2= ']], > > names=3D'f0,f1') > > In [104]: rb > > Out[104]: > > recarray([(1111, 2.5784852031307537e-09), (1111, 2.5784852031307537e-09= ), > > (1111, 2.5784852031307537e-09)], > > dtype=3D[('f0', '<i4'), ('f1', '<f4')]) > > > > where ra is the original recarray and rb is a derived one where its fir= st > > column is the original from ra, but converted to integers ('i4'), and t= he > > second it's the third column from ra (so the second column from ra has = been > > stripped out from rb). >=20 > I have a problem with that : > lionel[ETD-2006-01__PM2.5_DALTON]334>datas[0:5] > Sortie[334]: > [['Dates ', 'PM10 ', 'c10', 'PM2.5 ', 'c2.5'], > ['05/01/2006', '33', 'A', '', 'N'], > ['06/01/2006', '41', 'A', '30', 'A'], > ['07/01/2006', '20', 'A', '16', 'A'], > ['08/01/2006', '16', 'A', '13', 'A']] >=20 > lionel[ETD-2006-01__PM2.5_DALTON] > 335>ra=3Drec.array(datas[1:],formats=3D'a10,i2,a1,i2,a1') >=20 > lionel[ETD-2006-01__PM2.5_DALTON]336>ra[0:5] > Sortie[336]: > recarray([[('05/01/2006', 0, '', 0, ''), ('33', 0, '', 0, ''), > ('A[9\xb4q\x00\x00\x00\xc0\xa3', -18448, '\xc0', -3933, '\xb7'), > ('30', 0, '', 0, ''), > ('N\x00\x00\x00\x00\x00\x00\x00t\xeb', -18496, '\x19', 13, '')], > [('06/01/2006', 0, '', 0, ''), ('41', 0, '', 0, ''), > ('A[9\xb4q\x00\x00\x00\xc0\xa3', -18448, '\xc0', -3933, '\xb7'), > ('30', 0, '', 0, ''), > ('A\x00\x00\x00\x00\x00\x00\x00t\xeb', -18496, '\x19', 13, '')], > [('07/01/2006', 0, '', 0, ''), ('20', 0, '', 0, ''), > ('A[9\xb4q\x00\x00\x00\xc0\xa3', -18448, '\xc0', -3933, '\xb7'), > ('16', 0, '', 0, ''), > ('A\x00\x00\x00\x00\x00\x00\x00t\xeb', -18496, '\x19', 13, '')], > [('08/01/2006', 0, '', 0, ''), ('16', 0, '', 0, ''), > ('A[9\xb4q\x00\x00\x00\xc0\xa3', -18448, '\xc0', -3933, '\xb7'), > ('13', 0, '', 0, ''), > ('A\x00\x00\x00\x00\x00\x00\x00t\xeb', -18496, '\x19', 13, '')], > [('09/01/2006', 0, '', 0, ''), ('18', 0, '', 0, ''), > ('A[9\xb4q\x00\x00\x00\xc0\xa3', -18448, '\xc0', -3933, '\xb7'), > ('15', 0, '', 0, ''), > ('A\x00\x00\x00\x00\x00\x00\x00t\xeb', -18496, '\x19', 13, '')]], > dtype=3D[('f1', '|S10'), ('f2', '<i2'), ('f3', '|S1'), ('f4', '<i2'= ),=20 > ('f5', '|S1')]) >=20 > I have some missing entries, is it for that or do I have to make some cha= nges=20 > on the date column? You have two problems here. The first is that you shouldn't have missign entries, or conversion from empty strings to ints (or whatever) will fail: >>> int('') Traceback (most recent call last): File "<stdin>", line 1, in ? ValueError: invalid literal for int(): Second, you can't feed a string of literals directly into the rec.array constructor (it is not as intelligent to digest this yet). You can achieve what you want by first massaging the data a bit: >>> ra=3Dnumpy.rec.array(datas[1:]) >>> numpy.rec.fromarrays([ra['f1'],ra['f2'],ra['f3'],ra['f4'],ra['f5']],formats= =3D'a10,i2,a1,i2,a1') recarray([('05/01/2006', 33, 'A', 0, 'N'), ('06/01/2006', 41, 'A', 30, 'A'), ('07/01/2006', 20, 'A', 16, 'A'), ('08/01/2006', 16, 'A', 13, 'A')], dtype=3D[('f1', '|S10'), ('f2', '<i2'), ('f3', '|S1'), ('f4', '<i2'), ('f5', '|S1')]) or, a bit more easier, >>> ca=3Dnumpy.array(datas[1:]) >>> numpy.rec.fromarrays(ca.transpose(),formats=3D'a10,i2,a1,i2,a1') recarray([('05/01/2006', 33, 'A', 0, 'N'), ('06/01/2006', 41, 'A', 30, 'A'), ('07/01/2006', 20, 'A', 16, 'A'), ('08/01/2006', 16, 'A', 13, 'A')], dtype=3D[('f1', '|S10'), ('f2', '<i2'), ('f3', '|S1'), ('f4', '<i2'), ('f5', '|S1')]) Cheers, --=20 >0,0< Francesc Altet http://www.carabos.com/ V V C=C3=A1rabos Coop. V. Enjoy Data "-" |
From: Eric E. <ems...@ob...> - 2006-09-18 09:59:27
|
Hi again after some hours of debugging I finally (I think) found the problem: numpy.sum([[0,1,2],[2,3,4]]) 24 numpy.sum([[0,1,2],[2,3,4]],axis=0) array([2, 4, 6]) numpy.sum([[0,1,2],[2,3,4]],axis=1) array([3, 9]) Isn't the first line supposed to act as with "axis=0" by default (see help numpy.sum!)...??? Not setting axis=0 it sums everything! Is that the expected behaviour or is the doc not updated? (I realise it may be better to force axis=.. to indicate what you need but still.. the example in numpy.sum help gives: sum([[0, 1], [0, 5]]) array([0, 6]) which is not what it gives when you do it...) thanks Eric |
From: Lionel R. <lro...@li...> - 2006-09-18 07:39:18
|
Le vendredi 15 septembre 2006 16:05, Francesc Altet a =E9crit=A0: > Another possibility is to play with columns directly from the initial > recarray. The next is an example: > > In [101]: ra=3Dnumpy.rec.array("1"*36, dtype=3D"a4,i4,f4", shape=3D3) > In [102]: ra > Out[102]: > recarray([('1111', 825307441, 2.5784852031307537e-09), > ('1111', 825307441, 2.5784852031307537e-09), > ('1111', 825307441, 2.5784852031307537e-09)], > dtype=3D[('f0', '|S4'), ('f1', '<i4'), ('f2', '<f4')]) > In [103]: rb=3Dnumpy.rec.fromarrays([numpy.array(ra['f0'], 'i4'),ra['f2']= ], > names=3D'f0,f1') > In [104]: rb > Out[104]: > recarray([(1111, 2.5784852031307537e-09), (1111, 2.5784852031307537e-09), > (1111, 2.5784852031307537e-09)], > dtype=3D[('f0', '<i4'), ('f1', '<f4')]) > > where ra is the original recarray and rb is a derived one where its first > column is the original from ra, but converted to integers ('i4'), and the > second it's the third column from ra (so the second column from ra has be= en > stripped out from rb). I have a problem with that : lionel[ETD-2006-01__PM2.5_DALTON]334>datas[0:5] Sortie[334]: [['Dates ', 'PM10 ', 'c10', 'PM2.5 ', 'c2.5'], ['05/01/2006', '33', 'A', '', 'N'], ['06/01/2006', '41', 'A', '30', 'A'], ['07/01/2006', '20', 'A', '16', 'A'], ['08/01/2006', '16', 'A', '13', 'A']] lionel[ETD-2006-01__PM2.5_DALTON] 335>ra=3Drec.array(datas[1:],formats=3D'a10,i2,a1,i2,a1') lionel[ETD-2006-01__PM2.5_DALTON]336>ra[0:5] Sortie[336]: recarray([[('05/01/2006', 0, '', 0, ''), ('33', 0, '', 0, ''), ('A[9\xb4q\x00\x00\x00\xc0\xa3', -18448, '\xc0', -3933, '\xb7'), ('30', 0, '', 0, ''), ('N\x00\x00\x00\x00\x00\x00\x00t\xeb', -18496, '\x19', 13, '')], [('06/01/2006', 0, '', 0, ''), ('41', 0, '', 0, ''), ('A[9\xb4q\x00\x00\x00\xc0\xa3', -18448, '\xc0', -3933, '\xb7'), ('30', 0, '', 0, ''), ('A\x00\x00\x00\x00\x00\x00\x00t\xeb', -18496, '\x19', 13, '')], [('07/01/2006', 0, '', 0, ''), ('20', 0, '', 0, ''), ('A[9\xb4q\x00\x00\x00\xc0\xa3', -18448, '\xc0', -3933, '\xb7'), ('16', 0, '', 0, ''), ('A\x00\x00\x00\x00\x00\x00\x00t\xeb', -18496, '\x19', 13, '')], [('08/01/2006', 0, '', 0, ''), ('16', 0, '', 0, ''), ('A[9\xb4q\x00\x00\x00\xc0\xa3', -18448, '\xc0', -3933, '\xb7'), ('13', 0, '', 0, ''), ('A\x00\x00\x00\x00\x00\x00\x00t\xeb', -18496, '\x19', 13, '')], [('09/01/2006', 0, '', 0, ''), ('18', 0, '', 0, ''), ('A[9\xb4q\x00\x00\x00\xc0\xa3', -18448, '\xc0', -3933, '\xb7'), ('15', 0, '', 0, ''), ('A\x00\x00\x00\x00\x00\x00\x00t\xeb', -18496, '\x19', 13, '')]], dtype=3D[('f1', '|S10'), ('f2', '<i2'), ('f3', '|S1'), ('f4', '<i2'),= =20 ('f5', '|S1')]) I have some missing entries, is it for that or do I have to make some chang= es=20 on the date column? thanks =2D-=20 Lionel Roubeyrie - lro...@li... LIMAIR http://www.limair.asso.fr |
From: Albert S. <fu...@gm...> - 2006-09-17 20:29:32
|
Hello all These problems were fixed in SVN just after 1.0rc1 was released. http://projects.scipy.org/scipy/numpy/changeset/3119 Regards, Albert > -----Original Message----- > From: num...@li... [mailto:numpy- > dis...@li...] On Behalf Of Achim Gaedke > Sent: 17 September 2006 22:00 > To: num...@li... > Subject: [Numpy-discussion] compile error with python2.5 > > Hi! > > I compiled numpy-1.0b5 with python2.5 on debian testing and raIn file > included from numpy/core/src/multiarraymodule.c:65: |
From: Achim G. <Ach...@ph...> - 2006-09-17 20:00:28
|
Hi! I compiled numpy-1.0b5 with python2.5 on debian testing and raIn file included from numpy/core/src/multiarraymodule.c:65: numpy/core/src/arrayobject.c: In function 'PyArray_PyIntAsIntp': numpy/core/src/arrayobject.c:564: error: 'op' undeclared (first use in this function) numpy/core/src/arrayobject.c:564: error: (Each undeclared identifier is reported only once numpy/core/src/arrayobject.c:564: error: for each function it appears in.) numpy/core/src/arrayobject.c:565: warning: cast from pointer to integer of different size numpy/core/src/arrayobject.c: In function 'PyArray_PyIntAsInt': numpy/core/src/arrayobject.c:654: warning: cast from pointer to integer of different size numpy/core/src/arrayobject.c: In function 'array_subscript': numpy/core/src/arrayobject.c:2694: error: request for member 'ob_type' in something not a structure or union numpy/core/src/arrayobject.c:2694: error: request for member 'ob_type' in something not a structure or union numpy/core/src/arrayobject.c:2694: error: request for member 'ob_type' in something not a structure or union In file included from numpy/core/src/multiarraymodule.c:65: numpy/core/src/arrayobject.c: In function 'PyArray_PyIntAsIntp': numpy/core/src/arrayobject.c:564: error: 'op' undeclared (first use in this function) numpy/core/src/arrayobject.c:564: error: (Each undeclared identifier is reported only once numpy/core/src/arrayobject.c:564: error: for each function it appears in.) numpy/core/src/arrayobject.c:565: warning: cast from pointer to integer of different size numpy/core/src/arrayobject.c: In function 'PyArray_PyIntAsInt': numpy/core/src/arrayobject.c:654: warning: cast from pointer to integer of different size numpy/core/src/arrayobject.c: In function 'array_subscript': numpy/core/src/arrayobject.c:2694: error: request for member 'ob_type' in something not a structure or union numpy/core/src/arrayobject.c:2694: error: request for member 'ob_type' in something not a structure or union numpy/core/src/arrayobject.c:2694: error: request for member 'ob_type' in something not a structure or union error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -Ibuild/src.linux-i686-2.5/numpy/core/src -Inumpy/core/include -Ibuild/src.linux-i686-2.5/numpy/core -Inumpy/core/src -Inumpy/core/include -I/home/achim/local/include/python2.5 -c numpy/core/src/multiarraymodule.c -o build/temp.linux-i686-2.5/numpy/core/src/multiarraymodule.o" failed with exit status 1 n into errors I fixed it by guessing the correct arguments. The patch is attached. I hope someone can revise this fix. Achim |
From: Martin W. <mar...@gm...> - 2006-09-17 18:25:40
|
Hi list, does anybody know, if in C in the PyArray_Descr struct it is safe to manually change descr->elsize and descr->alignment as long as these are compatible and descr->elsize is large enough to hold all fields? Of course I mean before any array is constructed using descr. Thanks, Martin. |
From: Aksel B. <kaa...@ce...> - 2006-09-17 13:20:04
|
Hi =20 d V x I d A d G o R m A s V w A f L p I p U l M l C q I n A t L e I z S e A x M g B u I b E o N k X d A w N w A q X =20 S y AV o E up to 6 t 0 % w e it c h http://www.ylutriamoa.info <http://www.ylutriamoa.info>=20 |
From: Martin W. <mar...@gm...> - 2006-09-17 00:38:59
|
On Sunday 17 September 2006 00:36, Travis Oliphant wrote: > Martin Wiechert wrote: > > Hi list, > > > > Apparently r_[x,x] does not necessarily have the same dtype as x: > >>>> from numpy import * > >>>> dt = dtype ([('a', 'b'), ('f4', 'i4')]) > >>>> x = zeros ((1,), dt) > >>>> x.dtype > > > > dtype([('a', '|i1'), ('f4', '<i4')]) > > Did you mean to make a data-type that was a 1-byte integer followed by a > 4-byte integer with field names of 'a' and 'f4'? > > Perhaps you meant: > > dtype([('a','f4'),('b','i4')]) > > which is a 4-byte float followed by a 4-byte integer. > Thanks for the hint. Actually, the code I posted was just for the sake of example. Still you correctly read my thoughts. Martin. > > -Travis > > > > > ------------------------------------------------------------------------- > 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: Travis O. <oli...@ie...> - 2006-09-16 22:36:08
|
Martin Wiechert wrote: > Hi list, > > Apparently r_[x,x] does not necessarily have the same dtype as x: > > >>>> from numpy import * >>>> dt = dtype ([('a', 'b'), ('f4', 'i4')]) >>>> x = zeros ((1,), dt) >>>> x.dtype >>>> > dtype([('a', '|i1'), ('f4', '<i4')]) > Did you mean to make a data-type that was a 1-byte integer followed by a 4-byte integer with field names of 'a' and 'f4'? Perhaps you meant: dtype([('a','f4'),('b','i4')]) which is a 4-byte float followed by a 4-byte integer. -Travis |
From: Travis O. <oli...@ie...> - 2006-09-16 22:28:34
|
Martin Wiechert wrote: > Hi list, > > Apparently r_[x,x] does not necessarily have the same dtype as x: > > >>>> from numpy import * >>>> dt = dtype ([('a', 'b'), ('f4', 'i4')]) >>>> x = zeros ((1,), dt) >>>> x.dtype >>>> > dtype([('a', '|i1'), ('f4', '<i4')]) > >>>> r_[x,x].dtype >>>> > dtype('object') > >>>> import numpy >>>> numpy.version.version >>>> > '1.0rc1.dev3171' > > Does anybody know how to avoid this change of dtype? > Thanks for the check. It should be fixed now in SVN. There was an inappropriate force to object arrays which neglected this case. -Travis |
From: Martin W. <mar...@gm...> - 2006-09-16 18:58:04
|
Hi list, Apparently r_[x,x] does not necessarily have the same dtype as x: >>> from numpy import * >>> dt = dtype ([('a', 'b'), ('f4', 'i4')]) >>> x = zeros ((1,), dt) >>> x.dtype dtype([('a', '|i1'), ('f4', '<i4')]) >>> r_[x,x].dtype dtype('object') >>> >>> import numpy >>> numpy.version.version '1.0rc1.dev3171' Does anybody know how to avoid this change of dtype? Thanks, Martin. |