Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Types matching #741

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Types matching #741

wants to merge 2 commits into from

Conversation

crabio
Copy link

@crabio crabio commented Jul 29, 2019

Add function into write_points to get fields types of measurement, before downloading, and if field exists, convert to existed type.
This feature is very usefull if you don't care about typing your date, when download and can will avoid error with types mismatch if you try to load float into integer field.

P.S. As bonus I add VSCode files into gitignore.

@@ -21,3 +21,4 @@ docs/build/
.coverage
cover
env
.vscode
Copy link
Collaborator

@aviau aviau Jul 29, 2019

Choose a reason for hiding this comment

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

This should be in your system's global .gitignore.

It does not make sense to add every single file created by every single editor in existence to every single project's gitignore.

Look at this article for help on ignoring files with git.

Copy link
Author

Choose a reason for hiding this comment

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

Okey, thanks for link!

@aviau
Copy link
Collaborator

aviau commented Jul 29, 2019

Thanks for contributing!

Please add a test so that we consider to merge the patch.

Also, please make it optional as it could bread existing uses of the library.

@sebito91 sebito91 self-assigned this Apr 8, 2020
Copy link
Contributor

@sebito91 sebito91 left a comment

Choose a reason for hiding this comment

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

I'd like to think about merging these changes with the changes from #779, especially since you're adding a SHOW FIELD KEYS function.

We should split out the SHOW FIELD KEYS to a separate function, but I like the idea of returning the dict with types for each key.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants