Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 12, 2024
1 parent e116600 commit 5ac305c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions punchpipe/flows/level1.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
from punchpipe.controlsegment.db import File, Flow
from punchpipe.controlsegment.processor import generic_process_flow_logic
from punchpipe.controlsegment.scheduler import generic_scheduler_flow_logic
from punchpipe.controlsegment.util import get_database_session


SCIENCE_LEVEL0_TYPE_CODES = ["PM", "PZ", "PP", "CR"]

Expand Down
1 change: 0 additions & 1 deletion punchpipe/flows/level2.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from punchpipe.controlsegment.processor import generic_process_flow_logic
from punchpipe.controlsegment.scheduler import generic_scheduler_flow_logic


SCIENCE_LEVEL1_TYPE_CODES = ["PM", "PZ", "PP", "CR"]


Expand Down
4 changes: 1 addition & 3 deletions punchpipe/level0/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def form_level0_fits(session=None, pipeline_config_path="config.yaml"):
if image_compression[0]['JPEG'] == 1: # this assumes the image compression is static for an image
try:
image = form_from_jpeg_compressed(ordered_image_content)
except ValueError as e:
except ValueError:
error = {'start_time': image_packets_entries[0].timestamp.strftime("%Y-%m-%d %h:%m:%s"),
'start_block': image_packets_entries[0].flash_block,
'replay_length': image_packets_entries[-1].flash_block
Expand Down Expand Up @@ -386,5 +386,3 @@ def form_level0_fits(session=None, pipeline_config_path="config.yaml"):
df_path = os.path.join(config['root'], 'REPLAY', f'PUNCH_{spacecraft}_REPLAY_{date_str}.csv')
os.makedirs(df_path, exist_ok=True)
df_errors.to_csv(df_path, index=False)


0 comments on commit 5ac305c

Please sign in to comment.