Changeset 7fec3b7 in sasmodels


Ignore:
Timestamp:
Jan 25, 2018 5:59:55 AM (6 years ago)
Author:
Adam Washington <adam.washington@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
7a516d0
Parents:
e68bae9
Message:

Futureproof MixtureParts? class for Python3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/mixture.py

    r71bf6de r7fec3b7  
    233233        return self 
    234234 
    235     def next(self): 
     235    def __next__(self): 
    236236        # type: () -> Tuple[List[Callable], CallDetails, np.ndarray] 
    237237        if self.part_num >= len(self.parts): 
     
    251251 
    252252        return kernel, call_details, values 
     253 
     254    # CRUFT: py2 support 
     255    next = __next__ 
    253256 
    254257    def _part_details(self, info, par_index): 
Note: See TracChangeset for help on using the changeset viewer.