Skip to content

Update ray scripts for modern Julia compatibility - #15

Merged
lowrank merged 4 commits into
masterfrom
copilot/compatibility-of-latest-julia
Nov 2, 2026
Merged

lowrank merged 4 commits into
masterfrom
copilot/compatibility-of-latest-julia

Conversation

Copilot AI commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

The scripts relied on Julia 0.6 APIs and syntax that broke with Julia 0.7 and later.

  • Modernize APIs: Replace linspace, find, eye, indmin, and removed timing and garbage-collection calls; update conditional syntax and range type signatures.
  • Update distributed execution: Use @distributed, load required standard libraries on workers, and adapt remote calls.
# Before
p = linspace(-ext, ext, N)

# After
p = range(-ext, stop=ext, length=N)

Copilot AI linked an issue Nov 2, 2026 that may be closed by this pull request
Copilot AI and others added 2 commits November 2, 2026 16:25
Co-authored-by: lowrank <29496950+lowrank@users.noreply.github.com>
Co-authored-by: lowrank <29496950+lowrank@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix compatibility issues with latest Julia version Update ray scripts for modern Julia compatibility Nov 2, 2026
Copilot AI requested a review from lowrank November 2, 2026 16:27

@lowrank lowrank left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

add workflow to check

Copilot AI requested a review from lowrank November 2, 2026 16:49
@lowrank
lowrank marked this pull request as ready for review November 2, 2026 16:52
Copilot AI balanced review requested due to automatic review settings November 2, 2026 16:52

@lowrank lowrank left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

add workflow file for the project for checking

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Both distributed demos need end-to-end validation on modern Julia, as no automated tests are present and dependency-backed execution could not be exercised in the review environment.

No open issues 🎉

What changed in this PR

Updates the ray-tracing and reconstruction scripts from Julia 0.6-era APIs toward modern Julia compatibility, addressing issue #14.

Changes:

  • Replaces legacy numerical APIs, conditional syntax, and range type signatures.
  • Updates distributed loops, worker imports, and remote calls.
  • Adds timing helpers and modernizes garbage collection and sparse-matrix calls.
File Description
Utility.jl Replaces atan2 with two-argument atan.
ObstacleDemo.jl Updates distributed imports, ranges, index searches, and garbage collection.
Obstacle.jl Modernizes distributed ray tracing, conditionals, ranges, and identity matrices.
NonObstacleDemo.jl Imports Distributed before starting workers.
NonObstacle.jl Updates reconstruction APIs, worker execution, range signatures, and timing helpers.

Review effort: Balanced

Co-authored-by: lowrank <29496950+lowrank@users.noreply.github.com>
@lowrank
lowrank merged commit 6a43c84 into master Nov 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

compatibility of latest Julia

3 participants