+ parser works now with mmap and sscanf
[qpalma.git] / python / export_param.py
index 5ddcd14..be830ce 100644 (file)
@@ -8,11 +8,14 @@
 import bz2
 
 def writeStruct(fid,plif):
-   fid.write('%s_len_limits=%s\n'%(plif.name,str(plif.limits)))
-   fid.write('%s_len_penalties=%s\n'%(plif.name,str(plif.penalties)))
-   fid.write('%s_len_bins=%d\n'%(plif.name,len(plif.limits)))
+   fid.write('%s_limits=%s\n'%(plif.name,str(plif.limits)))
+   fid.write('%s_penalties=%s\n'%(plif.name,str(plif.penalties)))
+   fid.write('%s_bins=%d\n'%(plif.name,len(plif.limits)))
 
    if plif.name == 'intron':
+      fid.write('%s_len_limits=%s\n'%(plif.name,str(plif.limits)))
+      fid.write('%s_len_penalties=%s\n'%(plif.name,str(plif.penalties)))
+      fid.write('%s_len_bins=%d\n'%(plif.name,len(plif.limits)))
       fid.write('%s_len_min=%d\n'%(plif.name,plif.min_len))
       fid.write('%s_len_max=%d\n'%(plif.name,plif.max_len))
       fid.write('%s_len_transform=%s\n'%(plif.name,plif.transform))