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.

Using another different quantification method than category makes torque fail

See original GitHub issue

Context

Trying to style a Torque layer with TurboCarto using [value] fails randomly. The idea in the background was to use the tips & tricks at http://andrewxhill.com/blog/2015/04/17/torque-unknown/

Steps to Reproduce

  1. Load a dataset of points and create a 1-layer map with it
  2. Set the aggregation of the layer to Torque
  3. Make a 1 frame, 0 time, 16px agg Torque layer in Builder, so the CartoCSS looks like the code below and the map is OK
Map {
  -torque-frame-count: 1;
  -torque-animation-duration: 0;
  -torque-time-attribute: "cartodb_id";
  -torque-aggregation-function: "count(1)";
  -torque-resolution: 16;
  -torque-data-aggregation: linear;
}
#layer {
  marker-width: 7;
  marker-fill: #FFB927;
  marker-fill-opacity: 0.9;
  marker-line-width: 0.5;
  marker-line-color: #FFF;
  marker-line-opacity: 1;
  comp-op: lighter;
}
  1. Now, let’s customize the CartoCSS so the Torque becomes a bubble map based on aggregation values
Map {
  -torque-frame-count: 1;
  -torque-animation-duration: 0;
  -torque-time-attribute: "cartodb_id";
  -torque-aggregation-function: "count(1)";
  -torque-resolution: 16;
  -torque-data-aggregation: linear;
}
#layer {
  marker-width: ramp([value], range(2, 8), jenks(6));
  marker-fill: #FFB927;
  marker-fill-opacity: 0.9;
  marker-line-width: 0.5;
  marker-line-color: #FFF;
  marker-line-opacity: 1;
  comp-op: lighter;
}
  1. Change the basemap

Current Result

It works OK till you changes anything else in the dashboard. V.g.: change the basemap. Then, the map is rendered as expected : image But you get an error in the UI:

image

And no error message in Chrome console.

But if you force refresh the browser, you get the same message in the UI and the error below in the console:

image

In the case that your Torque layer is linked to an analysis node instead of a source node, the node stays in “running” mode forever. No matter the kind of analysis.

Expected result

Plain dashboard with no errors

Browser and version

No matter the browser

.carto file

No need of .carto file, any points dataset will reproduce this

Additional info

Same behavior in on-prem 2.0

cc @rochoa

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
xavijamcommented, Jul 18, 2017

Removed the quantification option and fixed torque categories when map is reloaded.

1reaction
noguerolcommented, Jul 18, 2017

Note for our future selves: we posponed the dev of the real thing, turbocarto on aggregations, in favor of this much easier solution, but we will have to tackle it sooner or later.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quantification Method Affects Estimates of Voluntary ... - NCBI
In the modified CAR method, the voluntary peak force/torque observed at any point prior to stimulation is used to estimate voluntary activation failure ......
Read more >
THREADED FASTENER DESIGN AND ANALYSIS
made with the underhead area, the underhead friction torque is measured as the difference between the total input torque and the thread torque....
Read more >
A failure analysis study on the fractured connecting bolts of a ...
The purpose of this study was to investigate the main causes of the co-fracture of sixteen connecting bolts of a filter press cylinder–piston...
Read more >
The survival rates and risk factors of implants in the early stage
The main causes of early implant failure included infection (26 implants), excessive placement torque over 50 N/cm (11 implants), apical ...
Read more >
Self-Loosening of Bolts and Nuts - Bolt Science
Self-Loosening of Bolts and Threaded Fasteners discussing why bolts loosen and how it can be prevented. Vibration loosening is another name for ...
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