How to access metadata fields in HDF4 files in Python?

2019-05-21 Thread Madhavan Bomidi
Hi, I have imported the following libraries to access the data sets from a HDF4 file in Python 2.7 from pyhdf.SD import SD, SDC hdf = SD(FILE_NAME, SDC.READ) hdf.datasets() While I don't have any issues in accessing the contents of the data sets, I am unable to access the metadata. I have ea

Re: CPython compiled failed in macOS

2019-05-21 Thread Inada Naoki
You may need to clean your source tree. "make distclean" or "git clean -fx". 2019年5月22日(水) 13:34 Windson Yang : > > version: macOS 10.14.4, Apple LLVM version 10.0.1 (clang-1001.0.46.4). > > I cloned the CPython source code from GitHub then compiled it which used to > work quite well. However, I

CPython compiled failed in macOS

2019-05-21 Thread Windson Yang
version: macOS 10.14.4, Apple LLVM version 10.0.1 (clang-1001.0.46.4). I cloned the CPython source code from GitHub then compiled it which used to work quite well. However, I messed up my terminal a few days ago for installing gdb. Now when I try to compile the latest CPython source code with ./co

Re: What does at 0x0402C7B0> mean?

2019-05-21 Thread Cameron Simpson
On 21May2019 18:11, CrazyVideoGamez wrote: I tried doing a list comprehension. I typed: favorite_fruits = ['watermelon', 'blackberries'] print(fruit for fruit in favorite_fruits) And I got: at 0x0402C7B0> What does this mean and what do I have to fix? It means you didn't make a list compr

Re: What does at 0x0402C7B0> mean?

2019-05-21 Thread Terry Reedy
On 5/21/2019 9:11 PM, CrazyVideoGamez wrote: I tried doing a list comprehension. I typed: favorite_fruits = ['watermelon', 'blackberries'] print(fruit for fruit in favorite_fruits) And I got: at 0x0402C7B0> What does this mean It means that the expression (fruit for fruit in favorite_fruits)

Re: What does at 0x0402C7B0> mean?

2019-05-21 Thread Chris Angelico
On Wed, May 22, 2019 at 11:16 AM CrazyVideoGamez wrote: > > I tried doing a list comprehension. I typed: > > favorite_fruits = ['watermelon', 'blackberries'] > print(fruit for fruit in favorite_fruits) > > And I got: > > at 0x0402C7B0> > > What does this mean and what do I have to fix? It means

What does at 0x0402C7B0> mean?

2019-05-21 Thread CrazyVideoGamez
I tried doing a list comprehension. I typed: favorite_fruits = ['watermelon', 'blackberries'] print(fruit for fruit in favorite_fruits) And I got: at 0x0402C7B0> What does this mean and what do I have to fix? -- https://mail.python.org/mailman/listinfo/python-list

Python WebApp where Python runs on the client's machine using Pyodide

2019-05-21 Thread Simon Biggs
It's still a massive work in progress, but I though people here might be interested in the progress made thus far: https://app.pymedphys.com/ It is a file processing application. It has input files and output files. Users select input files from their computer, select a script to run (or edit a sc

Re: Python 3.8 new deprecations

2019-05-21 Thread Robin Becker
Thanks for letting me know. On Tue, 21 May 2019, 17:04 Inada Naoki, wrote: > I plan to remove int support in Python 3.10. > > If this warning is ignored, the extension module will be broken silently > from 3.10. > It is because C is not typesafe here. > > Regards, > > > 2019年5月22日(水) 0:56 Robin

Re: Python 3.8 new deprecations

2019-05-21 Thread Ethan Furman
On 05/21/2019 08:51 AM, Robin Becker wrote: Marius Gedminas has kindly been doing some work with reportlab and python 3.8a1 He reports this new deprecation warning from a c extension build DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats Currently we build the extensions

Re: Python 3.8 new deprecations

2019-05-21 Thread Inada Naoki
I plan to remove int support in Python 3.10. If this warning is ignored, the extension module will be broken silently from 3.10. It is because C is not typesafe here. Regards, 2019年5月22日(水) 0:56 Robin Becker : > Marius Gedminas has kindly been doing some work with reportlab and python > 3.8a1

Python 3.8 new deprecations

2019-05-21 Thread Robin Becker
Marius Gedminas has kindly been doing some work with reportlab and python 3.8a1 He reports this new deprecation warning from a c extension build DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats Currently we build the extensions for 2.7 3.4-3.7 Windows 32 & 64 MacOS and lin

Re: Why Python has no equivalent of JDBC of Java?

2019-05-21 Thread Paul Moore
On Tue, 21 May 2019 at 13:50, Adriaan Renting wrote: > > > I think it's partially a design philosophy difference. > > Java was meant to be generic, run anywhere and abstract and hide > differences in its underlying infrastructure. This has led to the Java > VM, and also JDBC I guess. > > Python wa

Re: Why Python has no equivalent of JDBC of Java?

2019-05-21 Thread Adriaan Renting
I think it's partially a design philosophy difference. Java was meant to be generic, run anywhere and abstract and hide differences in its underlying infrastructure. This has led to the Java VM, and also JDBC I guess. Python was more of a script interpreted C-derivative, much closer to the bare

Re: How to split a list type array into float array?

2019-05-21 Thread Ervin Hegedüs
On Tue, May 21, 2019 at 03:38:43AM -0700, Madhavan Bomidi wrote: > Hi, > > I have the following list type data: > > [' 29.7963 29.6167 29.4371 29.2574 29.0778 28.8982 28.7185 > 28.5389 28.3593 28.1797 28. 27.8204 27.6408 27.4611 27.2815 > 27.1019 26.9223 2

Re: How to split a list type array into float array?

2019-05-21 Thread Alister via Python-list
On Tue, 21 May 2019 03:38:43 -0700, Madhavan Bomidi wrote: > Hi, > > I have the following list type data: > > [' 29.7963 29.6167 29.4371 29.2574 29.0778 28.8982 28.7185 > 28.5389 28.3593 28.1797 28. 27.8204 27.6408 27.4611 > 27.2815 27.1019 26.9223 26.7426

How to split a list type array into float array?

2019-05-21 Thread Madhavan Bomidi
Hi, I have the following list type data: [' 29.7963 29.6167 29.4371 29.2574 29.0778 28.8982 28.7185 28.5389 28.3593 28.1797 28. 27.8204 27.6408 27.4611 27.2815 27.1019 26.9223 26.7426 26.5630 26.3834 26.2037 26.0241 25.8445 25.6649 25.4852

Re: How to concatenate strings with iteration in a loop?

2019-05-21 Thread Paul Moore
On Tue, 21 May 2019 at 09:25, Frank Millman wrote: > > On 2019-05-21 9:42 AM, Madhavan Bomidi wrote: > > Hi, > > > > I need to create an array as below: > > > > tempStr = year+','+mon+','+day+','+str("{:6.4f}".format(UTCHrs[k]))+','+ \ > > str("{:9.7f}".format(AExt[k,0]))+','+str({:9.7f}".format(A

Re: How to concatenate strings with iteration in a loop?

2019-05-21 Thread Frank Millman
On 2019-05-21 9:42 AM, Madhavan Bomidi wrote: Hi, I need to create an array as below: tempStr = year+','+mon+','+day+','+str("{:6.4f}".format(UTCHrs[k]))+','+ \ str("{:9.7f}".format(AExt[k,0]))+','+str({:9.7f}".format(AExt[k,1]))+','+ \ str("{:9.7f}".format(AExt[k,2]))+','+str("{:9.7f}".format(

How to concatenate strings with iteration in a loop?

2019-05-21 Thread Madhavan Bomidi
Hi, I need to create an array as below: tempStr = year+','+mon+','+day+','+str("{:6.4f}".format(UTCHrs[k]))+','+ \ str("{:9.7f}".format(AExt[k,0]))+','+str({:9.7f}".format(AExt[k,1]))+','+ \ str("{:9.7f}".format(AExt[k,2]))+','+str("{:9.7f}".format(AExt[k,3]))+','+ \ str("{:9.7f}".format(AExt[k,4