Commit Graph

8446 Commits

Author SHA1 Message Date
Mark Liversedge
5ac6813846 Metric config pic for WIKI
.. documenting how metrics work, so needed a screenshot for the wiki page
2018-02-04 14:01:20 +00:00
Mark Liversedge
4ce070f4c9 R Don't create GreaphicsDevice till all initialised
.. trying to reduce the number of crashes.
2018-02-04 09:48:01 +00:00
Mark Liversedge
29f734405b Fix Compile error in DataFilter without Python/R
.. recent commits to add scripting to datafilter using
   Python or R code didn't honor the fact that both
   are optional at compile time.

Fixes #2775
2018-02-03 10:14:23 +00:00
Ale Martinez
b99e8f54f8 Fixes MeanSquareRoot aggregation in RideCache
In LTMPlot it is Ok
Fixes #2762
2018-01-31 20:52:20 -03:00
Mark Liversedge
d734f1c485 Fix Kent University Study Double Upload
.. button to finish was also button to upload !

.. D'oh !!
2018-01-29 17:21:04 +00:00
Mark Liversedge
a82c3b93a6 DataFilter embed R Scripts
.. similarly to embedding python when computing metrics

.. exactly the same semantics, although R isn't fussy
   about whitespace.

.. and example metric might be:

   {
        value { %%R GC.result(19) %%; }
   }

.. the interpreter is protected with a mutex which means
   R programs will never run in multiple threads. This has
   a performance penalty, but then using R for metrics is
   likely to be rather specialised anyway.
2018-01-29 14:05:49 +00:00
Mark Liversedge
8e3a170d94 DataFilter Embed Python Scripts
.. allow the user to embed a python script into a datafilter.

.. this is primarily to enable the use of python when writing
   user metrics.

.. the syntax is basically "%%python script %%" and it is
   evaluated as an expresssion so the results can be assigned
   to a variable or returned as a value.

.. additionally GC.result(double) has been added to the python
   API to enable a return value to be set by the script.

.. since Python is really sensitive about white space its going
   to be best practice to embed python scripts without honoring
   any of the data filter spacing, for example:

{
   value {
      t <-

%%python
GC.result(100)
%%;

   }
}

  .. is likely to be a sensible way to use this.

  .. also notice how the ; is needed after the expression. This
     is because %%python ... %% is a numeric expression with the
     same semantics as "1 + 2"
