Use explicit, per-instrument-configurable timestamp format when parsing filenames (SilCam/Holo/UVP)

Open Beginner friendly
#389 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Quiet
Tech stack
pandas, python
Domain
data

Research direction

Find the filename-to-datetime parsing in the SilCam/Holo/UVP pipeline code (likely in pyopia/io or instrument-specific modules) where pandas.to_datetime is called, and replace it with an explicit strftime format per instrument, ideally configurable in the instrument settings. Read the two existing comments first to see if a format convention was agreed. Done: each instrument parses timestamps with a strict format string and existing tests still pass.

Written by the indexing model from the issue text.

Description

When parsing image datetime stamps from filenames, use strftime with ISO 8601 string instead of the more guessy pandas.to_datetime. This puts a clear, strict and very specific requirement on the filename timestamp formatting, and avoids issues with auto-accepting (potentially incorrect) datetime string variants.

Dominant language
Jupyter Notebook
Stars
19
Forks
7
Avg merge
10d 11h
Merged PRs (30d)
1

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SINTEF/pyopia

All issues in SINTEF/pyopia

Similar issues

More Data Engineering issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.