Skip to content

Commit

Permalink
Change method name _call_method to _callMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristobal Pio Garcia committed May 29, 2024
1 parent 9912f9d commit fc8f77c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/lsst/rubintv/production/uploaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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(
Expand All @@ -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
Expand Down

0 comments on commit fc8f77c

Please sign in to comment.