Guest User

Untitled

a guest
Dec 15th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. def read_file(file_names_2):
  2. global templet_1h
  3. import numpy as np
  4. Delete_elements=["arr_0"]
  5. evaluate_1= "templet_1h=np.load("./" +file_names_2+ ".npz")";
  6. exec(evaluate_1,globals())
  7. for i in (templet_1h.files):
  8. if not ( (i in Delete_elements) ):
  9. evaluate_2= i+"="+"templet_1h["" + i + ""]";
  10. exec(evaluate_2,globals())
  11. del templet_1h
  12. return
Add Comment
Please, Sign In to add comment