Re: problem with netCDF4 OpenDAP

2015-08-14 Thread Tom P
On 08/13/2015 05:55 PM, Jason Swails wrote: On Thu, Aug 13, 2015 at 6:32 AM, Tom P mailto:werot...@freent.dd>> wrote: I'm having a problem trying to access OpenDAP files using netCDF4. The netCDF4 is installed from the Anaconda package. According to their changelog, openDAP is supp

Re: python command not working

2015-08-14 Thread sam . heyman
On Wednesday, April 22, 2009 at 8:36:21 AM UTC+1, David Cournapeau wrote: > On Wed, Apr 22, 2009 at 4:20 PM, 83nini <83n...@gmail.com> wrote: > > Hi guys, > > > > I'm new to python, i downloaded version 2.5, opened windows (vista) > > command line and wrote "python", this should take me to the pyth

Re: [Back off topic] - Hooking Mechanism when Entering and Leaving a Try Block

2015-08-14 Thread Sven R . Kunze
Am 14-Aug-2015 03:00:05 +0200 schrieb torr...@gmail.com: > But I digress. We get sidetracked rather easily around here. You don't say. ;) - FreeMail powered by mail.de - MEHR SICHERHEIT, SERIOSITÄT UN

Re: problem with netCDF4 OpenDAP

2015-08-14 Thread Jason Swails
> On Aug 14, 2015, at 3:18 AM, Tom P wrote: > > Thanks for the reply but that is not what the documentation says. > > http://unidata.github.io/netcdf4-python/#section8 > "Remote OPeNDAP-hosted datasets can be accessed for reading over http if a > URL is provided to the netCDF4.Dataset construc

Re: problem with netCDF4 OpenDAP

2015-08-14 Thread Tom P
On 08/14/2015 03:15 PM, Jason Swails wrote: On Aug 14, 2015, at 3:18 AM, Tom P wrote: Thanks for the reply but that is not what the documentation says. http://unidata.github.io/netcdf4-python/#section8 "Remote OPeNDAP-hosted datasets can be accessed for reading over http if a URL is provide

problem with netCDF4 OpenDAP

2015-08-14 Thread George Trojan
Subject: problem with netCDF4 OpenDAP From: Tom P Date: 08/13/2015 10:32 AM To: python-list@python.org I'm having a problem trying to access OpenDAP files using netCDF4. The netCDF4 is installed from the Anaconda package. According to their changelog, openDAP is supposed to be supported. ne

New Intermediate Python Book

2015-08-14 Thread chuks155
Hi folks, I have just finished my first ebook titled Intermediate Python. It is targeted at users from other languages or that have just finished a python programming beginners tutorial. It is available at https://leanpub.com/intermediatepython. Content includes writings on python data model,

Fixing tkinter on 3.5.0rc1 for some Windows machines.

2015-08-14 Thread Terry Reedy
Symptom: Using 3.5.0rc1 on Windows machines without VS2015 installed, import tkinter or use something that does so (Idle, Turtle, turtledemo, ...) and get message "Your Python may not be configured for Tk." Fix: In install directory, find /DLLs. In that find /MicrosoftVC140.CRT with one file v

Help with Flask (database stage of the Flask Mega Tutorial by Miguel Grinberg)

2015-08-14 Thread Jacob MacRitchie
http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-iv-database I've just finished making db_create.py (you can ctrl+f to it) and am getting... from migrate.versioning import api ImportError: No module named 'migrate' ...I diffed everything at this stage of the tutorial so I know I

Re: Vaga Java (Belgica, com tudo pago)

2015-08-14 Thread David H. Lipman
From: "leo kirotawa" Wondering why a position for Java/JS was sent to this list...just wondering... Because spammers make no sense. -- Dave Multi-AV Scanning Tool - http://multi-av.thespykiller.co.uk http://www.pctipp.ch/downloads/dl/35905.asp -- https://mail.python.org/mailman/listinfo

Re: How to model government organization hierarchies so that the list can expand and compress

2015-08-14 Thread Friedrich Rentsch
On 08/13/2015 09:10 PM, Alex Glaros wrote: It's like the desktop folder/directory model where you can create unlimited folders and put folders within other folders. Instead of folders, I want to use government organizations. Example: Let user create agency names: Air Force, Marines, Navy, Ar

Re: How to model government organization hierarchies so that the list can expand and compress

2015-08-14 Thread Alex Glaros
Frank, thanks for describing the terminology of what I'm trying to do. 1. Do the recursive join Postgres examples you linked to, use a data structure where the child has the adjoining parent-ID? Examples look great. 2. Not 100% sure that hierarchical is the perfect solution but will go with tha

Re: How to model government organization hierarchies so that the list can expand and compress

2015-08-14 Thread Rustom Mody
On Saturday, August 15, 2015 at 5:12:13 AM UTC+5:30, Alex Glaros wrote: > 3. Could not find Laura's response. Was it deleted? I dont see it either. I expect its in some other thread Laura's mail client is doing funny things to threading... Something Ive been noticing for a few days -- https://ma

Re: problem with netCDF4 OpenDAP

2015-08-14 Thread Michael Ströder
Tom P wrote: > yes the file does appear to be there, I can download it and I can open and > read the URL using urllib. Since there are a whole bunch of files in the > directory, I really need MFDataset, but according to the documentation that > doesn't work with URLs. Maybe the solution really is

Re: How to model government organization hierarchies so that the list can expand and compress

2015-08-14 Thread Laura Creighton
In a message of Fri, 14 Aug 2015 16:42:00 -0700, Alex Glaros writes: >Frank, thanks for describing the terminology of what I'm trying to do. > >1. Do the recursive join Postgres examples you linked to, use a data structure >where the child has the adjoining parent-ID? Examples look great. > >2. No

Re: How to model government organization hierarchies so that the list can expand and compress

2015-08-14 Thread Frank Millman
"Alex Glaros" wrote in message news:ae4e203d-c664-4388-af0b-41c41d5ec...@googlegroups.com... Frank, thanks for describing the terminology of what I'm trying to do. 1. Do the recursive join Postgres examples you linked to, use a data structure where the child has the adjoining parent-ID? Exam

Re: AttributeError

2015-08-14 Thread Ben Finney
Ltc Hotspot writes: > So calling people stupid and ignorant on the internet makes you sexual > arousal and to masturbate with yourself With that, you have worn out your welcome here. Please don't post here again until you can refrain from puerile demeaning insults. -- \ “Alternative e

Global command doesn't seem to work...

2015-08-14 Thread Dwight GoldWinde
Inside of Functions.py I define the function: def subwords (): global subwordsDL subwordsDL = {'enjoy':['like', 'appreciate', 'love', 'savor'], 'hurt':['damage', 'suffering']} print (subwordsDL) Return In my test code module, the code is: global subwordsDL from Functions import subwords subwords

Python 2.7: _PyLong_NumBits() Segfault

2015-08-14 Thread Adam Meily
I am working on a CPython library that serializes Python objects to disk in a custom format. I'm using _PyLong_NumBits() to determine whether PyLong_AsLong(), PyLong_AsUnsignedLong(), PyLong_AsLongLong(), or PyLong_AsUnsignedLongLong() should be used. In Python 3.x, I'm able to determine how many

memory control in Python

2015-08-14 Thread Ping Liu
Dear All, I am working on an optimization problem, where we are trying to minimize some indicators like energy usage, energy cost, CO2 emission. In this problem, we have a bunch of energy conversion technologies for electricity and thermal purpose, such as heat pump, boiler, chiller, etc.. We are

Re: Global command doesn't seem to work...

2015-08-14 Thread Chris Angelico
On Thu, Aug 13, 2015 at 9:06 PM, Dwight GoldWinde wrote: > global subwordsDL > from Functions import subwords > subwords () > print (subwordsDL) > print (subwordsDL['enjoy'][2]) In Python, "global" means module-level. The easiest way to do this would be to import the Functions module directly (ra