Skip to content

Conversation

fschrader1992
Copy link
Collaborator

@fschrader1992 fschrader1992 commented Mar 19, 2020

This PR

  • adds validations fro property values with dtype string. It checks, whether possible other dtypes might have been detected as string instead and issues a warnings.
  • adds corresponding tests.
  • adds new xml, yaml and json files to test respective validations.

Checks for Code Quality:

  • Pylint
  • Rebase from GNODE Master
  • Repeat Local Tests Python3.8
  • Repeat Local Tests Python2.7

@coveralls
Copy link

coveralls commented Mar 19, 2020

Coverage Status

Coverage increased (+0.2%) to 75.627% when pulling baf75c8 on fschrader1992:validation into 48d83b7 on G-Node:master.

Copy link
Contributor

@mpsonntag mpsonntag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice PR, thanks!

I would like to ask for a change in the validation behaviour though. I think it would be better, if the first value is used to identify a dtype different from string but only suggest a dtype change, if all values fit the suggested dtype. If the values are a mix of different dtypes, a change in dtype should not be suggested.

Remove integration.xml
Add validation_dtypes.xml
Add validation_section.xml

Split test functionality.
- Replace part of current XML File Loading Test
- Incorporate new file in resources/validation_section.xml
- Replace current XML File Loading Test
- Incorporate file at resources/validation_dtypes.xml
Remove integration.json
Add validation_dtypes.json
Add validation_section.json

Split test functionality.
- Replace part of current JSON File Loading Test
- Incorporate file at resources/validation_section.json
- Replace current JSON File Loading Test
- Incorporate file at resources/validation_dtypes.json
Remove integration.yaml
Add validation_dtypes.yaml
Add validation_section.yaml

Split test functionality.
- Replace part of current YAML File Loading Test
- Incorporate file at resources/validation_section.yaml
- Replace current YAML File Loading Test
- Incorporate file at resources/validation_dtypes.yaml
@fschrader1992
Copy link
Collaborator Author

Checks for Code Quality:

  • Pylint
  • Rebase from GNODE Master
  • Repeat Local Tests Python3.8
  • Repeat Local Tests Python2.7

@mpsonntag mpsonntag merged commit 7e9299e into G-Node:master Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants