question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timeslots should have informative representation

See original GitHub issue

What is the expected enhancement?

Currently Interval, Timeslot and TimeslotCollection have the standard python object representation. This should be replaced with an informative implementation of __repr__. As TimeslotCollection contains Timeslots and Timeslots contain Intervals the hierarchal nature of these data structure should be used to derive representations.

Example

A possible representation might look like

Interval: (t0, tf) eg. (0, 10)

Timeslot: Is an interval on a channel (channel, repr(interval)): (DriveChannel(0), (0, 10))

TimeslotCollection: Is a dictionary of timeslots. Ie. it groups together intervals on channels.

{channel1: [repr(interval1_c1), repr(interval2_c1), ...]), channel2: [repr(interval1_c2), repr(interval2_c2), ...]}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
taalexandercommented, Jun 27, 2019

Currently, this functionality is handled by the TimeslotCollection

1reaction
Matt-Stypulkoskicommented, Jun 27, 2019

Yeah, that would be helpful to have printed out as well. I will make that addition, and then open the PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deciding the best way of modeling a timeslot or period of time ...
The initial idea was that a timeslot would be just an abstract representation of a period of time, and giving it more sense...
Read more >
Represent and compare time slots - java - Stack Overflow
Save this answer. Show activity on this post. You can create a TimeSlot objects and compare each start and endtimes.
Read more >
TimeSlot | Object Reference for the Salesforce Platform
Represents a period of time on a specified day of the week during which work can be performed in Field Service, Salesforce Scheduler,...
Read more >
Having Students Book Presentation Time Slots in Microsoft ...
Having Students Book Presentation Time Slots in Microsoft Teams using Microsoft ListsWhen you need to allocate presentation time slots or ...
Read more >
Troubleshooting timeslots - ADM Help Centers
This section provides information for troubleshooting issues related to autostart timeslots. In this topic: Test failed to run with reserved ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found