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.

Global observations: avoid time/duration

See original GitHub issue

Is there any way I could add an observation without the fields time and duration, such that it becomes a track-level observation (e.g., track-level tag)?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
bmcfeecommented, Mar 10, 2020

I agree it’s cumbersome, but time/duration are baked into the definition of an observation:

Yes, the schema is written such that all observations have a time and duration (non-negative float) to validate properly.

I think the correct thing to do here is as @justinsalamon says: make the implicit quantities explicit by documenting the length of the track in the observation fields. Of course, nobody forces you to use that information, but it needs to be there to validate in the schema.

1reaction
justinsalamoncommented, Mar 10, 2020

I agree it’s cumbersome, but time/duration are baked into the definition of an observation: https://github.com/marl/jams/blob/255a5ee860b03cec8f889c9986e734a6393a0dbc/jams/core.py#L597-L599 I may be wrong but I believe that supporting observations both with and without time/duration would require a major overhaul that would impact a significant number of lines (apart from the core structure, think validation and every operation currently supported on annotations), if it’s even feasible under the current design.

Since @bmcfee was the main architect behind the observation tuple, he should probably chime in here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Accuracy measurement by RTK method under varied time ...
Global Navigation Satellite System (GNSS), an advance surveying system, is used to determine three-dimension points with high accuracy.
Read more >
Guidelines for classroom observations
Time/duration of behavior? Time between direction to student & initiation of response. Length of time behavior lasts. Specific beginning & end or continuous....
Read more >
Filter dataset for duration of time since first observation R
In this above example, I would want to filter out any observations (i.e., rows) after 7 minutes and 15 seconds (from the first...
Read more >
Publishing and Using Earth Observation Data with the RDF ...
This document illustrates that approach showing how Earth Observation imagery can be published as Linked Data using the RDF Data Cube vocabulary ...
Read more >
Climatic Data Elements
It is important that thermometers be shaded from sunlight to avoid an erroneously ... Recording gages have instrumentation which records the time, duration, ......
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