Ignore:
Timestamp:
Jan 23, 2011 2:46:28 PM (14 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
5385a9e
Parents:
88989768
Message:

fixed a bug in importing time and extrapolation string on report

File:
1 edited

Legend:

Unmodified
Added
Removed
  • invariantview/perspectives/invariant/invariant_state.py

    r890a909b r5dc6d84  
    22""" 
    33 
    4 import time 
     4#import time 
    55import os 
    66import sys 
     
    252252        """ 
    253253        from xml.dom.minidom import getDOMImplementation 
    254         #import time 
     254        import time 
    255255        timestamp = time.time() 
    256256        # Check whether we have to write a standalone XML file 
     
    480480                    bool_0 = extra[0].split("=") 
    481481                    bool_1 = extra[1].split("=") 
    482                     s_7 = " " + bool_0[0] + "Q region = " + bool_0[1] 
    483                     s_8 = " " + bool_1[0] + "Q region = " + bool_1[1] 
     482                    s_8 = " " + bool_0[0] + "Q region = " + bool_0[1] 
     483                    s_7 = " " + bool_1[0] + "Q region = " + bool_1[1] 
    484484                elif item[0] == "npts low": 
    485485                    s_9 = item[1] 
    486                 elif item[0] == " npts high": 
     486                elif item[0] == "npts high": 
    487487                    s_10 = item[1] 
    488488                elif item[0] == "volume fraction": 
     
    494494                    error = item[1].split("+-")[1].strip() 
    495495                    s_18 = val + " &plusmn; " + error 
     496                elif item[0].split("(")[0].strip() == "power low": 
     497                    s_11 = item[0]+" ="+item[1] 
    496498                elif item[0].split("(")[0].strip() == "power high": 
    497                     s_11 = item[0]+" ="+item[1] 
    498                 elif item[0].split("(")[0].strip() == "power low": 
    499499                    s_12 = item[0]+" ="+item[1] 
    500500                elif item[0].split("[")[0].strip() == "Q* from low Q extrapolation": 
Note: See TracChangeset for help on using the changeset viewer.