From 94c7aeced1d6d91a497d23f24f4ede2150b0d131 Mon Sep 17 00:00:00 2001 From: Al Niessner Date: Thu, 28 Jul 2022 11:13:45 -0700 Subject: [PATCH] fix typo --- Python/dawgie/__init__.py | 2 +- Python/dawgie/pl/schedule.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Python/dawgie/__init__.py b/Python/dawgie/__init__.py index 94b16fbc..8f3e53a6 100644 --- a/Python/dawgie/__init__.py +++ b/Python/dawgie/__init__.py @@ -187,7 +187,7 @@ def measure (self, func, args=(), ds:'Dataset'=None): task = _Metric.diff (s1, s0) self.__history.append ({'child':child, 'task':task}) - if ds: + if ds is not None: # need to break circular dependancy so # pylint: disable=import-outside-toplevel import dawgie.db diff --git a/Python/dawgie/pl/schedule.py b/Python/dawgie/pl/schedule.py index 01dfcff2..688cc6d8 100644 --- a/Python/dawgie/pl/schedule.py +++ b/Python/dawgie/pl/schedule.py @@ -141,7 +141,7 @@ def algorithm_tree_view(): return dawgie.pl.schedule.ae.av def build (factories, latest, previous): log.info ('build() - starting to build DAG') dawgie.pl.schedule.ae = dawgie.pl.dag.Construct(factories) - promote.at = dawgie.pl.schedule.ae + promote.ae = dawgie.pl.schedule.ae promote.orgainize = dawgie.pl.schedule.organize dawgie.pl.schedule.que = [] dawgie.pl.schedule.per = []