Skip to content

vz remove datasheetSpatRaster#8

Open
vickimzhang wants to merge 1 commit intomainfrom
vz-deprecated-functions
Open

vz remove datasheetSpatRaster#8
vickimzhang wants to merge 1 commit intomainfrom
vz-deprecated-functions

Conversation

@vickimzhang
Copy link
Copy Markdown
Member

@vickimzhang vickimzhang commented May 7, 2026

Summary by CodeRabbit

  • Chores
    • Updated internal data loading mechanism to use an alternative method. No changes to user-facing functionality or output.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 7, 2026

Review Change Stack
No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f4854629-f86e-444c-b56f-f4b0836501fb

📥 Commits

Reviewing files that changed from the base of the PR and between 45509d0 and ca84cef.

📒 Files selected for processing (1)
  • src/model.R

Walkthrough

The pull request modifies how the model script loads the intercept raster. Instead of using SyncroSim's datasheetSpatRaster() helper function, the script now directly constructs a terra raster object from the file path stored in the input dataframe. The downstream processing pipeline remains unchanged.

Changes

Raster Input Loading

Layer / File(s) Summary
Raster Input Mechanism
src/model.R
rasterMap initialization is changed from datasheetSpatRaster() to terra::rast(myInputDataframe$InterceptRasterFile) to directly load the intercept raster from the input datasheet file path.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly describes the main change: removing the deprecated datasheetSpatRaster function from src/model.R.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch vz-deprecated-functions

Comment @coderabbitai help to get the list of available commands and usage tips.

@vickimzhang vickimzhang requested a review from afilazzola May 7, 2026 17:03
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.

1 participant