Skip to content

Commit

Permalink
fix empty 2025 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Jan 3, 2025
1 parent 7a191aa commit 10e11e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/parl_motion_detector/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,12 @@ def move_to_package(data_dir: Path = data_dir):
for file_ending in file_endings:
dfs = []
for file in parquet_dir.glob(f"*-{file_ending}"):
dfs.append(pd.read_parquet(file))
df = pd.read_parquet(file)
if len(df) > 1:
dfs.append(pd.read_parquet(file))

df = pd.concat(dfs)

# sort by first column
df = df.sort_values(by=df.columns[0])

Expand Down

0 comments on commit 10e11e4

Please sign in to comment.