Skip to content

Commit

Permalink
error_prop.write_npz: Add docstrings (iss #5)
Browse files Browse the repository at this point in the history
  • Loading branch information
astrochun committed Mar 29, 2020
1 parent 2b9be57 commit 3c4dad8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Metallicity_Stack_Commons/error_prop.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@


def write_npz(path, npz_files, dict_list):
"""
Purpose:
Write numpy files with provided dictionaries
:param path: str - prefix for filename output
:param npz_files: list - contains npz file names
:param dict_list: list - contains dictionaries for each corresponding npz file
:return: Write npz files
"""
for file, dict_input in zip(npz_files, dict_list):
npz_outfile = join(path, file)
if exists(npz_outfile):
Expand Down

0 comments on commit 3c4dad8

Please sign in to comment.