Commit ebe77ce4430ee17a7c7c09ea86a4d1dc7316796d

Authored by Goutte
1 parent 0afabe4e

Clean up.

Showing 2 changed files with 4 additions and 2 deletions   Show diff stats
web/static/js/swapp.js
... ... @@ -50,6 +50,7 @@
50 50 this.stopped_at = moment().add(7, 'days').hours(0).minutes(0).seconds(0);
51 51 started_at = this.started_at.format("YYYY-MM-DDTHH:mm:ss");
52 52 stopped_at = this.stopped_at.format("YYYY-MM-DDTHH:mm:ss");
  53 + console.info("Setting time interval from " + started_at + " to " + stopped_at + "…");
53 54 active_targets.forEach(function(target){
54 55 console.info("Loading CSV data of " + target.name + "…");
55 56 return this$.loadData(target.slug, started_at, stopped_at).then(function(data){
... ... @@ -527,7 +528,7 @@
527 528 Orbits.prototype.orbitersElements = {};
528 529 Orbits.prototype.initOrbiter = function(slug, config, data){
529 530 var orbit_ellipse, orbiter, orbit_line, orbit_section, this$ = this;
530   - console.info("Initializing target " + slug + "'s orbit…");
  531 + console.info("Initializing orbit of " + config.name + "…");
531 532 if (slug in this.orbitersElements) {
532 533 throw new Error("Second init of " + slug);
533 534 }
... ...
web/static/js/swapp.ls
... ... @@ -70,6 +70,7 @@ https://gitlab.irap.omp.eu/CDPP/SPACEWEATHERONLINE
70 70 @stopped_at = moment().add(7, 'days').hours(0).minutes(0).seconds(0)
71 71 started_at = @started_at.format("YYYY-MM-DDTHH:mm:ss")
72 72 stopped_at = @stopped_at.format("YYYY-MM-DDTHH:mm:ss")
  73 + console.info "Setting time interval from #{started_at} to #{stopped_at}…"
73 74 active_targets.forEach((target) ~>
74 75 console.info "Loading CSV data of #{target.name}…"
75 76 @loadData(target.slug, started_at, stopped_at).then(
... ... @@ -549,7 +550,7 @@ export class Orbits
549 550  
550 551 orbitersElements: {}
551 552 initOrbiter: (slug, config, data) ->
552   - console.info "Initializing target #{slug}'s orbit…"
  553 + console.info "Initializing orbit of #{config.name}…"
553 554 if slug of @orbitersElements then throw new Error("Second init of #{slug}")
554 555  
555 556 @extremum = Math.max(@extremum, 1.11 * d3.max(data, (d) ->
... ...