镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Update demos 1 and 2 downloader and revision to SIPNET v2.2.0 - #4189

Merged
dlebauer merged 2 commits into
PecanProject:sipnet-2-tutorialfrom
madhavzanwar:GH-4184-demos-sipnet-2-2-0-downloader
Nov 3, 2026
Merged

dlebauer merged 2 commits into
PecanProject:sipnet-2-tutorialfrom
madhavzanwar:GH-4184-demos-sipnet-2-2-0-downloader

Conversation

@madhavzanwar

Copy link
Copy Markdown
Contributor

Part 1 of #4184, as agreed with @dlebauer (shared downloader and revision
setting). Priors, site and inputs (Part 2) are not touched.

What

  • download_sipnet.R: downloads the SIPNET v2.2.0 release tarball and
    extracts sipnet. v2 releases ship tarballs only for Linux x86_64 and
    macOS arm64; other systems get a clear error.
  • Both demo pecan.xml files: <revision>2.2.0</revision> (was git and
    1.3.0). Without it write.config.SIPNET writes a v1 config and SIPNET
    v2.2.0 aborts with "Did not find required parameter leafOnReallocFrac".
  • Demo notebook headings and notes now name v2.2.0.
  • CHANGELOG entry.

Testing

Ran the Demo 1 and Demo 2 notebook code from this branch with SIPNET v2.2.0
(Linux x86_64, R 4.3.3): both run end to end. I did not render the Quarto
notebooks or test the macOS download. The existing temperate.coniferous
priors still produce plant-mortality warnings with v2.2.0, as reported in
#4184; that is left for Part 2.

download_sipnet.R now fetches the SIPNET v2.2.0 release tarball (Linux
x86_64, macOS arm64) and both demo pecan.xml files set revision 2.2.0,
which write.config.SIPNET needs to write a v2 config. Notebook text now
names v2.2.0.

Part 1 of PecanProject#4184 (downloader and revision; inputs and priors are left
to Part 2).
@madhavzanwar

Copy link
Copy Markdown
Contributor Author

@S1DDHEY #4189 is ready for your review when you have time.

@S1DDHEY S1DDHEY left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

apart from a minor suggestion rest LGTM.

Stop with a clear error if extracting the release tarball does not
produce demo_outdir/sipnet. Suggested in review.

Part of PecanProject#4184
@madhavzanwar

Copy link
Copy Markdown
Contributor Author

@S1DDHEY pushed the change, ready for another look when you have time.

@S1DDHEY S1DDHEY left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@madhavzanwar

Copy link
Copy Markdown
Contributor Author

@dlebauer PecanProject/pecan#4189 (Part 1 of #4184: downloader and revision setting) is approved by @S1DDHEY and ready to merge when you have time. It doesn’t touch the site or priors, so it fits with the Niwot discussion.

@dlebauer
dlebauer changed the base branch from develop to sipnet-2-tutorial November 3, 2026 03:25

@dlebauer dlebauer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me, thanks! I made a new branch 'sipnet-2-tutorial' so that we can merge all of the changes required for a working tutorial before merging into develop.

@dlebauer
dlebauer merged commit 40fd3f5 into PecanProject:sipnet-2-tutorial Nov 3, 2026
22 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.

3 participants