generated from kamangir/blue-plugin
-
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
15 changed files
with
82 additions
and
93 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
This file was deleted.
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,6 +1,6 @@ | ||
import yaml | ||
|
||
|
||
def Q_load_yaml(filename): | ||
def Q_load_yaml(filename: str): | ||
with open(filename, "r") as file: | ||
return yaml.safe_load(file) |
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 @@ | ||
from typing import List | ||
|
||
if not QGIS_is_live: | ||
from .logger import Q_log | ||
|
||
|
||
def Q_save_text( | ||
filename: str, | ||
text: List[str], | ||
log: bool = True, | ||
): | ||
with open(filename, "w") as fp: | ||
fp.writelines([string + "\n" for string in text]) | ||
|
||
if log: | ||
Q_log( | ||
"Q_save_text: {:,} line(s) -> {}".format( | ||
len(text), | ||
filename, | ||
) | ||
) |
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,29 +1,18 @@ | ||
if not QGIS_is_live: | ||
from .alias import Q_alias_help | ||
from .graphics import Q_graphics_help | ||
from .layer import Q_layer | ||
from .logger import Q_clear | ||
from .objects import Q_objects_help | ||
from .QGIS import QGIS, Q_QGIS_help | ||
from .QGIS import QGIS | ||
from .project import Q_project | ||
from .testing import Q_testing_help | ||
|
||
|
||
def Q_help(clear=False): | ||
if clear: | ||
Q_clear() | ||
Q_clear(log=False) | ||
|
||
for thing in [ | ||
Q_layer, | ||
Q_project, | ||
] + [app for app in QGIS.app_list if app.name != "template"]: | ||
thing.help() | ||
|
||
for func in [ | ||
Q_graphics_help, | ||
Q_testing_help, | ||
Q_objects_help, | ||
Q_QGIS_help, | ||
Q_alias_help, | ||
]: | ||
func() | ||
QGIS.help_() |
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 |
---|---|---|
|
@@ -40,7 +40,3 @@ def Q_test(): | |
Q_hr() | ||
|
||
Q_log(f"ran {description}.", icon="✅") | ||
|
||
|
||
def Q_testing_help(): | ||
Q_log("Q.test", f"test Q.") |
This file was deleted.
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
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
Oops, something went wrong.