c77d8e21b7ec2db27d917d8eb3f62fd25f4356f1,pyemma/util/types.py,,is_iterable_of_float,#,66

Before Change


    if not is_iterable(l):
        return False

    return all(is_float(value) for value in l)

def is_list_of_float(l):
    rChecks if l is a list of integers

After Change



def is_iterable_of_float(l):
    r Checks if l is iterable and contains only floating point types 
    return is_iterable_of_types(l, numbers.Real)

def is_list_of_float(l):
    rChecks if l is a list of integers
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: markovmodel/PyEMMA
Commit Name: c77d8e21b7ec2db27d917d8eb3f62fd25f4356f1
Time: 2019-11-19
Author: clonker@gmail.com
File Name: pyemma/util/types.py
Class Name:
Method Name: is_iterable_of_float


Project Name: hmmlearn/hmmlearn
Commit Name: e6950084bbf5671b047046738b9f5e52ee9ed715
Time: 2018-10-23
Author: anntzer.lee@gmail.com
File Name: lib/hmmlearn/hmm.py
Class Name: MultinomialHMM
Method Name: _check_input_symbols


Project Name: markovmodel/PyEMMA
Commit Name: c77d8e21b7ec2db27d917d8eb3f62fd25f4356f1
Time: 2019-11-19
Author: clonker@gmail.com
File Name: pyemma/util/types.py
Class Name:
Method Name: is_iterable_of_int