-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Definitions for measurements api (#6)
* add measurements protobuf definition * inlude measurement api definitions into client * fix error when running dataset api query directly on job queue * example notebook for measurements * linting and small cleanup * remove unnecessary logging message Co-authored-by: fredericschwarz <[email protected]>
- Loading branch information
Showing
15 changed files
with
1,172 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,4 +129,7 @@ dmypy.json | |
.pyre/ | ||
|
||
#IDEs | ||
.idea/ | ||
.idea/ | ||
|
||
#Apple | ||
*.DS_Store |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1 @@ | ||
from .client import ApiError, Client, Error | ||
|
||
# from .Dataset_pb2 import Dataset_pb2 |
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
Empty file.
File renamed without changes.
10 changes: 5 additions & 5 deletions
10
meteoblue_dataset_sdk/Dataset_pb2.py → ...oblue_dataset_sdk/protobuf/dataset_pb2.py
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,40 @@ | ||
syntax = "proto3"; | ||
|
||
message MeasurementApiProtobuf { | ||
|
||
// variables go here | ||
repeated Column columns = 1; | ||
uint32 rows_count = 2; | ||
uint32 current_page = 3; | ||
uint32 rows_per_page = 4; | ||
|
||
|
||
message Column { | ||
// meta | ||
string column = 1; | ||
// values | ||
Values values = 2; | ||
} | ||
|
||
// Variant type encoding | ||
message Values { | ||
// Exactly one of these values must be present in a valid message | ||
oneof oneof_values { | ||
RepeatedString strings = 1; | ||
RepeatedFloat floats = 2; | ||
RepeatedInt64 ints64 = 3; | ||
} | ||
} | ||
|
||
message RepeatedString { | ||
repeated string array = 1; | ||
} | ||
|
||
message RepeatedFloat { | ||
repeated float array = 1 [packed=true]; | ||
} | ||
|
||
message RepeatedInt64 { | ||
repeated int64 array = 1 [packed=true]; | ||
} | ||
} |
Oops, something went wrong.