<div>Just downloaded it and have not had a chance to check it out.</div>
<div>&nbsp;</div>
<div>Thanks, </div>
<div>Bryan<br><br></div>
<div class="gmail_quote">On Dec 12, 2007 6:18 PM, Eric Brunson &lt;<a href="mailto:brunson@brunson.com">brunson@brunson.com</a>&gt; 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>&gt; I am trying to parse a DICOMRT file, which is a radiation therapy<br>&gt; DICOM file.<br><br></div>I&#39;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>&gt;<br>&gt; First, I get different outputs from the two methods below.<br>&gt;<br>&gt; for line in file(&#39;file.dcm&#39;, &#39;rb&#39;):<br>&gt; &nbsp; &nbsp; print line<br>&gt;<br>&gt; inp = open(&#39;
file.dcm&#39;, &#39;rb&#39;)<br>&gt; print inp.readlines()<br>&gt;<br>&gt; Second, I have never tried to parse a binary file. &nbsp;I could use a few<br>&gt; hints to get started.<br>&gt;<br>&gt; Bryan<br>&gt;<br>&gt; --<br>&gt; &quot;The game of science can accurately be described as a never-ending
<br>&gt; insult to human intelligence.&quot; - Joćo Magueijo<br></div>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________<br>&gt; Tutor maillist &nbsp;- &nbsp;
<a href="mailto:Tutor@python.org">Tutor@python.org</a><br>&gt; <a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>&gt;<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