Changeset 3e6829d in sasview for src/sas/sascalc/pr/invertor.py


Ignore:
Timestamp:
Oct 22, 2018 5:49:40 PM (6 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249
Children:
57e48ca
Parents:
7ba6470
Message:

default to floating point division in pr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/pr/invertor.py

    r952ea1f r3e6829d  
    66FIXME: The way the Invertor interacts with its C component should be cleaned up 
    77""" 
     8from __future__ import division 
    89 
    910import numpy as np 
     
    496497        try: 
    497498            cov = np.linalg.pinv(inv_cov) 
    498             err = math.fabs(chi2 / float(npts - nfunc)) * cov 
     499            err = math.fabs(chi2 / (npts - nfunc)) * cov 
    499500        except Exception as exc: 
    500501            # We were not able to estimate the errors 
Note: See TracChangeset for help on using the changeset viewer.