diff --git a/src/HistogramDescriptionPersister.py b/src/HistogramDescriptionPersister.py index 1cfadd75caf..df1a7f84c9b 100644 --- a/src/HistogramDescriptionPersister.py +++ b/src/HistogramDescriptionPersister.py @@ -9,9 +9,9 @@ class HistogramDescriptionPersister: self.directory = directory def saveHistogramDescriptionsForBatchcodes(self, batchcodes, dictByBatchcodeTable): - for batchcode in batchcodes: + for count, batchcode in enumerate(batchcodes, start = 1): histogramDescription = self._getHistogramDescriptionForBatchcode(batchcode, dictByBatchcodeTable) - print('saving', batchcode) + print(f'{count}/{len(batchcodes)}: saving {batchcode}') IOUtils.saveDictAsJson( histogramDescription, f'{self.directory}/{batchcode}.json') diff --git a/src/HowBadIsMyBatch.ipynb b/src/HowBadIsMyBatch.ipynb index c644158bc6d..18924a3f9a9 100644 --- a/src/HowBadIsMyBatch.ipynb +++ b/src/HowBadIsMyBatch.ipynb @@ -192,16 +192,6 @@ "histogramDescriptionPersister.saveHistogramDescriptionsForBatchcodes(batchcodes[:100], dictByBatchcodeTable)" ] }, - { - "cell_type": "code", - "execution_count": null, - "id": "ab4ccc60", - "metadata": {}, - "outputs": [], - "source": [ - "batchcodes[:10]" - ] - }, { "cell_type": "code", "execution_count": null,