-
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.
- Loading branch information
Showing
5 changed files
with
44 additions
and
46 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 |
---|---|---|
|
@@ -96,5 +96,7 @@ module = [ | |
"pyproj.*", | ||
"pandas.*", | ||
"numpy.*", | ||
"boto3.*", | ||
"botocore.*", | ||
] | ||
ignore_missing_imports = true |
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
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,38 +1,36 @@ | ||
import pandas as pd | ||
from datetime import datetime | ||
import os | ||
|
||
from baec.measurements.basetime_measurements import ProjectsIDs, Credentials | ||
|
||
""" | ||
Test script for the Basetime connection. | ||
Credentials file is not loaded in env, but stored locally | ||
def test_basetime_connection(): | ||
""" | ||
Test script for the Basetime connection. | ||
Credentials file is not loaded in env, but stored locally | ||
testing: | ||
-Output when calling company, projects, object IDs | ||
-Output when calling a series of an object ID | ||
""" | ||
print(datetime.now()) | ||
time_start = datetime.now() | ||
testing: | ||
-Output when calling company, projects, object IDs | ||
-Output when calling a series of an object ID | ||
""" | ||
print(datetime.now()) | ||
time_start = datetime.now() | ||
|
||
# get AWS credentials | ||
credentials = Credentials() | ||
# get AWS credentials | ||
credentials = Credentials() | ||
|
||
manage_project = ProjectsIDs(credentials) | ||
|
||
print(datetime.now()-time_start) | ||
time_start = datetime.now() | ||
print(manage_project.get_users_projects_ids()) | ||
test_series = manage_project.make_SettlementRodMeasurementSeries( | ||
project="Voorbelasting Wilderszijde Lansingerland", rod_id="ZB-1001" | ||
) | ||
manage_project = ProjectsIDs(credentials) | ||
|
||
print(test_series.to_dataframe()) | ||
print(datetime.now()-time_start) | ||
time_start = datetime.now() | ||
test_series = manage_project.make_SettlementRodMeasurementSeries( | ||
project="Voorbelasting Wilderszijde Lansingerland", rod_id="ZB-1001" | ||
) | ||
print(test_series.to_dataframe()) | ||
print(datetime.now()-time_start) | ||
time_start = datetime.now() | ||
print(datetime.now()-time_start) | ||
time_start = datetime.now() | ||
print(manage_project.get_users_projects_ids()) | ||
test_series = manage_project.make_SettlementRodMeasurementSeries( | ||
project="Voorbelasting Wilderszijde Lansingerland", rod_id="ZB-1001" | ||
) | ||
|
||
print(test_series.to_dataframe()) | ||
print(datetime.now()-time_start) | ||
time_start = datetime.now() | ||
test_series = manage_project.make_SettlementRodMeasurementSeries( | ||
project="Voorbelasting Wilderszijde Lansingerland", rod_id="ZB-1001" | ||
) | ||
print(test_series.to_dataframe()) | ||
print(datetime.now()-time_start) |