-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add converter class for parquet (#414)
* add converter class for parquet * fix migration * generate geoparquet using duckdb * refactor converter
- Loading branch information
1 parent
8adbec9
commit 4ac2551
Showing
3 changed files
with
446 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# coding=utf-8 | ||
""" | ||
Tomorrow Now GAP. | ||
.. note:: Helper for reading ingestor config | ||
""" | ||
|
||
|
||
from gap.models import Provider, Preferences | ||
|
||
|
||
def get_ingestor_config_from_preferences(provider: Provider) -> dict: | ||
"""Retrieve additional config for a provider. | ||
:param provider: provider | ||
:type provider: Provider | ||
:return: additional config for Ingestor | ||
:rtype: dict | ||
""" | ||
config = Preferences.load().ingestor_config | ||
return config.get(provider.name, {}) |
Oops, something went wrong.