5874885c1736edc321ec202cb6e15d88e4324a5c,mne/externals/pymatreader/utils.py,,_handle_ndarray,#Any#,143

Before Change


def _handle_ndarray(values):
    Handle conversion of ndarrays.
    values = numpy.squeeze(values).T
    if values.dtype in ("uint8", "uint16", "uint32"):
        values = _handle_hdf5_strings(values)

    if isinstance(values, numpy.ndarray) and \
            values.size == 1:

        values = values.item()

After Change


    values = numpy.squeeze(values).T
    if (isinstance(values, numpy.ndarray) and
            values.dtype.names == ("real", "imag")):
        values = numpy.array(values.view(numpy.complex))

    if isinstance(values, numpy.ndarray) and \
            values.size == 1:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: mne-tools/mne-python
Commit Name: 5874885c1736edc321ec202cb6e15d88e4324a5c
Time: 2020-05-19
Author: thomas.hartmann@th-ht.de
File Name: mne/externals/pymatreader/utils.py
Class Name:
Method Name: _handle_ndarray


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 688aa83baf45b285cbdace7cf641da91a111c5ad
Time: 2018-06-24
Author: wang.alex.c@gmail.com
File Name: src/models.py
Class Name: MultiTaskModel
Method Name: _lm_forward


Project Name: mne-tools/mne-python
Commit Name: 0c6f22001b617124a8188e94d845c627128b9a77
Time: 2020-04-04
Author: larson.eric.d@gmail.com
File Name: mne/io/tag.py
Class Name:
Method Name: _read_matrix


Project Name: EpistasisLab/tpot
Commit Name: 2ab8c1444facbd46df8767a5badda5b9f1a50c29
Time: 2016-08-01
Author: supacoofoo@gmail.com
File Name: tpot/tpot.py
Class Name:
Method Name: main