johnbachman / py-fcm

Automatically exported from code.google.com/p/py-fcm
0 stars 1 forks source link

FCMdata.copy() is nonfunctional. #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. import fcm
2. a = fcm.loadsFCS('/path/to/test/file')
3. a.copy()

What is the expected output? What do you see instead?

Expected to see fcm data type copied, including array (etc etc). Get dict error 
(can't find key): 
KeyError:0

What version of the product are you using? On what operating system?
Mercurial version as of 20120217 (rev 0a443d881ef7 ). Using python 2.7 and 
Ubuntu Linux 11.10.

Please provide any additional information below.

I'm new to py-fcm and python in general (it's great so far!), but it appears 
that the command to re-make an fcm object does not have the correct 
order/syntax, perhaps following the syntax for an older version. I included a 
patch that fixed the issue for me. I also removed the 'tmarkers' input as it 
appears to be deprecated.

Original issue reported on code.google.com by nbol...@gmail.com on 19 Feb 2012 at 12:30

Attachments:

GoogleCodeExporter commented 9 years ago
applied a slightly modified patch to preserve the view tree, and added a unit 
test.  revision 6ee3bfdeb206 should fix the issue.

Original comment by Jacob.Frelinger@gmail.com on 24 Feb 2012 at 4:37