GEUS-Glaciology-and-Climate/pypromice

redundancy in the download of the flag and adjustment files

BaptisteVandecrux opened this issue · 1 comments

Right now it is done through a git pull before running pypromice and later on re-downloaded in _getDF:

def _getDF(flag_url, flag_file, download=True):
'''Get dataframe from flag or adjust file. First attempt to retrieve from
URL. If this fails then attempt to retrieve from local file
Parameters
----------
flag_url : str
URL address to file
flag_file : str
Local path to file
download : bool
Flag to download file from URL
Returns
-------
df : pd.DataFrame
Flag or adjustment dataframe
'''

I'll remove the download option from _getDF so the CSV files will only be updated through the git sync prior running pypromice