Skip to content

Make timestamp field names configurable via data config#61

Merged
t-sasatani merged 4 commits into
mainfrom
flexible_timefield
Jun 25, 2026
Merged

Make timestamp field names configurable via data config#61
t-sasatani merged 4 commits into
mainfrom
flexible_timefield

Conversation

@t-sasatani

@t-sasatani t-sasatani commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Make the timestamp CSV column names configurable in the data config, so inputs aren't forced to use the hardcoded headers.

  • neural.timestamp_col (default timestamp_first) — neural sample-time column
  • behavior.timestamp_frame_col / behavior.timestamp_time_col (defaults
    frame_index / unix_time) — behavior frame-index and unix-time columns

Defaults match the previous hardcoded strings, so existing configs are unaffected. Covered end-to-end by parametrizing the 2D arena regression test over a renamed-columns variant.

@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown

☂️ Code Coverage

current status: ✅

Overall Coverage

Statements Covered Coverage Threshold Status
3969 2517 63% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
camap/cli.py 0% 🟢
camap/config.py 84% 🟢
camap/dataset/arena.py 64% 🟢
camap/dataset/base.py 87% 🟢
camap/dataset/maze.py 86% 🟢
camap/loaders.py 60% 🟢
camap/zone_detection.py 63% 🟢
TOTAL 63% 🟢

updated for commit: ef52c19 by action🐍

@t-sasatani t-sasatani merged commit a42e293 into main Jun 25, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant