MaciekAber / pysam

Automatically exported from code.google.com/p/pysam
0 stars 0 forks source link

"tags" property does not work correctly on 64-bit systems #47

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
# What steps will reproduce the problem?
1. Compile pysam 0.3 on a 64 bit machine
2. View the tags from a file
3. Tags will incorrectly show their type, and not naming identifier.

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

You should see the tag name, and not it's naming identifier.

# What version of the product are you using? On what operating system?

I'm running this under CentOS and Ubuntu (most recent version as of posting 
this)

# Please provide any additional information below.

Attached is a patch that fixes this issue.  Simultaneously, I cleaned up the 
routine that populates the tags property.

Original issue reported on code.google.com by vishnu...@gmail.com on 19 Oct 2010 at 9:37

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks,

Applied the patch with one modification:

if auxtype == 'A':
   value = "%c" % <char>bam_aux2A(s)

All unit tests pass (as they did before on my system.)

Note that the tags part is likely to be re-written in pysam-0.4

Bw,
Andreas

Original comment by andreas....@gmail.com on 2 Nov 2010 at 9:04