cdapython 2.0.10__tar.gz → 2.0.11__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.
- {cdapython-2.0.10 → cdapython-2.0.11}/CHANGELOG.md +2 -0
- {cdapython-2.0.10 → cdapython-2.0.11}/PKG-INFO +1 -1
- {cdapython-2.0.10 → cdapython-2.0.11}/cdapython/validation.py +5 -2
- {cdapython-2.0.10 → cdapython-2.0.11}/pyproject.toml +1 -1
- {cdapython-2.0.10 → cdapython-2.0.11}/LICENSE +0 -0
- {cdapython-2.0.10 → cdapython-2.0.11}/README.md +0 -0
- {cdapython-2.0.10 → cdapython-2.0.11}/cdapython/__init__.py +0 -0
- {cdapython-2.0.10 → cdapython-2.0.11}/cdapython/application_utilities.py +0 -0
- {cdapython-2.0.10 → cdapython-2.0.11}/cdapython/config/__init__.py +0 -0
- {cdapython-2.0.10 → cdapython-2.0.11}/cdapython/config/logger_default_config.yml +0 -0
- {cdapython-2.0.10 → cdapython-2.0.11}/cdapython/discover.py +0 -0
- {cdapython-2.0.10 → cdapython-2.0.11}/cdapython/get_data.py +0 -0
- {cdapython-2.0.10 → cdapython-2.0.11}/cdapython/logging_wrappers.py +0 -0
- {cdapython-2.0.10 → cdapython-2.0.11}/cdapython/summarize.py +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
2025-10-27: 2.0.11: _cough_ bugfix for previous
|
|
2
|
+
|
|
1
3
|
2025-10-27: 2.0.10: integrate column\_values() parameter validation with shared validation library; expand support for column\_values( data\_source ) to accept list values in addition to single strings
|
|
2
4
|
|
|
3
5
|
2025-10-22: 2.0.9: parametrize data\_source check in column\_values()
|
|
@@ -634,13 +634,16 @@ def validate_parameter_values(
|
|
|
634
634
|
'list': {
|
|
635
635
|
'',
|
|
636
636
|
'value',
|
|
637
|
+
'value:asc',
|
|
637
638
|
'value:desc'
|
|
638
639
|
},
|
|
639
640
|
'dataframe_or_tsv': {
|
|
640
641
|
'',
|
|
641
642
|
'count',
|
|
643
|
+
'count:asc',
|
|
642
644
|
'count:desc',
|
|
643
645
|
'value',
|
|
646
|
+
'value:asc',
|
|
644
647
|
'value:desc'
|
|
645
648
|
}
|
|
646
649
|
}
|
|
@@ -653,13 +656,13 @@ def validate_parameter_values(
|
|
|
653
656
|
# Restrict sorting options for lists.
|
|
654
657
|
if sort_by == '':
|
|
655
658
|
sort_by = 'value'
|
|
656
|
-
elif sort_by not in allowed_sort_by_options['list']:
|
|
659
|
+
elif sort_by.lower() not in allowed_sort_by_options['list']:
|
|
657
660
|
raise RuntimeError( f"return_data_as='list' can only be processed with sort_by='value' or sort_by='value:desc' (or omitting sort_by altogether). Please modify unsupported sort_by directive '{sort_by}' and try again." )
|
|
658
661
|
else:
|
|
659
662
|
# For TSV output files and DataFrames, we support more user-configurable options (defaulting to sort_by='count:desc'):
|
|
660
663
|
if sort_by == '':
|
|
661
664
|
sort_by = 'count:desc'
|
|
662
|
-
elif sort_by not in allowed_sort_by_options['dataframe_or_tsv']:
|
|
665
|
+
elif sort_by.lower() not in allowed_sort_by_options['dataframe_or_tsv']:
|
|
663
666
|
raise RuntimeError( f"unrecognized sort_by '{sort_by}'. Please use one of 'count', 'value', 'count:desc', 'value:desc', 'count:asc' or 'value:asc' (or omit the sort_by parameter altogether)." )
|
|
664
667
|
|
|
665
668
|
elif sort_by is not None:
|
|
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
|