Skip to content

Commit c406d6d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5527403 commit c406d6d

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

LDMP/jobs/mvc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ def filterAcceptsRow(self, source_row: int, source_parent: QtCore.QModelIndex):
130130
if self.start_date and self.end_date:
131131
job_start_date = QtCore.QDate.fromString(job.start_date, "yyyy-MM-dd")
132132
job_end_date = QtCore.QDate.fromString(job.end_date, "yyyy-MM-dd")
133-
matches_date = job_start_date >= self.start_date and job_end_date <= self.end_date
133+
matches_date = (
134+
job_start_date >= self.start_date and job_end_date <= self.end_date
135+
)
134136

135137
return matches_filter and matches_type and matches_date
136138

LDMP/main_widget.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ def __init__(
164164
self.start_dte.dateChanged(self.date_filter_changed)
165165
self.end_dte.dateChanged(self.date_filter_changed)
166166

167-
168167
def date_filter_changed(self):
169168
start_date = self.start_dte.dateTime()
170169
end_date = self.end_date.dateTime()

gee/landpks/landpks_landtrend_plot.ipynb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@
99
"import json\n",
1010
"\n",
1111
"import ee\n",
12-
"\n",
13-
"from PIL import Image\n",
14-
"import numpy as np\n",
15-
"import matplotlib.pyplot as plt\n",
1612
"import matplotlib.gridspec as gridspec\n",
13+
"import matplotlib.pyplot as plt\n",
14+
"import numpy as np\n",
1715
"import pandas as pd\n",
16+
"from PIL import Image\n",
1817
"\n",
19-
"EE_ACCOUNT = '[email protected]'\n",
18+
"EE_ACCOUNT = \"[email protected]\"\n",
2019
"\n",
2120
"# The private key associated with your service account in JSON format.\n",
22-
"EE_PRIVATE_KEY_FILE = 'C:/Users/azvoleff/Code/LandDegradation/decisiontheater/te_key.json'\n",
21+
"EE_PRIVATE_KEY_FILE = (\n",
22+
" \"C:/Users/azvoleff/Code/LandDegradation/decisiontheater/te_key.json\"\n",
23+
")\n",
2324
"\n",
2425
"EE_CREDENTIALS = ee.ServiceAccountCredentials(EE_ACCOUNT, EE_PRIVATE_KEY_FILE)\n",
2526
"ee.Initialize(EE_CREDENTIALS)\n",

gee/landpks/landpks_test_api.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
],
2929
"source": [
3030
"import json\n",
31-
"import requests\n",
3231
"import time\n",
3332
"from getpass import getpass\n",
3433
"\n",
3534
"import ipyplot\n",
35+
"import requests\n",
3636
"from IPython.display import Image"
3737
]
3838
},
@@ -66,7 +66,7 @@
6666
],
6767
"source": [
6868
"api_url = \"https://api.trends.earth\"\n",
69-
"#api_url = \"http://localhost:3000\"\n",
69+
"# api_url = \"http://localhost:3000\"\n",
7070
"email, password = input(\"Email: \"), getpass(\"Password: \")\n",
7171
"creds = {\"email\": email, \"password\": password}\n",
7272
"auth_url = api_url + \"/auth\"\n",

0 commit comments

Comments
 (0)