fa9f9600114b5e1514e4cc696c1d02e9a3ad996d,util/misc.py,,print_array_stats,#Any#,28

Before Change



def print_array_stats(ar):
    print("shape:", ar.shape, "|", "dtype:", ar.dtype)
    print("min:", ar.min(), "| max:", ar.max(), "| median", np.median(ar))

def save_img_np(img_np, path):
    Save image (numpy array, ZYX) as a TIFF.
    with omeTifWriter.OmeTifWriter(path, overwrite_file=True) as fo:

After Change


    stat_list.append("min: {:.3f}".format(ar.min()))
    stat_list.append("max: {:.3f}".format(ar.max()))
    stat_list.append("median: {:.3f}".format(np.median(ar)))
    stat_list.append("mean: {:.3f}".format(np.mean(ar)))
    stat_list.append("std: {:.3f}".format(np.std(ar)))
    print(" | ".join(stat_list))
    // print("min:", ar.min(), "| max:", ar.max(), "| median", np.median(ar))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: AllenCellModeling/pytorch_fnet
Commit Name: fa9f9600114b5e1514e4cc696c1d02e9a3ad996d
Time: 2017-07-21
Author: chek.o@outlook.com
File Name: util/misc.py
Class Name:
Method Name: print_array_stats


Project Name: sigopt/sigopt-sklearn
Commit Name: cbf03e219e1cb25ed9330d93e7f106dbc0bf6197
Time: 2019-01-28
Author: oliviakim321@gmail.com
File Name: sigopt_sklearn/search.py
Class Name: SigOptSearchCV
Method Name: _fit


Project Name: AllenCellModeling/pytorch_fnet
Commit Name: fa9f9600114b5e1514e4cc696c1d02e9a3ad996d
Time: 2017-07-21
Author: chek.o@outlook.com
File Name: util/misc.py
Class Name:
Method Name: print_array_stats


Project Name: flow-project/flow
Commit Name: 70281193201c692fa38498b926af6f9e3730d0ce
Time: 2018-09-30
Author: vinitsky.eugene@gmail.com
File Name: flow/visualize/visualizer_rllib.py
Class Name:
Method Name: