-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
852d1b8
commit 47940cd
Showing
14 changed files
with
35 additions
and
40 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 |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
email : [email protected] | ||
***************************************************************************/ | ||
""" | ||
|
||
import functools | ||
Check failure on line 14 in LDMP/calculate_lc.py GitHub Actions / buildRuff (F401)
|
||
import json | ||
from pathlib import Path | ||
|
@@ -21,8 +22,8 @@ | |
from te_schemas.land_cover import LCLegendNesting, LCTransitionDefinitionDeg | ||
|
||
from . import calculate, lc_setup | ||
from .tasks import create_task | ||
from .jobs.manager import job_manager | ||
from .tasks import create_task | ||
|
||
DlgCalculateLcUi, _ = uic.loadUiType( | ||
str(Path(__file__).parent / "gui/DlgCalculateLC.ui") | ||
|
@@ -104,7 +105,7 @@ def calculate_on_GEE(self): | |
payload, | ||
self.script.id, | ||
AlgorithmRunMode.REMOTE, | ||
self.job_submitted | ||
self.job_submitted, | ||
) | ||
|
||
def job_submitted(self, exception, result=None): | ||
|
@@ -221,6 +222,5 @@ def calculate_locally(self): | |
job_params, | ||
self.LOCAL_SCRIPT_NAME, | ||
AlgorithmRunMode.LOCAL, | ||
self.aoi | ||
self.aoi, | ||
) | ||
|
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
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
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 |
---|---|---|
|
@@ -272,8 +272,6 @@ def btn_calculate(self): | |
"task_notes": "", | ||
} | ||
|
||
|
||
|
||
resp = create_task( | ||
job_manager, | ||
payload, | ||
|
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 |
---|---|---|
|
@@ -9,17 +9,18 @@ | |
"import json\n", | ||
"\n", | ||
"import ee\n", | ||
"\n", | ||
"from PIL import Image\n", | ||
"import numpy as np\n", | ||
"import matplotlib.pyplot as plt\n", | ||
"import matplotlib.gridspec as gridspec\n", | ||
"import matplotlib.pyplot as plt\n", | ||
"import numpy as np\n", | ||
"import pandas as pd\n", | ||
"from PIL import Image\n", | ||
"\n", | ||
"EE_ACCOUNT = '[email protected]'\n", | ||
"EE_ACCOUNT = \"[email protected]\"\n", | ||
"\n", | ||
"# The private key associated with your service account in JSON format.\n", | ||
"EE_PRIVATE_KEY_FILE = 'C:/Users/azvoleff/Code/LandDegradation/decisiontheater/te_key.json'\n", | ||
"EE_PRIVATE_KEY_FILE = (\n", | ||
" \"C:/Users/azvoleff/Code/LandDegradation/decisiontheater/te_key.json\"\n", | ||
")\n", | ||
"\n", | ||
"EE_CREDENTIALS = ee.ServiceAccountCredentials(EE_ACCOUNT, EE_PRIVATE_KEY_FILE)\n", | ||
"ee.Initialize(EE_CREDENTIALS)\n", | ||
|
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