-
Notifications
You must be signed in to change notification settings - Fork 0
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
E722 #21
E722 #21
Commits on Oct 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6e5643d - Browse repository at this point
Copy the full SHA 6e5643dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8649713 - Browse repository at this point
Copy the full SHA 8649713View commit details
Commits on Oct 30, 2024
-
v.unpack: Fixed bare 'except' (#4616)
* updated E722 * updated .flake8 * Update v.unpack.py
Configuration menu - View commit details
-
Copy full SHA for 9be02ee - Browse repository at this point
Copy the full SHA 9be02eeView commit details -
wxGUI: Fixed bare 'except' in nviz/ (#4613)
* updated E722 * updates * updates --------- Co-authored-by: Anna Petrasova <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9581ca1 - Browse repository at this point
Copy the full SHA 9581ca1View commit details -
lib/ogsf: Dereference after null check in gvl2.c (#4588)
Dereference after null check
Configuration menu - View commit details
-
Copy full SHA for 528763f - Browse repository at this point
Copy the full SHA 528763fView commit details
Commits on Oct 31, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 00f51c9 - Browse repository at this point
Copy the full SHA 00f51c9View commit details -
r.mask.status: Always output name of the mask (#4531)
For both active and inactive raster mask, show the name of the raster which is used (or would be used) for the mask. This will allow tools like r.mask or GUI to do lower-level operations with or around mask without a need to know about defaults or user mechanism to change the name. I'm repurposing the existing 'name' (full_name) key which is now always set (as opposed to being null when no mask is present) as the 'present' boolean key already has the information on the mask presence. I'm renaming full_name to name because that creates a simpler interface (which is whole point of outputting full name as opposed to two keys to get name and mapset).
Configuration menu - View commit details
-
Copy full SHA for ba0a495 - Browse repository at this point
Copy the full SHA ba0a495View commit details -
r.buildvrt: document performance issues with external data (#4441)
* document performance issue * address code review * Apply suggestions from code review Co-authored-by: Markus Neteler <[email protected]> * consistent recommendation * remove leftover dot --------- Co-authored-by: Markus Neteler <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f9f01e1 - Browse repository at this point
Copy the full SHA f9f01e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5a8722 - Browse repository at this point
Copy the full SHA d5a8722View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b9b46a - Browse repository at this point
Copy the full SHA 5b9b46aView commit details -
CI(deps): Update docker/dockerfile Docker tag to v1.11 (#4621)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 3f0b69f - Browse repository at this point
Copy the full SHA 3f0b69fView commit details
Commits on Nov 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7d9bbac - Browse repository at this point
Copy the full SHA 7d9bbacView commit details -
lib: Add new SRTM_percent color table (#4608)
This color table uses the color ramp from the srtm_plus color table for terrain to create colors for relative elevation (spread over the range of elevations in a raster map) rather than absolute elevation in meters. This applies srtm colors in a way similar to the way the elevation color table applies them. This color table is especially useful in creating nice looking elevation maps and shading relief maps.
Configuration menu - View commit details
-
Copy full SHA for 4385b26 - Browse repository at this point
Copy the full SHA 4385b26View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4964f45 - Browse repository at this point
Copy the full SHA 4964f45View commit details -
grass.script: Pass environment to message functions (#4630)
While the message functions (fatal, warning, message, info, debug, verbose, percent) have env parameter, grass.script was not consistently passing the env parameter to these functions. This fixes all the clear cases in functions which themselves have env (but does not touch any which don't have it where the fix needs to be more complex). These functions can now be called and produce these messages even for non-global sessions.
Configuration menu - View commit details
-
Copy full SHA for cb3d12b - Browse repository at this point
Copy the full SHA cb3d12bView commit details
Commits on Nov 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0824e88 - Browse repository at this point
Copy the full SHA 0824e88View commit details -
style: Sort package lists, configure options, and other various sorta…
…ble files (#4563) * style: Sort packages in Vagrantfile * style: Sort configure flags in package.nix * style: Sort .gunittest.cfg * style: Sort Travis build files * style: Sort python optional_requirements.txt * style: Sort configure flags in GitHub workflows * style: Sort packages and configure flags for binder * style: Sort packages, configure flags, cmake flags and wget downloads in Dockerfiles * style: Sort configure flags in Vagrant script * style: Sort svn author name files with linux sort command * style: Sort contributors.csv and contributors_extra.csv * style: Sort rpm package spec * style: Sort packages and configure flags in mswindows build scripts * style: Sort macosx build script Readme * style: Sort singularity file * Apply changes from https://src.fedoraproject.org/rpms/grass/blob/rawhide/f/grass.spec
Configuration menu - View commit details
-
Copy full SHA for e37730b - Browse repository at this point
Copy the full SHA e37730bView commit details
Commits on Nov 3, 2024
-
python: Add typing to RPC server and Messenger (#4639)
* grass.pygrass.rpc.base: Add typing annotations for lock and conn * grass.pygrass.rpc.base: Use context manager for lock in dummy_server * grass.pygrass.rpc.base: Use context manager for threadLock in RPCServerBase * grass.pygrass.rpc.base: Remove release lock in context manager * grass.pygrass.rpc.base: Add more typing annotations * grass.pygrass.rpc.base: Check for None to satisfy mypy type checking * grass.pygrass.rpc.base: Remove release lock in context managers, as they would be released when unlocked (RuntimeError: release unlocked lock) * grass.pygrass.rpc.base: Sort imports * grass.temporal.c_libraries_interface: Use context manager for lock in c_library_server * grass.temporal.c_libraries_interface: Add typing annotations for lock and conn * grass.pygrass.rpc.base: Change date of file header * grass.pygrass.rpc.base: Update docs of conn argument to mention that it is a multiprocessing.Connection object obtained from multiprocessing.Pipe * grass.temporal.c_libraries_interface: Change date of file header * grass.pygrass.rpc: Sort imports * grass.temporal.c_libraries_interface: Sort imports * Update docs of conn argument to mention that it is a multiprocessing.Connection object obtained from multiprocessing.Pipe * grass.pygrass.messages: Sort imports * Update docs of conn argument to mention that it is a multiprocessing.connection.Connection object obtained from multiprocessing.Pipe * grass.pygrass.rpc: Use context manager to acquire and release the lock * Fix typo in python/grass/pygrass/messages/testsuite/test_pygrass_messages_doctests.py * grass.pygrass.messages: Fix typo in message_server * grass.pygrass.messages: Missing "IMPORTANT" message type in message_server * grass.pygrass.messages: Add return type to get_msgr * grass.pygrass.messages: Add types to signatures in Messenger class and rest of file * grass.pygrass.messages: Use context manager for acquiring the lock in message_server() * grass.pygrass.messages: Add types to message_types to track missing conditions * grass.pygrass.messages: Extract message only for message_types where the variable is used * grass.pygrass.messages: Add parameter descriptions to percent(self, n, d, s) * grass.pygrass.messages: Initialize Messenger fields without setting them to None * grass.pygrass.messages: Fix typo * grass.pygrass.messages: Change date of file header
Configuration menu - View commit details
-
Copy full SHA for 35ebcb3 - Browse repository at this point
Copy the full SHA 35ebcb3View commit details
Commits on Nov 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d4bb783 - Browse repository at this point
Copy the full SHA d4bb783View commit details
Commits on Nov 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7cd22e9 - Browse repository at this point
Copy the full SHA 7cd22e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 847944e - Browse repository at this point
Copy the full SHA 847944eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3307797 - Browse repository at this point
Copy the full SHA 3307797View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ad65e4 - Browse repository at this point
Copy the full SHA 0ad65e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d87859 - Browse repository at this point
Copy the full SHA 7d87859View commit details -
Configuration menu - View commit details
-
Copy full SHA for baf93a5 - Browse repository at this point
Copy the full SHA baf93a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 16c5f6f - Browse repository at this point
Copy the full SHA 16c5f6fView commit details -
lib/ogsf: fix possible overflow errors in gsd_surf.c (#4635)
ogsf: fix possible overflow errors in gsd modules In a lot of places, `(255 << 24)` which causes integer overflow and positive number gets converted to negative number. We were then assigning this to an unsigned integer in multiple places, which does conversion in a different way. For example: If we do unsigned int x = -20, `UINT_MAX + 1 - 20` is assigned to x. I do not think that's what is intended when we do `ktrans = (255 << 24)`. Fix instances of that, by using an unsigned int literal over int literal. This issue was found using cppcheck tool. Signed-off-by: Mohan Yelugoti <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f7537c4 - Browse repository at this point
Copy the full SHA f7537c4View commit details -
lib/vector/Vlib: Fix resource leak issue in clean_nodes.c (#4627)
fix resource leak issue Co-authored-by: Shubham Vasudeo Desai <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4854f49 - Browse repository at this point
Copy the full SHA 4854f49View commit details -
lib/ogsf: fix possible overflow errors in gvld.c (#4637)
ogsf: fix possible overflow errors in gvld module We were doing `(255 << 24)` which causes integer overflow and positive number gets converted to negative number. We were then assigning this to an unsigned integer in multiple places, which does conversion in a different way. For example: If we do unsigned int x = -20, `UINT_MAX + 1 - 20` is assigned to x. I do not think that's what is intended when we do `ktrans = (255 << 24)`. Fix instances of that, by using an unsigned int literal over int literal. This issue was found using cppcheck tool. Signed-off-by: Mohan Yelugoti <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c1d8557 - Browse repository at this point
Copy the full SHA c1d8557View commit details -
lib/ogsf: fix possible overflow errors in gsd_wire.c (#4636)
ogsf: fix possible overflow errors in gsd_wire In a code, we were doing `(255 << 24)` which causes integer overflow and positive number gets converted to negative number. We were then assigning this to an unsigned integer in multiple places, which does conversion in a different way. For example: If we do `unsigned int x = -20`, `UINT_MAX + 1 - 20` is assigned to x. I do not think that's what is intended when we do with `ktrans = (255 << 24)`. Fix instances of that, by using an `unsigned int literal` over `int literal`. This issue was found using cppcheck tool. Signed-off-by: Mohan Yelugoti <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 206cabc - Browse repository at this point
Copy the full SHA 206cabcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 039183d - Browse repository at this point
Copy the full SHA 039183dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f15230d - Browse repository at this point
Copy the full SHA f15230dView commit details -
r.colors.out: Add JSON support (#4555)
* r.colors.out: added json output Signed-off-by: Nishant Bansal <[email protected]> * fixed CI build issues Signed-off-by: Nishant Bansal <[email protected]> * refactor code Signed-off-by: Nishant Bansal <[email protected]> * added more color formats and tests Signed-off-by: Nishant Bansal <[email protected]> * additional changes based on review Signed-off-by: Nishant Bansal <[email protected]> * fixes prototype declaration Signed-off-by: Nishant Bansal <[email protected]> * fixes test Signed-off-by: Nishant Bansal <[email protected]> * added option instead of flags Signed-off-by: Nishant Bansal <[email protected]> * Add a standard parser option for color formatting Signed-off-by: Nishant Bansal <[email protected]> * added changes based on review Signed-off-by: Nishant Bansal <[email protected]> * fixes function name Signed-off-by: Nishant Bansal <[email protected]> * fixes pytest failure Signed-off-by: Nishant Bansal <[email protected]> * Update lib/gis/parser_standard_options.c --------- Signed-off-by: Nishant Bansal <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 760d763 - Browse repository at this point
Copy the full SHA 760d763View commit details
Commits on Nov 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 98bccea - Browse repository at this point
Copy the full SHA 98bcceaView commit details -
python/grass/utils: fix checking server response content type/dispost…
…ion header (#4658) To allow to download ZIP file. Server response headers which indicating ZIP file: content-type: application/octet-stream content-disposition: attachment; filename=natural_earth_dataset.zip Fix download Natural Earth Dataset in WGS84 from the server URL https://zenodo.org/records/13370131/files/natural_earth_dataset.zip
Configuration menu - View commit details
-
Copy full SHA for 48e382c - Browse repository at this point
Copy the full SHA 48e382cView commit details -
docs: i.albedo and r.li manual HTML fixes (#4654)
doc: i.albedo and r.li manual HTML fixes This PR removes the unneeded header of the `r.li.html` metapage. Additionally: - style fix in `i.albedo.html`
Configuration menu - View commit details
-
Copy full SHA for aa07454 - Browse repository at this point
Copy the full SHA aa07454View commit details -
r.report: Work with any mask name (also for r.kappa) (#4633)
Use Rast_mask_status in r.report and r.kappa to get the name and state.
Configuration menu - View commit details
-
Copy full SHA for 9537d74 - Browse repository at this point
Copy the full SHA 9537d74View commit details -
raster: Work with any mask name (r.surf.contour, r.random.cells, r.ra…
…ndom.surface) (#4634) Use Rast_mask_status instead of hardcoded name MASK for r.surf.contour, r.random.cells, and r.random.surface. Raster mask if present, is loaded in a special way in these tools. After this change, the name of the mask is retrieved from the library (that's the important part) and the library is at the same time used to test the presence of the mask (as opposed to testing presence of raster directly, but that's just more convenient rather than conceptual). The change in r.random.surface code switching the if and else branches is to make it easier to write and more consistent with the other two.
Configuration menu - View commit details
-
Copy full SHA for 54d613f - Browse repository at this point
Copy the full SHA 54d613fView commit details -
r.volume: Work with any mask name (#4632)
Avoid hardcoded MASK by using the Rast_mask_status function. The rest of the logic stays the same so mask is read just as the plain raster map is read. Documentation is updated to use 'raster mask' instead of 'MASK'.
Configuration menu - View commit details
-
Copy full SHA for 69b20cf - Browse repository at this point
Copy the full SHA 69b20cfView commit details
Commits on Nov 7, 2024
-
r.to.vect: Fix Resource Leak issue in areas_io.c (#4663)
Fix Resource Leak issue
Configuration menu - View commit details
-
Copy full SHA for 410cf5c - Browse repository at this point
Copy the full SHA 410cf5cView commit details -
CI: create versioned directory name of extracted tarball (#4659)
Extracting the tarball will with this create a containing directory named 'grass-x.y.z', where x, y, z stands for major, minor, micro/patch version.
Configuration menu - View commit details
-
Copy full SHA for 53c28f3 - Browse repository at this point
Copy the full SHA 53c28f3View commit details
Commits on Nov 8, 2024
-
t.rast.univar: allow r-flag combined with zones option (#4577)
* allow r-flag and zones * add test for r-flag and zones * use region env only with zones * use region env for r3.univar * Update docstring
Configuration menu - View commit details
-
Copy full SHA for b929809 - Browse repository at this point
Copy the full SHA b929809View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8716ba5 - Browse repository at this point
Copy the full SHA 8716ba5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 600caae - Browse repository at this point
Copy the full SHA 600caaeView commit details -
r.buffer: Added test script (#4482)
* Added test script for r.buffer * Corrected input map and added tearDown method to delete temp maps * Added pre commit fixes * Added resolution for feedback * Tweaked the last test and used f string * Update raster/r.buffer/testsuite/test_buffer.py Reduced the region of the test Co-authored-by: Anna Petrasova <[email protected]> * Corrected redudancy * Streamlined output map initialization --------- Co-authored-by: Anna Petrasova <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 54f2068 - Browse repository at this point
Copy the full SHA 54f2068View commit details -
configure: build external libraries first (#4671)
Enable use of external libraries in GRASS libraries.
Configuration menu - View commit details
-
Copy full SHA for 12e3e56 - Browse repository at this point
Copy the full SHA 12e3e56View commit details -
i.vi: Add ndwi color table to output (#4668)
* i.vi: Add ndwi color table to output * Changed the min max values when setting the color table --------- Co-authored-by: Corey White <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 941e220 - Browse repository at this point
Copy the full SHA 941e220View commit details -
lib/gis: Fix out of scope memory access error in file_name function c…
…all (#4650) lib/gis: Fix out of scope memory access error in file_name() When execution takes else path, pname, a pointer, is set to point to a local variable array which has limited scope. This same pointer is accessed outside of the block containing the local variable, essentially creating a scenario where we are accessing memory outside its score, which is undefined behavior. Move the variable array out of the loop, so that it has the same scope as pname. This was found using cppcheck tool. Signed-off-by: Mohan Yelugoti <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fddbf9f - Browse repository at this point
Copy the full SHA fddbf9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 177f5b4 - Browse repository at this point
Copy the full SHA 177f5b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f5da02 - Browse repository at this point
Copy the full SHA 4f5da02View commit details -
Configuration menu - View commit details
-
Copy full SHA for b18e390 - Browse repository at this point
Copy the full SHA b18e390View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7fe3fa5 - Browse repository at this point
Copy the full SHA 7fe3fa5View commit details -
r3.in.v5d, r3.out.v5d: Deprecate CRAY HW specific code (#4545)
Currently, there is no sign either from GitHub issues or grass-dev archive that many people are using CRAY code which was introduced 25 years ago. As part of fixing a bug, we found that it was hard to find reference materials related to CRAY, due to it being old and not in usage anymore. For this reason, deprecate CRAY code and corresponding complexity that comes with it. Signed-off-by: Mohan Yelugoti <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8dced26 - Browse repository at this point
Copy the full SHA 8dced26View commit details
Commits on Nov 9, 2024
-
r3.out.v5d: fix broken LITTLE ifdef-else macro in read_float4() (#4676)
Fix regression introduced by 8dced26.
Configuration menu - View commit details
-
Copy full SHA for 8c4f244 - Browse repository at this point
Copy the full SHA 8c4f244View commit details
Commits on Nov 11, 2024
-
CI(deps): Update ruff to v0.7.3 (#4672)
* CI(deps): Update ruff to v0.7.3 * style: Ignore PYI066 on non-stub files. Doesn't seem idiomatic and not understood by Pyright. * style: Fix split-static-string (SIM905) Ruff rule: https://docs.astral.sh/ruff/rules/split-static-string/ * style: Ignore subclass-builtin (FURB189) in two files, as expected change is not guaranteed to be equivalent --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Edouard Choinière <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 66aae0a - Browse repository at this point
Copy the full SHA 66aae0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5046645 - Browse repository at this point
Copy the full SHA 5046645View commit details -
Configuration menu - View commit details
-
Copy full SHA for f450382 - Browse repository at this point
Copy the full SHA f450382View commit details