Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
Fixed print prefixes
Browse files Browse the repository at this point in the history
Signed-off-by: Cédric Foellmi <cedric@onekiloparsec.dev>
  • Loading branch information
onekiloparsec committed May 2, 2020
1 parent eadd74f commit f3c1da1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions oort/app/helpers/calibrations.py
Expand Up @@ -19,15 +19,16 @@ def reset(self):

def walk(self):
super().walk()

for name, path in self._walk_folder():
if os.path.isdir(path) and name.lower().startswith('bias'):
if self.context.debug or self.context.verbose: print(f' >> Found a [{self.prefix}] {name} folder.')
self.biases_folders.append(FilesSyncer(self.context, self.astronomer, path))
if self.context.debug or self.context.verbose: print(f' >> Found a {self.prefix} {name} folder.')
self.biases_folders.append(FilesFolderSyncer(self.context, self.astronomer, path))
elif os.path.isdir(path) and name.lower().startswith('dark'):
if self.context.debug or self.context.verbose: print(f' >> Found a [{self.prefix}] {name} folder.')
self.darks_folders.append(FilesSyncer(self.context, self.astronomer, path))
if self.context.debug or self.context.verbose: print(f' >> Found a {self.prefix} {name} folder.')
self.darks_folders.append(FilesFolderSyncer(self.context, self.astronomer, path))
elif os.path.isdir(path) and name.lower().startswith('flat'):
if self.context.debug or self.context.verbose: print(f' >> Found a [{self.prefix}] {name} folder.')
if self.context.debug or self.context.verbose: print(f' >> Found a {name} folder.')
self.flats_folders.append(FiltersFolder(self.context, self.astronomer, path, '[Flats]'))

def upload_biases_darks_flats(self, telescope_key):
Expand Down

0 comments on commit f3c1da1

Please sign in to comment.