Skip to content

Commit

Permalink
fix the lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
zain-sohail committed Nov 4, 2023
1 parent 6dfdf16 commit 1895fdc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sed/loader/flash/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,8 +662,9 @@ def buffer_file_handler(self, data_parquet_dir: Path, detector: str, force_recre

# check if available_channels are same as schema
available_channels_set = set(self.available_channels)
for i in len(schema):
schema_set = set(schema[i])

for i in range(len(schema)):
schema_set = set(schema[i].names)
# Check if available_channels are the same as schema including pulseId
if not force_recreate and schema_set != available_channels_set.union({"pulseId"}):
raise ValueError(
Expand Down Expand Up @@ -757,7 +758,7 @@ def parquet_handler(
else:
# Obtain the parquet filenames, metadata and schema from the method
# which handles buffer file creation/reading
filenames, metadata, schema = self.buffer_file_handler(
filenames, metadata, _ = self.buffer_file_handler(
data_parquet_dir,
detector,
force_recreate,
Expand Down

0 comments on commit 1895fdc

Please sign in to comment.