From fc8f77c0ce34da5abd31b4e3dd7553f4b4b44699 Mon Sep 17 00:00:00 2001 From: Cristobal Pio Garcia Date: Wed, 29 May 2024 05:02:47 -0700 Subject: [PATCH] Change method name _call_method to _callMethod --- python/lsst/rubintv/production/uploaders.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/lsst/rubintv/production/uploaders.py b/python/lsst/rubintv/production/uploaders.py index 2f0029af9..b602b97a1 100644 --- a/python/lsst/rubintv/production/uploaders.py +++ b/python/lsst/rubintv/production/uploaders.py @@ -233,7 +233,7 @@ def uploadNightReportData( ---------- channel : `str` The RubinTV channel to upload to. - observation_day : `int` + dayObs : `int` The dayObs. filename : `str` The full path and filename of the file to upload. @@ -307,7 +307,7 @@ def __init__(self): def hasRemote(self): return self.remoteUploader is not None - def _call_method(self, uploader, name, *args, **kwargs): + def _callMethod(self, uploader, name, *args, **kwargs): # Check conditions for calling the method in local and remote uploader if not hasattr(uploader, name): raise AttributeError( @@ -331,11 +331,11 @@ def __getattr__(self, name): raise AttributeError(f"Attempted to access private method '{name}'") def wrapper(*args, **kwargs): - self._call_method(self.localUploader, name, *args, **kwargs) + self._callMethod(self.localUploader, name, *args, **kwargs) self.log.info("uploaded to local") if self.hasRemote: - self._call_method(self.remoteUploader, name, *args, **kwargs) + self._callMethod(self.remoteUploader, name, *args, **kwargs) self.log.info("uploaded to remote") return wrapper