Ignore:
Timestamp:
Nov 15, 2017 4:33:09 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
d4881f6a
Parents:
7c487846
Message:

Initial commit of the P(r) inversion perspective.
Code merged from Jeff Krzywon's ESS_GUI_Pr branch.
Also, minor 2to3 mods to sascalc/sasgui to enble error free setup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/pr/inversion_state.py

    • Property mode changed from 100644 to 100755
    r1fa4f736 rfa81e94  
    238238            msg = "InversionState no longer supports non-CanSAS" 
    239239            msg += " format for P(r) files" 
    240             raise RuntimeError, msg 
     240            raise RuntimeError(msg) 
    241241 
    242242        if node.get('version') and node.get('version') == '1.0': 
     
    254254                except: 
    255255                    msg = "InversionState.fromXML: Could not read " 
    256                     msg += "timestamp\n %s" % sys.exc_value 
     256                    msg += "timestamp\n %s" % sys.exc_info()[1] 
    257257                    logger.error(msg) 
    258258 
     
    434434        except: 
    435435            msg = "XML document does not contain P(r) " 
    436             msg += "information.\n %s" % sys.exc_value 
     436            msg += "information.\n %s" % sys.exc_info()[1] 
    437437            logger.info(msg) 
    438438 
     
    481481                        output.append(sas_entry) 
    482482        else: 
    483             raise RuntimeError, "%s is not a file" % path 
     483            raise RuntimeError("%s is not a file" % path) 
    484484 
    485485        # Return output consistent with the loader's api 
     
    525525            msg = "The cansas writer expects a Data1D " 
    526526            msg += "instance: %s" % str(datainfo.__class__.__name__) 
    527             raise RuntimeError, msg 
     527            raise RuntimeError(msg) 
    528528 
    529529        # Create basic XML document 
Note: See TracChangeset for help on using the changeset viewer.