diff --git a/src/stpipe/step.py b/src/stpipe/step.py index 683cf55..67e383c 100644 --- a/src/stpipe/step.py +++ b/src/stpipe/step.py @@ -507,16 +507,15 @@ def run(self, *args): e, ) - elif isinstance(args[0], AbstractDataModel) and \ - self.class_alias is not None: + elif ( + isinstance(args[0], AbstractDataModel) + and self.class_alias is not None + ): try: - args[0][ - f"meta.cal_step.{self.class_alias}" - ] = "SKIPPED" + args[0][f"meta.cal_step.{self.class_alias}"] = "SKIPPED" except AttributeError as e: self.log.info( - "Could not record skip into DataModel" - " header: %s", + "Could not record skip into DataModel" " header: %s", e, ) step_result = args[0] diff --git a/tests/test_step.py b/tests/test_step.py index c8e8b79..88197e2 100644 --- a/tests/test_step.py +++ b/tests/test_step.py @@ -448,7 +448,7 @@ def get_crds_parameters(self): def save(self, path, dir_path=None, *args, **kwargs): saveid = getattr(self, "saveid", None) if saveid is not None: - fname = saveid+"-saved.txt" + fname = saveid + "-saved.txt" with open(fname, "w") as f: f.write(f"{path}") return fname