Skip to content

Commit

Permalink
Reformatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrieleMeoni committed Oct 2, 2023
1 parent c7b3160 commit c9a71c7
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions pyraws/raw/raw_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit c9a71c7

Please sign in to comment.