-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The initial upscalling was kind of naive, it turns out that if you have a serie with only a few datapoints but a very large time range we would strech them and make some value appears when they don't really exist.
- Loading branch information
Showing
9 changed files
with
472 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
let debug = false; | ||
export function enableDebug(): void { | ||
debug = true; | ||
} | ||
export function log_debug(message?: any, ...optionalParams: any[]): void { | ||
// Set it to true to enable debugging | ||
let debug = false; | ||
if (debug) { | ||
return console.log(message, optionalParams); | ||
if (optionalParams.length > 0) { | ||
return console.log(message, optionalParams.join(' ')); | ||
} else { | ||
return console.log(message); | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.