From c9a71c72c6ed254e538e5abd909e55f9a58df212 Mon Sep 17 00:00:00 2001 From: GabrieleMeoni Date: Mon, 2 Oct 2023 19:15:48 +0200 Subject: [PATCH] Reformatting. --- pyraws/raw/raw_event.py | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pyraws/raw/raw_event.py b/pyraws/raw/raw_event.py index ac6db7a..b65464b 100644 --- a/pyraws/raw/raw_event.py +++ b/pyraws/raw/raw_event.py @@ -85,8 +85,13 @@ def from_path(self, raw_dir_path, bands_list, verbose=True): verbose (bool, optional): if True, if True, verbose mode is used. Defaults to True. """ - if not(self.is_void()): - print("Impossible to create a new event from path: " +colored(raw_dir_path, "blue")+". " + colored("Event already instantiated.", "red")) + if not (self.is_void()): + print( + "Impossible to create a new event from path: " + + colored(raw_dir_path, "blue") + + ". " + + colored("Event already instantiated.", "red") + ) else: if bands_list is None: bands_list = list(BANDS_RAW_SHAPE_DICT.keys()) @@ -152,8 +157,13 @@ def from_database( verbose (bool, optional): if True, if True, verbose mode is used. Defaults to True. database (string, optional): database name. Defaults to "THRAWS". """ - if not(self.is_void()): - print("Impossible to create a new event from: " +colored(id_event, "blue")+". " + colored("Event already instantiated.", "red")) + if not (self.is_void()): + print( + "Impossible to create a new event from: " + + colored(id_event, "blue") + + ". " + + colored("Event already instantiated.", "red") + ) else: if bands_list is None: bands_list = list(BANDS_RAW_SHAPE_DICT.keys())