The file caching in the OasisDataManager package is based on the filename rather than the hash of the file data.
This causes a problem with filenames like analysis_1_inputs.tar.gz which is the input tar (oasis files)
Example
Generate inputs With loc_file = A --> File stored analysis_1_inputs.tar.gz
Run Generate Losses loc_file = A --> File cached analysis_1_inputs.tar.gz
Update portfolio with loc_file = B
Generate inputs With loc_file = B --> File overwritten with same name analysis_1_inputs.tar.gz
Issue Description
The file caching in the
OasisDataManager
package is based on the filename rather than the hash of the file data. This causes a problem with filenames likeanalysis_1_inputs.tar.gz
which is the input tar (oasis files)Example
loc_file = A
--> File storedanalysis_1_inputs.tar.gz
loc_file = A
--> File cachedanalysis_1_inputs.tar.gz
loc_file = B
loc_file = B
--> File overwritten with same nameanalysis_1_inputs.tar.gz
(This is the original
analysis_1_inputs.tar.gz
Tar file from Step 1