IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39085 for trunk


Ignore:
Timestamp:
Nov 9, 2015, 12:40:50 PM (11 years ago)
Author:
mhuber
Message:

adding to regex for header string parsing in batches, basically (),

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/fits.py

    r38958 r39085  
    181181
    182182            # this regex will get param/value pairs for all header cards, ignoring comments and parsing out 'HIERACH' prefixes
    183             match = re.match('^(HIERARCH )*([a-zA-Z0-9-_\.]+)\s*=\s+\'*([a-zA-Z0-9-+_\.:\s@#]+)\'*\\/*', record)
     183#            match = re.match('^(HIERARCH )*([a-zA-Z0-9-_\.]+)\s*=\s+\'*([a-zA-Z0-9-+_\.:\s@#]+)\'*\\/*', record)
     184            ## MEH -- adding matching for (), chars since SUBTRACTION.KERNEL needs these
     185            match = re.match('^(HIERARCH )*([a-zA-Z0-9-_\.]+)\s*=\s+\'*([a-zA-Z0-9-+_\.:\s@#\(\)\,]+)\'*\\/*', record)
    184186            if match:
    185187
Note: See TracChangeset for help on using the changeset viewer.