sstools 0.2.4__tar.gz → 0.2.5__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.5}/PKG-INFO +4 -1
- {sstools-0.2.4 → sstools-0.2.5}/README.md +3 -0
- {sstools-0.2.4 → sstools-0.2.5}/setup.py +1 -1
- {sstools-0.2.4 → sstools-0.2.5}/sstools/ssconv.py +11 -3
- {sstools-0.2.4 → sstools-0.2.5}/sstools.egg-info/PKG-INFO +4 -1
- {sstools-0.2.4 → sstools-0.2.5}/MANIFEST.in +0 -0
- {sstools-0.2.4 → sstools-0.2.5}/setup.cfg +0 -0
- {sstools-0.2.4 → sstools-0.2.5}/sstools/__init__.py +0 -0
- {sstools-0.2.4 → sstools-0.2.5}/sstools/fina_base_times.pkl +0 -0
- {sstools-0.2.4 → sstools-0.2.5}/sstools/rudolph_points_table.xls +0 -0
- {sstools-0.2.4 → sstools-0.2.5}/sstools.egg-info/SOURCES.txt +0 -0
- {sstools-0.2.4 → sstools-0.2.5}/sstools.egg-info/dependency_links.txt +0 -0
- {sstools-0.2.4 → sstools-0.2.5}/sstools.egg-info/requires.txt +0 -0
- {sstools-0.2.4 → sstools-0.2.5}/sstools.egg-info/top_level.txt +0 -0
- {sstools-0.2.4 → sstools-0.2.5}/tests/__init__.py +0 -0
- {sstools-0.2.4 → sstools-0.2.5}/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.5
|
|
4
4
|
Summary: swimstats tools
|
|
5
5
|
Home-page: https://swimstats.net
|
|
6
6
|
Author: Roman Arnet
|
|
@@ -14,6 +14,9 @@ Requires-Dist: xlrd
|
|
|
14
14
|
|
|
15
15
|
# sstools - Swimstats Tools
|
|
16
16
|
|
|
17
|
+
0.2.5
|
|
18
|
+
- Add season 2024 FINA SCM
|
|
19
|
+
|
|
17
20
|
0.2.4
|
|
18
21
|
- Add season 2024 FINA LCM
|
|
19
22
|
|
|
@@ -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],
|
|
19
|
+
self._supported_fina_seasons = {'SCM': [2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024],
|
|
20
20
|
'LCM': [2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024]
|
|
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': 2024} # 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 = {
|
|
@@ -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.5
|
|
4
4
|
Summary: swimstats tools
|
|
5
5
|
Home-page: https://swimstats.net
|
|
6
6
|
Author: Roman Arnet
|
|
@@ -14,6 +14,9 @@ Requires-Dist: xlrd
|
|
|
14
14
|
|
|
15
15
|
# sstools - Swimstats Tools
|
|
16
16
|
|
|
17
|
+
0.2.5
|
|
18
|
+
- Add season 2024 FINA SCM
|
|
19
|
+
|
|
17
20
|
0.2.4
|
|
18
21
|
- Add season 2024 FINA LCM
|
|
19
22
|
|
|
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
|
|
File without changes
|