diff --git a/lib/nexrad/archive.py b/lib/nexrad/archive.py index 6be4e84..a9d5c8d 100644 --- a/lib/nexrad/archive.py +++ b/lib/nexrad/archive.py @@ -49,7 +49,7 @@ class ArchiveProduct(): return ret - def __path__(self): + def path(self): parts = self.__parts__() ret = os.path.join(*parts) @@ -60,6 +60,9 @@ class ArchiveProduct(): return ret + def key(self): + return str(self) + @staticmethod def from_s3_key(key: str): product = ArchiveProduct() @@ -82,7 +85,7 @@ class ArchiveProduct(): return product def is_downloaded(self, path: str): - return os.path.isfile(os.path.join(path, self.__path__())) + return os.path.isfile(os.path.join(path, self.path())) def is_reported(self, db: Database): sql = """select count((