Changeset 72670ad2 in sasview


Ignore:
Timestamp:
Jan 31, 2018 9:25:11 AM (7 years ago)
Author:
krzywon
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
1f4d708
Parents:
9d8d52c
Message:

Incorporate suggested changes and make py3 compatible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/basepage.py

    r9d8d52c r72670ad2  
    26752675        if disp_func is not None: 
    26762676            try: 
    2677                 index = POLYDISPERSITY_MODELS.values().index(disp_func.__class__) 
    2678                 return index, POLYDISPERSITY_MODELS.keys()[index] 
     2677                return (list(POLYDISPERSITY_MODELS).index(disp_func.type), 
     2678                       disp_func.type) 
    26792679            except ValueError: 
    26802680                pass  # Fall through to default class 
Note: See TracChangeset for help on using the changeset viewer.