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/plottools/fitDialog.py

    • Property mode changed from 100644 to 100755
    r7432acb rfa81e94  
    11import wx 
    2 from plottables import Theory1D 
     2from .plottables import Theory1D 
    33import math 
    44import numpy as np 
    5 import fittings 
    6 import transform 
     5from . import fittings 
     6from . import transform 
    77import sys 
    88 
     
    8686        self.layout() 
    8787        # Receives the type of model for the fitting 
    88         from LineModel import LineModel 
     88        from .LineModel import LineModel 
    8989        self.model = LineModel() 
    9090        # Display the fittings values 
     
    671671                return x 
    672672            else: 
    673                 raise ValueError, "cannot compute log of a negative number" 
     673                raise ValueError("cannot compute log of a negative number") 
    674674 
    675675    def floatInvTransform(self, x): 
     
    734734        except: 
    735735            msg = "LinearFit.set_fit_region: fit range must be floats" 
    736             raise ValueError, msg 
     736            raise ValueError(msg) 
    737737        self.xminFit.SetValue(format_number(xmin)) 
    738738        self.xmaxFit.SetValue(format_number(xmax)) 
Note: See TracChangeset for help on using the changeset viewer.