Hi,
I am doing a bit of testing of Phoenix and floatcanvas.
In FloatCanvas.Read_MapGen we have:
data = map(string.strip,data)
'strip' function does not exist in Py3.
Not sure how to correct this so it work in Py2 and Py3.
Werner
Hi,
I am doing a bit of testing of Phoenix and floatcanvas.
In FloatCanvas.Read_MapGen we have:
data = map(string.strip,data)
'strip' function does not exist in Py3.
Not sure how to correct this so it work in Py2 and Py3.
Werner
There are two Read_MapGen, the above and one in fc.animation.py, similar but not the same.
What about having just one (the one in demo.FloatCanvas) and moving it to fc.utilities?
Werner
On 5/22/2014 13:13, Werner wrote:
Hi,
I am doing a bit of testing of Phoenix and floatcanvas.
In FloatCanvas.Read_MapGen we have:
data = map(string.strip,data)
'strip' function does not exist in Py3.
Not sure how to correct this so it work in Py2 and Py3.
Hi,
I am doing a bit of testing of Phoenix and floatcanvas.
In FloatCanvas.Read_MapGen we have:
data = map(string.strip,data)
'strip' function does not exist in Py3.
Wow! That is old code! Pre-dating string methods!
Something like:
Data = [ s.strip() for a in data]
Should do it.
Not sure how to correct this so it work in Py2 and Py3.
There are two Read_MapGen, the above and one in fc.animation.py, similar but not the same.
What about having just one (the one in demo.FloatCanvas) and moving it to fc.utilities?
That would be better, yes. It's only for the demo, anyway, so another
option would be to store the data in a format that wouldn't require
special parsing -- JSON maybe? Or even a pickle.
Chris
On May 22, 2014, at 7:04 AM, Werner <wernerfbd@gmx.ch> wrote:
On 5/22/2014 13:13, Werner wrote:
Werner
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Chris,
Could you review PR FloatCanvas and sized_controls by wernerfb · Pull Request #78 · RobinD42/Phoenix · GitHub
Just made demo and unittests run on Py3, didn't get around to merge the Read_MapGen method.
Werner
On 5/22/2014 16:52, Chris Barker - NOAA Federal wrote:
On May 22, 2014, at 7:04 AM, Werner <wernerfbd@gmx.ch> wrote:
On 5/22/2014 13:13, Werner wrote:
Hi,I am doing a bit of testing of Phoenix and floatcanvas.
In FloatCanvas.Read_MapGen we have:
data = map(string.strip,data)
'strip' function does not exist in Py3.
Wow! That is old code! Pre-dating string methods!
Something like:
Data = [ s.strip() for a in data]Should do it.
Not sure how to correct this so it work in Py2 and Py3.
There are two Read_MapGen, the above and one in fc.animation.py, similar but not the same.
What about having just one (the one in demo.FloatCanvas) and moving it to fc.utilities?
That would be better, yes. It's only for the demo, anyway, so another
option would be to store the data in a format that wouldn't require
special parsing -- JSON maybe? Or even a pickle.Chris
Werner
--
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxPython-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Niderenweg 6
CH-9043 Trogen
Tel: +41 71 340 06 30
Mob: +41 76 374 81 07
Hi Chris,
Could you review PR FloatCanvas and sized_controls by wernerfb · Pull Request #78 · RobinD42/Phoenix · GitHub
done -- looks good, thanks!
-Chris
On Mon, May 26, 2014 at 4:07 AM, Werner <wernerfbd@gmx.ch> wrote:
Just made demo and unittests run on Py3, didn't get around to merge the
Read_MapGen method.Werner
On 5/22/2014 16:52, Chris Barker - NOAA Federal wrote:
On May 22, 2014, at 7:04 AM, Werner <wernerfbd@gmx.ch> wrote:
On 5/22/2014 13:13, Werner wrote:
Hi,
I am doing a bit of testing of Phoenix and floatcanvas.
In FloatCanvas.Read_MapGen we have:
data = map(string.strip,data)
'strip' function does not exist in Py3.
Wow! That is old code! Pre-dating string methods!
Something like:
Data = [ s.strip() for a in data]Should do it.
Not sure how to correct this so it work in Py2 and Py3.
There are two Read_MapGen, the above and one in fc.animation.py,
similar but not the same.What about having just one (the one in demo.FloatCanvas) and moving it
to fc.utilities?That would be better, yes. It's only for the demo, anyway, so another
option would be to store the data in a format that wouldn't require
special parsing -- JSON maybe? Or even a pickle.Chris
Werner
--
You received this message because you are subscribed to the Google
Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to wxPython-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.--
Niderenweg 6
CH-9043 TrogenTel: +41 71 340 06 30
Mob: +41 76 374 81 07--
You received this message because you are subscribed to the Google Groups
"wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to wxPython-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov