Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

temporal: Profile ply debug #268

Open
wants to merge 87 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
dbe9096
temporal: Vendor ply dependency par repo's instructions as no longer …
echoix Oct 6, 2024
75ff943
temporal: Add ply to makefile
echoix Oct 6, 2024
e7bdddf
temporal: Remove ply from requirements
echoix Oct 6, 2024
72cac3c
temporal: Use relative ply package in grass.temporal code
echoix Oct 6, 2024
a8f1f32
temporal: Create ply subdirectory in makefile
echoix Oct 6, 2024
81f7201
temporal: Remove checks for ply imports in temporal modules
echoix Oct 6, 2024
6d02147
temporal: Remove references to ply in manual pages
echoix Oct 6, 2024
d7099d4
checks: Ignore vendored ply from flake8 checks
echoix Oct 6, 2024
fc0f363
checks: Ignore vendored ply from pre-commit checks
echoix Oct 6, 2024
4c8371c
temporal: Remove optimize and nowarn keywords sent to ply.lex as remo…
echoix Oct 6, 2024
b1fbe65
temporal: Remove write_tables keyword sent to ply.yacc as removed in …
echoix Oct 6, 2024
de20ce2
temporal: Use debug=False for yacc constructor in TemporalOperatorParser
echoix Oct 6, 2024
1c56215
grass.temporal.c_libraries_interface: Use context manager for lock in…
echoix Oct 6, 2024
17b5885
grass.temporal.c_libraries_interface: Add typing annotations for lock…
echoix Oct 6, 2024
37a192a
grass.pygrass.rpc.base: Non-working trial of asyncio
echoix Oct 6, 2024
5b4c115
Revert "grass.pygrass.rpc.base: Non-working trial of asyncio"
echoix Oct 6, 2024
22d62dd
grass.pygrass.rpc.base: Add typing annotations for lock and conn
echoix Oct 6, 2024
46b5aa0
grass.pygrass.rpc.base: Use context manager for lock in dummy_server
echoix Oct 6, 2024
7ab98f8
grass.pygrass.rpc.base: Use context manager for threadLock in RPCServ…
echoix Oct 6, 2024
4f9f2fe
grass.pygrass.rpc.base: Remove release lock in context manager
echoix Oct 6, 2024
1efd3e3
t.rast.accumulate: Remove unused SimpleModule import in test_accumula…
echoix Oct 6, 2024
266a610
t.rast.accumulate: Call t.remove with multiple inputs in test_accumul…
echoix Oct 6, 2024
78b745f
grass.pygrass.rpc.base: Add more typing annotations
echoix Oct 6, 2024
66b577f
grass.pygrass.rpc.base: Check for None to satisfy mypy type checking
echoix Oct 6, 2024
131cf0e
grass.pygrass.rpc.base: Remove release lock in context managers, as t…
echoix Oct 6, 2024
618f49d
grass.temporal.ply: Format black
echoix Oct 6, 2024
9d7ad70
DEBUG: shorter test runs and results
echoix Oct 6, 2024
17527b2
grass.temporal.ply: Fix useless-object-inheritance (UP004)
echoix Oct 6, 2024
b27981a
grass.temporal.ply: Fix os-error-alias (UP024)
echoix Oct 6, 2024
494b464
grass.temporal.ply: Fix unnecessary-assign (RET504)
echoix Oct 7, 2024
79bf7bc
grass.temporal.ply: Fix superfluous-else-raise (RET506)
echoix Oct 7, 2024
684cfe2
grass.temporal.ply: Fix superfluous-else-continue (RET507)
echoix Oct 7, 2024
3ac8f67
grass.temporal.ply: Fix implicit-return-value (RET502)
echoix Oct 7, 2024
5804508
grass.temporal.ply: Fix superfluous-else-return (RET505)
echoix Oct 7, 2024
ddd7d1d
grass.temporal.ply: Fix yoda-conditions (SIM300)
echoix Oct 7, 2024
de8c156
grass.temporal.ply: Fix repeated-equality-comparison (PLR1714)
echoix Oct 7, 2024
2132e63
grass.temporal.ply: Fix not-in-test (E713)
echoix Oct 7, 2024
7ebf941
grass.temporal.ply: Fix read-whole-file (FURB101)
echoix Oct 7, 2024
91b79d1
grass.temporal.ply: Fix collapsible-else-if (PLR5501)
echoix Oct 7, 2024
8cb220e
grass.temporal.ply: Fix non-augmented-assignment (PLR6104)
echoix Oct 7, 2024
b223b92
grass.temporal.ply: Fix incorrectly-parenthesized-tuple-in-subscript …
echoix Oct 7, 2024
c9c99de
grass.temporal.ply: Fix delete-full-slice (FURB131)
echoix Oct 7, 2024
a1b0e97
grass.temporal.ply: Fix error-instead-of-exception (TRY400)
echoix Oct 7, 2024
bbef357
grass.temporal.ply: Fix missing-trailing-comma (COM812)
echoix Oct 7, 2024
f71bb45
grass.temporal.ply: Fix if-else-block-instead-of-if-exp (SIM108)
echoix Oct 7, 2024
edab7e2
grass.temporal.ply: Fix raw-string-in-exception (EM101)
echoix Oct 7, 2024
edd43ff
grass.temporal.ply: Fix literal-membership (PLR6201)
echoix Oct 7, 2024
055fd40
grass.temporal.ply: Fix literal-membership (PLR6201)
echoix Oct 7, 2024
415185e
grass.temporal.ply: Fix unreliable-callable-check (B004)
echoix Oct 7, 2024
09cdf2a
grass.temporal.ply: Fix unspecified-encoding (PLW1514)
echoix Oct 7, 2024
59a056f
grass.temporal.ply: Fix f-string-in-exception (EM102)
echoix Oct 7, 2024
81262ad
grass.temporal.ply: Apply isort
echoix Oct 7, 2024
60a045a
grass.temporal.ply: Fix assert (S101)
echoix Oct 7, 2024
f348208
grass.temporal.ply: Fix manual-list-comprehension (PERF401)
echoix Oct 7, 2024
973861f
grass.temporal.ply: Fix lambda-assignment (E731)
echoix Oct 7, 2024
ab08a5a
grass.temporal.ply: Fix collapsible-if (SIM102)
echoix Oct 7, 2024
8164e34
grass.temporal.ply: Fix collapsible-if (SIM102)
echoix Oct 7, 2024
dd30438
grass.temporal.ply: Fix enumerate-for-loop (SIM113)
echoix Oct 7, 2024
41f9efb
grass.temporal.ply: Fix missing-return-type-undocumented-public-funct…
echoix Oct 7, 2024
ed4f540
grass.temporal.ply: Fix missing-return-type-special-method (ANN204)
echoix Oct 7, 2024
b83e64d
grass.temporal.ply: Fix missing-return-type-private-function (ANN202)
echoix Oct 7, 2024
bc95591
grass.temporal.ply: Fix printf-string-formatting (UP031)
echoix Oct 7, 2024
cb2edca
grass.temporal.ply: Fix f-string (UP032)
echoix Oct 7, 2024
9c99f56
grass.temporal.ply: Fix f-string-in-exception (EM102)
echoix Oct 7, 2024
a6b1fc5
t.rast.accdetect: Call t.remove with multiple inputs
echoix Oct 7, 2024
59b2c70
temporal: Fix unused-import (F401) in testsuite
echoix Oct 7, 2024
c640b59
DEBUG: Remove shorter test runs and results
echoix Oct 7, 2024
08607e5
grass.temporal: Fix unused-import (F401)
echoix Oct 7, 2024
13991b8
grass.benchmark: Fix unused-import (F401) by defining __all__
echoix Oct 7, 2024
9a73a3c
grass.pygrass.vector: Fix unused-import (F401) for testsuite
echoix Oct 7, 2024
43fe2e7
grass.pygrass.vector: Sort imports
echoix Oct 7, 2024
a2cbe54
vector: Fix unused-import (F401) for testsuite
echoix Oct 7, 2024
d04b903
scripts: Fix unused-import (F401) for testsuite
echoix Oct 7, 2024
3f36510
raster: Fix unused-import (F401) for testsuite
echoix Oct 7, 2024
3d15b8e
v.fill.holes: Fix unused-import (F401)
echoix Oct 7, 2024
351251d
doc: Fix unused-import (F401)
echoix Oct 7, 2024
6554190
grass.semantic_label: Fix unused-import (F401) by defining __all__ in…
echoix Oct 7, 2024
61a6601
grass.pygrass.rpc: Fix unused-import (F401) in __init__
echoix Oct 7, 2024
8bf43ec
grass.pygrass.modules.interface: Fix unused-import (F401) by defining…
echoix Oct 7, 2024
81df2f5
grass.pygrass.modules.interface: Apply isort
echoix Oct 7, 2024
ad57636
grass.pygrass.modules.grid: Fix unused-import (F401) by defining __al…
echoix Oct 7, 2024
c009af3
grass.pygrass.modules: Fix unused-import (F401) by defining __all__ i…
echoix Oct 7, 2024
a2a7c5e
grass.pygrass.modules: Apply isort
echoix Oct 7, 2024
c3fce90
grass.imaging: Fix unused-import (F401) by defining __all__ in __init__
echoix Oct 7, 2024
320e47b
grass.imaging: Apply isort
echoix Oct 7, 2024
8de348b
grass.jupyter: Fix unused-import (F401) by defining __all__ in __init__
echoix Oct 7, 2024
f56f8a3
grass.jupyter: Apply isort
echoix Oct 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ exclude =
# Test output directory
testreport,
# Not yet compliant
python/grass/temporal/ply,
python/libgrass_interface_generator,
# No tests checked for now
testsuite,
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/apt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ python3-dateutil
python3-matplotlib
python3-numpy
python3-pil
python3-ply
python3-pyvirtualdisplay
python3-termcolor
sqlite3
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/macos_dependencies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ pandoc
pdal
pillow
pkg-config
ply
postgresql
proj
pytest
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/osgeo4w.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ jobs:
python3-matplotlib
python3-numpy
python3-pip
python3-ply
python3-pytest
python3-pywin32
python3-wxpython
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/python_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
matplotlib
numpy
Pillow
ply
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ repos:
.*\.po$|
.*\.ps$|
.*\.svg$|
python/grass/temporal/ply/|
python/libgrass_interface_generator/ctypesgen/|
lib/fonts/fonts/.*
)
Expand All @@ -32,6 +33,7 @@ repos:
.*\.po$|
.*\.ps$|
.*\.svg$|
python/grass/temporal/ply/|
python/libgrass_interface_generator/ctypesgen/|
lib/fonts/fonts/.*
)
Expand All @@ -53,6 +55,7 @@ repos:
- id: black-jupyter
exclude: |
(?x)^(
python/grass/temporal/ply/|
python/libgrass_interface_generator/
)
- repo: https://github.com/pycqa/flake8
Expand All @@ -61,6 +64,7 @@ repos:
- id: flake8
exclude: |
(?x)^(
python/grass/temporal/ply/|
python/libgrass_interface_generator/|
.*/testsuite/.*
)
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ ARG GRASS_PYTHON_PACKAGES="\
matplotlib \
numpy \
pip \
ply \
psycopg2 \
python-dateutil \
python-magic \
Expand Down
3 changes: 0 additions & 3 deletions REQUIREMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ Note: also the respective development packages (commonly named `xxx-dev` or
- **Python dateutil Library** (`python-dateutil`, needed for the tgrass modules `t.*`)
[https://pypi.org/project/python-dateutil/](https://pypi.org/project/python-dateutil/)
[https://github.com/dateutil/dateutil](https://github.com/dateutil/dateutil)
- **Python PLY Library (Python Lex-Yacc)** (`python-ply`, needed for the
temporal algebra in tgis)
[https://www.dabeaz.com/ply](https://www.dabeaz.com/ply/)
- **Pillow (Python Imaging Library)** (highly recommended for wxGUI and
necessary for wxGUI Cartographic Composer)
[https://python-pillow.org/](https://python-pillow.org/)
Expand Down
1 change: 0 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
"python3-dateutil",
"python3-dev",
"python3-numpy",
"python3-ply",
"python3-pil",
"libnetcdf-dev",
"netcdf-bin",
Expand Down
1 change: 0 additions & 1 deletion binder/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ folium
matplotlib
numpy
Pillow
ply
PyVirtualDisplay
1 change: 0 additions & 1 deletion doc/notebooks/hydrology.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"outputs": [],
"source": [
"# Import Python standard library and IPython packages we need.\n",
"import os\n",
"import subprocess\n",
"import sys\n",
"import csv\n",
Expand Down
1 change: 0 additions & 1 deletion doc/notebooks/jupyter_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"source": [
"# Import Python standard library and IPython packages we need.\n",
"import subprocess\n",
"import time\n",
"import sys\n",
"\n",
"# Ask GRASS GIS where its Python packages are.\n",
Expand Down
Loading
Loading