Changeset 7ae2b7f in sasmodels for sasmodels/convert.py


Ignore:
Timestamp:
Apr 11, 2016 12:48:41 PM (8 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
fa5fd8d
Parents:
f619de7
Message:

still more linting; ignore numpy types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/convert.py

    r6d6508e r7ae2b7f  
    6262    # but only if we haven't already byteified it 
    6363    if isinstance(data, dict) and not ignore_dicts: 
    64         return { 
    65             _byteify(key, ignore_dicts=True): _byteify(value, ignore_dicts=True) 
    66             for key, value in data.iteritems() 
    67         } 
     64        return dict((_byteify(key, ignore_dicts=True), 
     65                     _byteify(value, ignore_dicts=True)) 
     66                    for key, value in data.items()) 
    6867    # if it's anything else, return it in its original form 
    6968    return data 
Note: See TracChangeset for help on using the changeset viewer.