asimov
Advanced tools
| Metadata-Version: 2.4 | ||
| Name: asimov | ||
| Version: 0.5.9 | ||
| Version: 0.5.10 | ||
| Summary: A Python package for managing and interacting with data analysis jobs. | ||
@@ -5,0 +5,0 @@ Author-email: Daniel Williams <daniel.williams@ligo.org> |
@@ -53,6 +53,8 @@ """ | ||
| old_event = deepcopy(ledger.events[event.name]) | ||
| for key in ["productions", "working directory", "repository", "ledger"]: | ||
| for key in ["name", "productions", "working directory", "repository", "ledger"]: | ||
| old_event.pop(key, None) | ||
| analyses = [ | ||
| update(prod, old_event) | ||
| # I appreciate this looks insane, but the way the yaml stores these | ||
| # is poorly designed. | ||
| {list(prod.keys())[0]: update(list(prod.values())[0], old_event)} | ||
| for prod in ledger.events[event.name]["productions"] | ||
@@ -71,5 +73,6 @@ ] | ||
| ledger.save() | ||
| update(ledger.events[event.name], event.meta) | ||
| ledger.events[event.name]["productions"] = analyses | ||
| ledger.events[event.name].pop("ledger", None) | ||
| click.echo( | ||
@@ -76,0 +79,0 @@ click.style("●", fg="green") + f" Successfully updated {event.name}" |
+15
-0
@@ -0,1 +1,16 @@ | ||
| 0.5.10 | ||
| ====== | ||
| This is a bug-fix release, which does not introduce any new backwards-incompatible features, which fixes a critical bug when updating an event using the ``asimov apply --upgrade`` interface, where analyses were lost from the updated event. | ||
| Breaking changes | ||
| ---------------- | ||
| This release is not believed to introduce any backwards-incompatible changes. | ||
| Merges | ||
| ------ | ||
| + `ligo!166 <https://git.ligo.org/asimov/asimov/-/merge_requests/166>`_: Corrects an issue with application of event updates. | ||
| 0.5.9 | ||
@@ -2,0 +17,0 @@ ===== |
+1
-1
| Metadata-Version: 2.4 | ||
| Name: asimov | ||
| Version: 0.5.9 | ||
| Version: 0.5.10 | ||
| Summary: A Python package for managing and interacting with data analysis jobs. | ||
@@ -5,0 +5,0 @@ Author-email: Daniel Williams <daniel.williams@ligo.org> |
@@ -33,2 +33,4 @@ """ | ||
| ) | ||
| Nanalyses_before = len(self.ledger.events['S000000']['productions']) | ||
| apply_page( | ||
@@ -40,4 +42,6 @@ f"{self.cwd}/tests/test_data/test_event_update.yaml", | ||
| ) | ||
| Nanalyses_after = len(self.ledger.events['S000000']['productions']) | ||
| self.assertEqual(Nanalyses_before, Nanalyses_after) | ||
| event = self.ledger.events["S000000"] | ||
| self.assertEqual(event['productions'][0]['event time'], 900) | ||
| self.assertEqual(event['productions'][0]['bilby-IMRPhenomXPHM-QuickTest']['event time'], 900) | ||
| self.assertEqual(event['event time'], 909) | ||
@@ -44,0 +48,0 @@ self.assertEqual(event['priors']['luminosity distance']['maximum'], 1010) |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
803145
0.13%10003
0.06%