łň
/Mc
@ s] d Z d d k Z d d k Z d d k Z d d k Z e i d Z e i d Z d Z e i i
e d Z d Z d Z
d d
d g Z d Z d
Z d Z d Z d Z d d d Z d d Z e d j oz e Z e d Z e GHx_ e D]S Z e GHe e \ Z Z x e D] Z d e GHq Wx e D] Z d e d GHq:Wqţ Wn d S( s^
Read the Single Particle Reconstruction web page:
/usr8/spider/docs/techs/recon/mr.html
Generate an object containing the subdirectories and their batch files.
Expects each section to begin with:
"These procedures should be run in the Directory directory."
Subdirectories need to have the format:
"Subdirectory(ies): dir1, dir2"
Loads anything in a link in the 'newprogs' directory.
---
Usage:
D = read_spr_page.getproject()
returns a dictionary D where
D.keys() = [project directories]
D[dir] = ( [procs], [subdirs] )
A special key 'dirlist' has an ordered list of directories.
i˙˙˙˙Ns# [sS]ubdirector(y|ies) *: *.+s ' t subdirectoriesi t =R s -->t ,( R R R t replacet splitt appendR ( R t subsR R t sst sub( ( sH /local/valcour.usr10/user8-copy/spider/docs/techs/recon/read_spr_page.pyt getSubdirectoriesK s c C sP t i | d } | d j o) | | d } t i | } | d Sn d Sd S( s1 gets xxx from '' R i˙˙˙˙i i R N( R R R ( R R t d( ( sH /local/valcour.usr10/user8-copy/spider/docs/techs/recon/read_spr_page.pyt getDirectory[ s
c C s t | } t i i | d S( s: get x.bat from a line of text i˙˙˙˙( R t ost pathR ( R t batfile( ( sH /local/valcour.usr10/user8-copy/spider/docs/techs/recon/read_spr_page.pyt get_batfilef s c C s | d j o
t } n t | d } | i } | i d } d } | d j o h } g } n5 | } | i d o | d } n g } | | d