sstools 0.2.4__tar.gz → 0.2.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sstools-0.2.4 → sstools-0.2.6}/PKG-INFO +10 -3
- {sstools-0.2.4 → sstools-0.2.6}/README.md +9 -2
- {sstools-0.2.4 → sstools-0.2.6}/setup.py +1 -1
- {sstools-0.2.4 → sstools-0.2.6}/sstools/fina_base_times.pkl +0 -0
- {sstools-0.2.4 → sstools-0.2.6}/sstools/ssconv.py +14 -6
- {sstools-0.2.4 → sstools-0.2.6}/sstools.egg-info/PKG-INFO +10 -3
- {sstools-0.2.4 → sstools-0.2.6}/MANIFEST.in +0 -0
- {sstools-0.2.4 → sstools-0.2.6}/setup.cfg +0 -0
- {sstools-0.2.4 → sstools-0.2.6}/sstools/__init__.py +0 -0
- {sstools-0.2.4 → sstools-0.2.6}/sstools/rudolph_points_table.xls +0 -0
- {sstools-0.2.4 → sstools-0.2.6}/sstools.egg-info/SOURCES.txt +0 -0
- {sstools-0.2.4 → sstools-0.2.6}/sstools.egg-info/dependency_links.txt +0 -0
- {sstools-0.2.4 → sstools-0.2.6}/sstools.egg-info/requires.txt +0 -0
- {sstools-0.2.4 → sstools-0.2.6}/sstools.egg-info/top_level.txt +0 -0
- {sstools-0.2.4 → sstools-0.2.6}/tests/__init__.py +0 -0
- {sstools-0.2.4 → sstools-0.2.6}/tests/test_ssconv.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sstools
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.6
|
|
4
4
|
Summary: swimstats tools
|
|
5
5
|
Home-page: https://swimstats.net
|
|
6
6
|
Author: Roman Arnet
|
|
@@ -14,8 +14,15 @@ Requires-Dist: xlrd
|
|
|
14
14
|
|
|
15
15
|
# sstools - Swimstats Tools
|
|
16
16
|
|
|
17
|
+
0.2.6
|
|
18
|
+
- Fix available styles
|
|
19
|
+
- Add season 2025 FINA LCM
|
|
20
|
+
|
|
21
|
+
0.2.5
|
|
22
|
+
- Add season 2024 FINA SCM
|
|
23
|
+
|
|
17
24
|
0.2.4
|
|
18
|
-
- Add season 2024 FINA LCM
|
|
25
|
+
- Add season 2024 FINA LCM
|
|
19
26
|
|
|
20
27
|
0.2.3
|
|
21
28
|
- Add season 2024 Rudolph
|
|
@@ -27,7 +34,7 @@ Requires-Dist: xlrd
|
|
|
27
34
|
- Add season 2023 (FINA and Rudolph)
|
|
28
35
|
|
|
29
36
|
0.2.0
|
|
30
|
-
- FINA base table derived from swimrankings
|
|
37
|
+
- FINA base table derived from swimrankings
|
|
31
38
|
|
|
32
39
|
0.1.8
|
|
33
40
|
- round base times
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
# sstools - Swimstats Tools
|
|
2
2
|
|
|
3
|
+
0.2.6
|
|
4
|
+
- Fix available styles
|
|
5
|
+
- Add season 2025 FINA LCM
|
|
6
|
+
|
|
7
|
+
0.2.5
|
|
8
|
+
- Add season 2024 FINA SCM
|
|
9
|
+
|
|
3
10
|
0.2.4
|
|
4
|
-
- Add season 2024 FINA LCM
|
|
11
|
+
- Add season 2024 FINA LCM
|
|
5
12
|
|
|
6
13
|
0.2.3
|
|
7
14
|
- Add season 2024 Rudolph
|
|
@@ -13,7 +20,7 @@
|
|
|
13
20
|
- Add season 2023 (FINA and Rudolph)
|
|
14
21
|
|
|
15
22
|
0.2.0
|
|
16
|
-
- FINA base table derived from swimrankings
|
|
23
|
+
- FINA base table derived from swimrankings
|
|
17
24
|
|
|
18
25
|
0.1.8
|
|
19
26
|
- round base times
|
|
Binary file
|
|
@@ -16,11 +16,11 @@ class SsConverter:
|
|
|
16
16
|
# There is no Rudolphtabelle for 2021. 2021 bases on times swam 2019 too.
|
|
17
17
|
self._rudolph_season_base = 2024 # rudolph_season_base bases on times swam the season before
|
|
18
18
|
|
|
19
|
-
self._supported_fina_seasons = {'SCM': [2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023],
|
|
20
|
-
'LCM': [2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024]
|
|
19
|
+
self._supported_fina_seasons = {'SCM': [2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024],
|
|
20
|
+
'LCM': [2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025]
|
|
21
21
|
}
|
|
22
|
-
self._fina_season_base = {'SCM':
|
|
23
|
-
'LCM':
|
|
22
|
+
self._fina_season_base = {'SCM': 2024, # Validity Period: 1.9.YYYY-31.8.YYYY+1
|
|
23
|
+
'LCM': 2025} # Validity Period: 1.1.XXXX-31.12.XXXX
|
|
24
24
|
self._fina_base_table_path = os.path.join(os.path.dirname(__file__), 'fina_base_times.pkl')
|
|
25
25
|
self._rudolph_points_table_path = os.path.join(os.path.dirname(__file__), 'rudolph_points_table.xls')
|
|
26
26
|
self._dict_style_styleid = {
|
|
@@ -322,10 +322,10 @@ class SsConverter:
|
|
|
322
322
|
return self._dict_styleid_style[styleid]
|
|
323
323
|
|
|
324
324
|
def get_available_styleids(self):
|
|
325
|
-
return self._dict_styleid_style.keys()
|
|
325
|
+
return list(self._dict_styleid_style.keys())
|
|
326
326
|
|
|
327
327
|
def get_available_styles(self):
|
|
328
|
-
return self._dict_styleid_style.values()
|
|
328
|
+
return list(self._dict_styleid_style.values())
|
|
329
329
|
|
|
330
330
|
def get_fina_validity_period(self, course):
|
|
331
331
|
if course == 'SCM':
|
|
@@ -341,9 +341,13 @@ class SsConverter:
|
|
|
341
341
|
return self._rudolph_season_base
|
|
342
342
|
|
|
343
343
|
def set_fina_season_base(self, course, season):
|
|
344
|
+
if season not in self._supported_fina_seasons[course]:
|
|
345
|
+
raise ValueError('unsupported season: %s' % season)
|
|
344
346
|
self._fina_season_base[course] = season
|
|
345
347
|
|
|
346
348
|
def set_rudolph_season_base(self, season):
|
|
349
|
+
if season not in self._supported_rudolph_seasons:
|
|
350
|
+
raise ValueError('unsupported season: %s' % season)
|
|
347
351
|
self._rudolph_season_base = season
|
|
348
352
|
|
|
349
353
|
@staticmethod
|
|
@@ -442,3 +446,7 @@ if __name__ == '__main__':
|
|
|
442
446
|
print(ssconv.get_finapts_from_seconds('SCM', 'M', '50m Freestyle', [20.24], 2020))
|
|
443
447
|
|
|
444
448
|
print(ssconv.get_finapts_from_seconds('LCM', 'F', '200m Freestyle', 112.98))
|
|
449
|
+
|
|
450
|
+
ssconv.set_fina_season_base('SCM', 2024)
|
|
451
|
+
ssconv.set_fina_season_base('LCM', 2024)
|
|
452
|
+
ssconv.set_rudolph_season_base(2024)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sstools
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.6
|
|
4
4
|
Summary: swimstats tools
|
|
5
5
|
Home-page: https://swimstats.net
|
|
6
6
|
Author: Roman Arnet
|
|
@@ -14,8 +14,15 @@ Requires-Dist: xlrd
|
|
|
14
14
|
|
|
15
15
|
# sstools - Swimstats Tools
|
|
16
16
|
|
|
17
|
+
0.2.6
|
|
18
|
+
- Fix available styles
|
|
19
|
+
- Add season 2025 FINA LCM
|
|
20
|
+
|
|
21
|
+
0.2.5
|
|
22
|
+
- Add season 2024 FINA SCM
|
|
23
|
+
|
|
17
24
|
0.2.4
|
|
18
|
-
- Add season 2024 FINA LCM
|
|
25
|
+
- Add season 2024 FINA LCM
|
|
19
26
|
|
|
20
27
|
0.2.3
|
|
21
28
|
- Add season 2024 Rudolph
|
|
@@ -27,7 +34,7 @@ Requires-Dist: xlrd
|
|
|
27
34
|
- Add season 2023 (FINA and Rudolph)
|
|
28
35
|
|
|
29
36
|
0.2.0
|
|
30
|
-
- FINA base table derived from swimrankings
|
|
37
|
+
- FINA base table derived from swimrankings
|
|
31
38
|
|
|
32
39
|
0.1.8
|
|
33
40
|
- round base times
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|