<div>Just downloaded it and have not had a chance to check it out.</div>
<div> </div>
<div>Thanks, </div>
<div>Bryan<br><br></div>
<div class="gmail_quote">On Dec 12, 2007 6:18 PM, Eric Brunson <<a href="mailto:brunson@brunson.com">brunson@brunson.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">Bryan Fodness wrote:<br>> I am trying to parse a DICOMRT file, which is a radiation therapy<br>> DICOM file.<br><br></div>I'm a little late to the party, but you may want to take a look at this:
<br><br><a href="http://mypage.iu.edu/~mmiller3/python/#dycom" target="_blank">http://mypage.iu.edu/~mmiller3/python/#dycom</a><br>
<div class="Ih2E3d"><br><br><br>><br>> First, I get different outputs from the two methods below.<br>><br>> for line in file('file.dcm', 'rb'):<br>> print line<br>><br>> inp = open('
file.dcm', 'rb')<br>> print inp.readlines()<br>><br>> Second, I have never tried to parse a binary file. I could use a few<br>> hints to get started.<br>><br>> Bryan<br>><br>> --<br>> "The game of science can accurately be described as a never-ending
<br>> insult to human intelligence." - Joćo Magueijo<br></div>> ------------------------------------------------------------------------<br>><br>> _______________________________________________<br>> Tutor maillist -
<a href="mailto:Tutor@python.org">Tutor@python.org</a><br>> <a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>><br><br><br></blockquote></div>
<br><br clear="all"><br>-- <br>"The game of science can accurately be described as a never-ending insult to human intelligence." - Joćo Magueijo