Skip to content

Commit

Permalink
Added docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
braden6521 committed Mar 18, 2024
1 parent 42cc5a4 commit a802ab6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions opencsp/app/sofast/lib/ProcessSofastFringe.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,15 @@ def get_optic(
return facets[0]

def save_to_hdf(self, file: str, prefix: str = ''):
"""Saves data to given file. Data is stored as: PREFIX + Folder/Field_1
Parameters
----------
file : str
HDF file to save to
prefix : str
Prefix to append to folder path within HDF file (folders must be separated by "/")
"""
# Log
lt.info(f'Saving SofastFringe data to: {file:s}, in HDF5 folder: "{prefix:s}"')

Expand Down

0 comments on commit a802ab6

Please sign in to comment.