Skip to content

Commit

Permalink
Merge pull request #421 from earthgecko/SNAB
Browse files Browse the repository at this point in the history
Exclude adtk resources
  • Loading branch information
earthgecko committed Mar 29, 2021
2 parents 132d312 + c365f42 commit dfc5126
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion skyline/ionosphere/ionosphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,12 +526,23 @@ def purge_old_data_dirs(self, dir_path, older_than):
continue
for ifile in files:
if ifile.endswith('.png'):
# @added 20210329 - Feature #3978: luminosity - classify_metrics
# Feature #3642: Anomaly type classification
if ifile.startswith('adtk_'):
continue
add_folder = True
if ifile.endswith('.txt'):
if ifile.endswith('.fp.details.txt'):
continue
if ifile.endswith('.fp.created.txt'):
elif ifile.endswith('.fp.created.txt'):
continue
# @added 20210329 - Feature #3978: luminosity - classify_metrics
# Feature #3642: Anomaly type classification
elif ifile.startswith('adtk_'):
continue
elif ifile == 'data.txt':
continue

else:
metric_file = ifile
metric_file_path = path
Expand All @@ -547,6 +558,10 @@ def purge_old_data_dirs(self, dir_path, older_than):
# Determine and add resolution
resolution_seconds = settings.FULL_DURATION
for ifile in files:
# @added 20210329 - Feature #3978: luminosity - classify_metrics
# Feature #3642: Anomaly type classification
if ifile.startswith('adtk_'):
continue
if ifile.endswith('.png') and 'mirage' in ifile and 'graphite' in ifile:
try:
ifile_resolution_elements = ifile.replace('.png', '', 1).split('.')
Expand Down

0 comments on commit dfc5126

Please sign in to comment.