Commit 2daa6f41 authored by constantin.hoeing's avatar constantin.hoeing
Browse files

Upload New File

parent 845bcfe0
written on Sep 2. 2019 by
Constantin Höing
Inst. Fuer Numerische und Angewandte Mathematik
Universität Göttingen
Description: .npz-file or .npz for reading binary files into python.
Input: 'filename' must specify the entire directory path
'Type' is either "npy" or "npz"
Output: reads data from 'filename'
Usage: data=Rbin('filename','Type') """
from numpy import load
def Rbin(file, Type):
if Type == "npy":
A = load(file)
return A
data = load(file)
return data
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment