Skip to content

Avoid calling maximum(...; dims) with empty arrays#92

Open
mbauman wants to merge 1 commit intoshayandavoodii:mainfrom
mbauman:patch-1
Open

Avoid calling maximum(...; dims) with empty arrays#92
mbauman wants to merge 1 commit intoshayandavoodii:mainfrom
mbauman:patch-1

Conversation

@mbauman
Copy link

@mbauman mbauman commented Apr 29, 2025

There's a proposed "minor change" to Julia v1.13 that would make maximum([], dims=2) (and other such reductions) an error, akin to how maximum([]) is an error when init is not specified. This package was flagged as having (at least) one such usage here; it errored in PkgEval. See JuliaLang/julia#55628 for more details.

There's a proposed "minor change" to Julia v1.13 that would make `maximum([], dims=2)` (and other such reductions) an error, akin to how `maximum([])` is an error when `init` is not specified.  This package was flagged as having (at least) one such usage here; it errored in [PkgEval](https://s3.amazonaws.com/julialang-reports/nanosoldier/pkgeval/by_hash/813bcf3_vs_c3e7b1b/report.html).  See JuliaLang/julia#55628 for more details.
@gemini-code-assist
Copy link

Important

Installation incomplete: to start using Gemini Code Assist, please ask the organization owner(s) to visit the Gemini Code Assist Admin Console and sign the Terms of Services.

Copy link
Owner

@shayandavoodii shayandavoodii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much!
I'll handle the rest through this PR and merge it afterwards.

@shayandavoodii shayandavoodii self-assigned this May 17, 2025
@shayandavoodii shayandavoodii added the nightly Problems that only occurs on the Julia nightly label May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nightly Problems that only occurs on the Julia nightly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants