astrofrog / pyavm

Pure-python AVM library
http://astrofrog.github.io/pyavm/
Other
20 stars 9 forks source link

Failure to read this file #32

Closed keflavich closed 7 years ago

keflavich commented 8 years ago

This file has an xmp packet:

outflow_co_redblue_naco_green_asinhgreen

The first few lines of the file:

<89>PNG^M
^Z
^@^@^@^MIHDR^@^@^Q¨^@^@^Q¤^H^B^@^@^@":~é^@^@^P[iTXtXML:com.adobe.xmp^@^@^@^@^@<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:avm="http://www.communicatingastronomy.org/avm/1.0/"

I'm reading this in py3. I am not sure what's going on, but there is clearly some issue with the reader.

keflavich commented 8 years ago

It's a py3 problem; I have the solution in https://github.com/astrofrog/pyavm/pull/31, which is just to compare the string to a bytestring

astrofrog commented 7 years ago

Should be fixed in PyAVM v0.9.3