Skip to content

Conversation

@dihm
Copy link
Contributor

@dihm dihm commented Apr 30, 2022

This gives the saved 'run time' resolution better than 1 second.

Note that while datetime gives a number with resolution down to the microsecond, actual accuracy/resolution will be what the host system can provide (which can be as poor as 1 second). However, on most systems the timing accuracy is better than 1 second. So in the worst case, this just adds extra numbers users will need to ignore. In general, it should provide somewhat better timing resolution for the run start.

This gives the saved 'run time' resolution better than 1 second.
@dihm dihm added the enhancement New feature or request label Apr 30, 2022
@dihm dihm requested a review from chrisjbillington April 30, 2022 06:22
@philipstarkey
Copy link
Member

Does this not change what's stored from lab local timezone time to UTC time?

@chrisjbillington
Copy link
Member

Nope, datetime.now() is local, as opposed to datetime.utcnow().

Is this string parsed by lyse such that the addition of microseconds might break the parsing? Or does lyse only parse the compile time string?

@dihm
Copy link
Contributor Author

dihm commented May 1, 2022

Is this string parsed by lyse such that the addition of microseconds might break the parsing? Or does lyse only parse the compile time string?

Good catch. I forgot that these times are actually used somewhere else. If lyse parses it using standard time handling stuff (like pandas Timestamp) it should be fine. I'll run some dummy shots to make sure.

@dihm
Copy link
Contributor Author

dihm commented May 1, 2022

Lyse does appear to parse things correctly.

image

@chrisjbillington
Copy link
Member

Nice. Looks good to me!

@chrisjbillington chrisjbillington merged commit 8551005 into labscript-suite:master May 1, 2022
dihm added a commit that referenced this pull request Apr 13, 2023
commit 5186769
Author: David Meyer <dihm@users.noreply.github.com>
Date:   Wed Apr 12 19:43:11 2023 -0400

    Update python version support

commit e508fcd
Merge: 5e3603d 514e7d2
Author: David Meyer <dihm@users.noreply.github.com>
Date:   Wed Apr 12 19:38:50 2023 -0400

    Merge pull request #98 from labscript-suite/qt-float-fix

    Only pass ints to self.ui.move

commit 5e3603d
Merge: fb8bcd9 79119b9
Author: David Meyer <dihm@users.noreply.github.com>
Date:   Wed Apr 12 16:56:39 2023 -0400

    Merge pull request #99 from dihm/update-workflow

    Sync workflow with current state of the art

commit 79119b9
Author: David Meyer <dihm@users.noreply.github.com>
Date:   Wed Apr 12 16:44:29 2023 -0400

    Sync workflow with current state of the art

commit 514e7d2
Author: chrisjbillington <chrisjbillington@gmail.com>
Date:   Sat Apr 8 21:11:43 2023 +1000

    Only pass ints to self.ui.move

    as floats to QWidget.move are depreceated and raise an exception.

    Also update the log line to print the full exception for easier
    detection of issues in the future.

commit fb8bcd9
Merge: 6f7a653 2e6d140
Author: David Meyer <dihm@users.noreply.github.com>
Date:   Tue Jan 3 12:07:48 2023 -0500

    Merge pull request #91 from labscript-suite/ipv6-remotes

    Correctly parse ipv6 host:port for remote workers

commit 6f7a653
Merge: 75ef861 cb87bc7
Author: David Meyer <dihm@users.noreply.github.com>
Date:   Fri Aug 5 16:45:25 2022 -0400

    Merge pull request #96 from dihm/update-workflow

    Bring workflow up to date with sandbox

commit cb87bc7
Author: David Meyer <dihm@users.noreply.github.com>
Date:   Wed Aug 3 13:24:26 2022 -0400

    Bring workflow up to date with sandbox

commit 75ef861
Merge: 8551005 029c3b6
Author: David Meyer <dihm@users.noreply.github.com>
Date:   Thu Jun 2 10:52:25 2022 -0400

    Merge pull request #95 from dihm/fix_docs_build

    Bump sphinx version and update intersphinx links

commit 029c3b6
Author: David Meyer <dihm@users.noreply.github.com>
Date:   Thu Jun 2 10:38:46 2022 -0400

    Bump sphinx version and update intersphinx links

commit 8551005
Merge: 84731bb cea8ca1
Author: Chris Billington <chrisjbillington@gmail.com>
Date:   Sun May 1 22:44:25 2022 +1000

    Merge pull request #93 from dihm/datetime

    Upgrade 'run time' to datetime timestamp.

commit cea8ca1
Author: David Meyer <dihm@users.noreply.github.com>
Date:   Sat Apr 30 02:09:32 2022 -0400

    Upgrade 'run time' to datetime timestamp.

    This gives the saved 'run time' resolution better than 1 second.

commit 2e6d140
Author: chrisjbillington <chrisjbillington@gmail.com>
Date:   Sat Jan 29 12:58:52 2022 +1100

    Correctly parse ipv6 host:port for remote workers

    IPv6 addresses contain colons, so we need to split only on the last
    colon.

    Zprocess currently has ipv6 disabled by default, but it will be enabled
    in the next release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants