Functions that implement basic functionality that will be used in the library.
A set of functions that provide usefull functionality
filter_files
(files
, include
=[]
, exclude
=[]
)
Filter list of files using a list of strings to inculde and/or exclude
ls
(x
, recursive
=False
, include
=[]
, exclude
=[]
)
List files in folder, if recursive is True also list subfolders
hdf_attr_check
(attr
, hdf
, default
)
Check if attribute is in hdf_attr_dict and return default
dict2json
(data
:dict
, file
)
Writes json file from dict
monthlen
(year
, month
)
Gives lenght of the month
InOutPath
(input_path
:str
, output_path
:str
, mkdir
=True
)
Keeps track of an input and a output path. Creates paths if they don't exist and mkdir=True