Compare commits

...

2 Commits

2 changed files with 6 additions and 2 deletions

View File

@ -57,6 +57,7 @@ class AFCMUniverseMapFile:
"incoming_count": { "total": 0 },
"removed_count": { "total": 0 },
"cleaned_count": { "total": 0 },
"mosaic_count": { "total": 0 },
"removed_details": {},
"timings": {}
}
@ -465,8 +466,8 @@ class AFCMUniverseMapFile:
self.metadata["total_rows"] = len(self.final_rows)
# Need to write the FINAL file
final_filename = self.metadata.get('mosaic_filename', 'MOSAIC.csv')
if len(self.final_rows) > 0:
final_filename = self.metadata.get('mosaic_filename', 'MOSAIC.csv')
final_full_pathname = f"/tmp/{final_filename}"
write_csv_file(final_full_pathname, self.final_rows[0].keys(), self.final_rows)
@ -479,6 +480,9 @@ class AFCMUniverseMapFile:
# remove the temp file now
os.remove(final_full_pathname)
self.stats['mosaic_count'][final_filename] = len(self.final_rows)
self.stats['mosaic_count']["total"] = self.stats["mosaic_count"][final_filename]
def write_stats_file(self):
"""

View File

@ -9,7 +9,7 @@ with open('README.md', 'r') as f:
setup(
name='lib_afc_mosaic',
version='0.1.9',
version='0.1.10',
author='',
author_email='',
description='',