2018-01-29 10:03:41 +00:00
Mark Liversedge
a78ea56090 Merge pull request #2768 from arunh/workout-save-as-filetype-select
Adding file type selection when saving workout (#2767)
2018-01-29 09:08:58 +00:00
arunh
3714525538 Adding file type selection when saving workout (#2767) 2018-01-29 09:02:15 +00:00
Mark Liversedge
5d9b42a57d Merge pull request #2765 from arunh/withings-api-use-json-parser
Use Qt Json Parser for Withings API (Fixes Issue #2764)
2018-01-26 17:45:48 +00:00
arunh
62c79ce9a5 Use Qt Json Parser for Withings API (Fixes Issue #2764) 2018-01-26 15:36:08 +00:00
Alejandro Martinez
8a3db53a90 Rename some Python entry points to match the wiki
zones => athleteZones
wbal => activityWbal
xdataseries => activityXdata
pmc => seasonPmc
measures => seasonMeasures
2018-01-23 17:56:24 -03:00
Alejandro Martinez
0c4ffcf93f Add Python seasonPeaks(series, duration, all=False, filter="", compare=False)
Similar to R season.peaks but for one series/duration at a time
2018-01-23 17:24:11 -03:00
Alejandro Martinez
b293d5374b Add Python seasonIntervals(type="", compare=False)
Get metrics for intervals in a season, similar to
R GC.season.intervals
2018-01-22 21:46:23 -03:00
Mark Liversedge
d9d5ed752b CI Travis no longer build using QT 5.5.1
.. we don't support it anymore anyway.
2018-01-21 10:25:13 +00:00
Mark Liversedge
dcf248f167 Merge pull request #2758 from sisao/fix-travis-build-qt-5.5.1
attempt to fix travis build (changed qt 5.5.1 mirror download location)
2018-01-21 10:19:13 +00:00
Stefan Lorenz
46e7cd017e fix url 2018-01-21 08:12:33 +01:00
Stefan Lorenz
15361f6f1d attempt to fix travis build (changed qt 5.5.1 mirror download location) 2018-01-20 19:42:53 +01:00
Alejandro Martinez
9d00f78e4c Add Python zones(date, sport)
To retrieve athletes zones info, similar to R athlete.zones,
just returning a dict instead of a data frame
2018-01-20 15:05:34 -03:00
Alejandro Martinez
9e193c7e9f Changed Python athlete to return a dict
Similar to the R counterpart it includes name, home, dob,
weight, height and gender
2018-01-19 20:41:21 -03:00
Alejandro Martinez
90a18303c4 Add Python xdataseries(name, series, join="repeat", activity=None)
Similar to series but used to retrieve an XData series, like the R
activity.xdata counterpart, for example: GC.xdataseries("SWIM", "STROKES")
NB: I reserved xdata(name) to retrive a whole group of series by name
with its own sampling, not implemented in this commit.
2018-01-18 15:41:48 -03:00
Alejandro Martinez
6df60d819b Add Python wbal similar to series
Optional parameter is activity datetime, current activity if not provided.
2018-01-17 14:55:16 -03:00
Alejandro Martinez
410c850556 Merge pull request #2721 from sisao/pythonChartCursorMoveHome
Move cursor in PythonChart to correct start point
2018-01-12 10:55:27 -03:00
Alejandro Martinez
6ee8b22563 Merge pull request #2741 from riccioclista/fix_measures_symbol
LTMTool: Set symbol for measure metrics
2018-01-12 10:55:04 -03:00
Alejandro Martinez
b1d83dd3fa Merge pull request #2742 from henolo/trans_sv
sv translation
2018-01-12 10:36:52 -03:00
Alejandro Martinez
ced9eba360 Merge branch 'Walibu-master' 2018-01-12 10:33:06 -03:00
Alejandro Martinez
6b1f3f41aa CriticalPowerWindow - refresh after Linear scale option change 2018-01-12 10:25:31 -03:00
Mark Liversedge
b65dfc90ac Athlete ID on About box
.. since we will use it to share data via CloudDB and users must have
   a mechanism for requesting their data is deleted.

.. since the GUID is used to anonymise the data the user must use it
   to request the deletion, so we show on the about box.
2018-01-12 13:13:11 +00:00
Henrik Johansson
08107f349d sv translation 2018-01-03 20:32:17 +01:00
riccioclista
d58309686d LTMTool: Set symbol for measure metrics
When adding measures to an LTMPlot with other metrics, those measures
are not cleaned up properly on replot, because they don't have a symbol.
LTMPlot uses the symbol to store them in a 'curves' dictionary. All
metrics without a symbol are then identified by the default metric
symbol value, which is: "".
2018-01-02 15:18:10 +01:00
Walter
7db994606b Use logarithmic scale for speed chart, like CS 2017-12-29 18:28:49 +01:00
Mark Liversedge
a7f91fd6ec Fix Xert tagline 2017-12-27 15:27:37 +00:00
Mark Liversedge
068dcf0fb2 Fix Huge Fonts on R chart
.. when on a hidpi display
2017-12-27 15:27:37 +00:00
grauser
80029cbdcc Cloud : Xert download
First version : only classic series
2017-12-27 00:01:00 +01:00
Mark Liversedge
6314033b93 Xert tagline copy/paste fixup 2017-12-24 11:11:00 +00:00
Mark Liversedge
b1e0a567fb rideFileCacheMeanmax just fix first date. 2017-12-24 11:11:00 +00:00
grauser
2d845d03d1 Download : Select Joule Device for Joule Port
I will make some test before adding other devices
2017-12-23 23:17:16 +01:00
grauser
e4ca3f8069 Cloud correct OAuthManager 2017-12-23 23:04:58 +01:00
grauser
2ccf4239eb Add OAuthManager for OAuth and UserPass Scheme
First only for Xert
2017-12-23 22:42:14 +01:00
Joern
a7d45944f1 Merge pull request #2735 from Joern-R/Fix
Cloud - XErt - Fix
2017-12-23 13:37:03 +01:00
Joern
ff56385727 Cloud - XErt - Fix
... compile error (cut&paste typo)
2017-12-23 13:36:20 +01:00
grauser
5b12503824 Cloud : Add Xert as a new service
First : Upload only
2017-12-23 12:15:05 +01:00
Joern
5e28aa58de Merge pull request #2734 from Joern-R/export
Fix error exporting activity without data points to .FIT
2017-12-22 14:05:14 +01:00
Joern
bb06f898f4 Fix error exporting activity without data points to .FIT
... GC closes without message/ SIGSEGV when exporting e.g. manual acvities as .FIT files
2017-12-22 13:14:05 +01:00
Mark Liversedge
caaae569a8 Merge pull request #2733 from sebastinas/vlc
Remove unnecessary linking against libvlccore
2017-12-21 21:12:57 +00:00
Sebastian Ramacher
3dd20804e9 Remove unnecessary linking against libvlccore
libvlccore is for plugins, but GoldenCheetah does not build a plugin. It
requires only functions available from libvlc.

Signed-off-by: Sebastian Ramacher <sramacher@debian.org>
2017-12-21 20:39:11 +01:00
Joern
a9a88e6103 Merge pull request #2732 from Joern-R/combine
Merge Activity Wizard - Size Cosmetics
2017-12-21 20:03:18 +01:00
Alejandro Martinez
cc2f56c7a3 Python season(all=False, compare=False)
Similar to R season(), retuns a dict with name, from, to and color lists.
2017-12-21 15:19:14 -03:00
Joern
73ab008fa5 Merge Activity Wizard - Size Cosmetics
... allow re-sizing of Widget (with a minimum size) (e.g. for Translations)
... show header of both "Target" and "Source of additional data series)
2017-12-21 18:14:10 +01:00
Mark Liversedge
3304e6c72e Fix Linux SEGV for symbol conflict
.. mad conflict .. where scipy.stats.linregress conflicts
   with a sndfile and crashes when calling sf_check_fpe

.. see fix stolen from here: https://github.com/scipy/scipy/issues/8130
2017-12-21 16:42:08 +00:00