Skip to content

Update _solis.py - #1247

Open
DLafayetteII wants to merge 2 commits into
masterfrom
andor-datetime-handling
Open

Update _solis.py#1247
DLafayetteII wants to merge 2 commits into
masterfrom
andor-datetime-handling

Conversation

@DLafayetteII

@DLafayetteII DLafayetteII commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Adds Date Time support for fractional seconds (which my newer Andor camera uses), and a new error handling exception for other unexpected Date Time formats, resolving Issue #1246.
Manually tested that both DateTime formats with fractional seconds and arbitrary formats now still allow for the data to be opened. Welcome any improvements in code quality/efficiency.

Changes

If Date Time has fractional seconds, we round to nearest integer and save the whole seconds as done previously.
If Date Time is an unexpected format, we provide the warning and save the file modified time instead.

Manually tested that both DateTime formats with fractional seconds and arbitrary formats now still allow for the data to be opened.

Checklist

  • added tests, if applicable
  • updated documentation, if applicable
  • updated CHANGELOG.md
  • tests pass

Adds support for fractional seconds, and a new error handling exception for other unexpected DateTime formats
@ddkohler

Copy link
Copy Markdown
Contributor

a welcome addition. Thanks for putting in the work!

Just add a quick note in the changelog.md and we should be good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants