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

F841 fixes #18

Merged
merged 15 commits into from
Oct 18, 2024
Merged

F841 fixes #18

merged 15 commits into from
Oct 18, 2024

Conversation

a0x8o
Copy link
Owner

@a0x8o a0x8o commented Oct 18, 2024

wxGUI: Fixed F841 in mapwindow.py (https://github.com/OSGeo/grass/pull/4538[)](https://github.com/a0x8o/grass/commit/39ff021208e8cbca0615c3545ffa9d191e149e88)

wxGUI: Added TypeError to lmgr/ (https://github.com/OSGeo/grass/pull/4537[)](https://github.com/a0x8o/grass/commit/a740da1d4a638c0e129ac95e7c298961f06f3111)

wxGUI: Fixed F841 in modules/ (https://github.com/OSGeo/grass/pull/4528[)](https://github.com/a0x8o/grass/commit/4e8b0bf5e890f398b528f630c112b86b5a6d9471)

GUI: fix crashing due to File menu translation issues (https://github.com/OSGeo/grass/pull/4513[)](https://github.com/a0x8o/grass/commit/941b52f87c44e6f19b3be960553d37deb7c0f1e8)

wxGUI: Fixed F841 in tools.py (https://github.com/OSGeo/grass/pull/4539[)](https://github.com/a0x8o/grass/commit/fd347b9e837a6903d1f917bd56edd3aa8a9995ba)

wxGUI: Fixed F405 in psmap/ (https://github.com/OSGeo/grass/pull/4541[)](https://github.com/a0x8o/grass/commit/daee9896da48bced7d59cfb998952f7ff6e2245b)

wxGUI: Fixed unused variable F841 (https://github.com/OSGeo/grass/pull/4542[)](https://github.com/a0x8o/grass/commit/0adc4dc2ec42e07c82012fb948b0b9cac4b4afb3)

nix: Fix locales in development environment (https://github.com/OSGeo/grass/pull/4540[)](https://github.com/a0x8o/grass/commit/e540efc76618837947fefca21d8b141913ff6376)

docs: add intro text to imageryintro.html (https://github.com/OSGeo/grass/pull/4536[)](https://github.com/a0x8o/grass/commit/9dbc8c96b05eaff6df9dc2ffd55c7e8f45fa25e9)

GUI: EPSG code source: replace epsg.io with spatialreference.org (OSGeo#4535

CI(deps): Update ruff to v0.7.0 (https://github.com/OSGeo/grass/pull/4544[)](https://github.com/a0x8o/grass/commit/3c678251df9b4dbe30c6cef2f075eeea18efa1df)

renovate[bot] and echoix authored 14 hours ago

i.atcorr: fix out of bound access in trunca, os and iso (https://github.com/OSGeo/grass/pull/4493[)](https://github.com/a0x8o/grass/commit/d788eee193b3e3a4d10194775cec9d4429802403)

wxGUI: Fixed F841 in vnet/ (https://github.com/OSGeo/grass/pull/4543[)](https://github.com/a0x8o/grass/commit/0cb20eb612b933dc914461f6c541510213bc71e0)

tests: Call t.remove and g.remove once with multiple inputs as list (OSGeo#4523

gui: Add fix for wxGUI Data import Python error (https://github.com/OSGeo/grass/pull/4504[)](https://github.com/a0x8o/grass/commit/62b001b1318fb331334d6a9bab3ec0f6fba60360)

arohanajit and others added 15 commits October 17, 2024 10:49
This fixes locales in nix provided development environment by setting environment variable.

Closes #4503
This PR adds an overview text to imageryintro.html including a link to addons.

(aside, addons URL fix in g.gui.gmodeler.html)

Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
Co-authored-by: Vaclav Petras <wenzeslaus@gmail.com>
As epsg.io is partially outdated (see [source](maptiler/epsg.io#171) and related) and PROJ is our engine anyway, this PR switches the references in the GUI to https://spatialreference.org.

* "See also" section: added URLs to CRS Explorer and EPSG Geodetic Parameter Dataset

Co-authored-by: Vaclav Petras <wenzeslaus@gmail.com>
* CI(deps): Update ruff to v0.7.0

* style: Fix FURB156: Use of hardcoded string charset

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com>
* i.atcorr: fix out of bound access in trunca, os and iso

In trunca(), under 2 if conditionals (if rumu[1] > 0.8 and
rmu[1] > 0.94), k and kk values are set to -1 respectively.
When these values are used to access an array, it leads
to out of bound access, which is undefined behavior in c++.

Similarly in os() and iso(), if `taup < h[i]` for all values,
iplane would still be -1 and we would be accessing an array
with this as an index, which is undefined behavior.

In both cases, to avoid that, set that index to zero.

This was found using cppcheck tool.

Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>

* Update imagery/i.atcorr/computations.cpp

When plane layer couldn't be determined, throw out an error and exit.

Co-authored-by: Markus Metz <33666869+metzm@users.noreply.github.com>

* Update imagery/i.atcorr/computations.cpp

When plane layer couldn't be determined, throw out an error and exit.

Co-authored-by: Markus Metz <33666869+metzm@users.noreply.github.com>

* Fix clang-format issues

Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>

---------

Signed-off-by: Mohan Yelugoti <ymdatta.work@gmail.com>
Co-authored-by: Markus Metz <33666869+metzm@users.noreply.github.com>
…4523)

* t.rast.accumulate: Call t.remove with multiple inputs in test_accumulation

* t.rast.accdetect: Call t.remove with multiple inputs

* t.rast.univar: Call t.remove once with multiple inputs

* tests: Call g.remove once with multiple names to remove

One call per type, when all other arguments are the same

* benchmark: Call g.remove once with multiple names to remove

One call per type, when all other arguments are the same

* utils/thumbnails: Call g.remove once with multiple names to remove

* Use tuple for supplying multiple input maps
This fixes #648 by adding a command tracker queue. When the queue is not empty, closing the dialog is prevented to ensure the completion callback can still access UI elements.
@a0x8o a0x8o merged commit 62b001b into a0x8o:main Oct 18, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants