Skip to content

Chore(#105): Clean up the SETas example folder - #106

Open
jacobkasper wants to merge 10 commits into
devfrom
example-cleanup
Open

jacobkasper wants to merge 10 commits into
devfrom
example-cleanup

Conversation

@jacobkasper

@jacobkasper jacobkasper commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

🌏

Justification

Fixes #105.

Only some of the files in example/ are used by the SETas run in CI. The rest are alternative parameter files, unused forcing files, out-of-date .cdf copies, reference outputs from 2017 and 2023, scripts with personal paths, and notes. New users can't tell which files make up the example. Contributors can't tell which files to update when they add a parameter, which CONTRIBUTING.md asks them to do. Some of the leftovers are also misleading: INIT_VMPA_Jan2015.cdf no longer matches the .nc, and runTrunk_No_Migration uses a run file that isn't in the repository.

This PR leaves example/ with only the files the CI run reads, plus one run script per platform, the ReactiveAtlantis demo and a rewritten README. example/ goes from 100 files to 34 and from about 157 MB to 131 MB; most of what remains is the five hydro forcing files the run needs.

The removals are split into six commits, one per group listed in #105. If anyone still uses one of the setups (contaminants, merged seasons, no migration or Trunk2), that commit can be dropped without affecting the rest.

ReactiveAtlantisToolExample.R used to read outputFolderPristine. It now reads the user's own run in outputFolder, which also fixes two paths in it that pointed at files that didn't exist.

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other change (if none of the other choices apply)

No model code changes, so model results are unchanged.

Further comments

  • I've created an issue
  • This is NA

No model behaviour changes, so the manual doesn't need updating. Note that tutorials or wiki pages that link to the removed files (for example outputFolderPristine or runsetasNew.bat) on GitHub will break. I found no references to them elsewhere in the repository apart from the old .svn folder.

Reviewer instructions

Suggested reviewers: andybeet (maintainer) and eafulton (familiar with the example model).

The CI workflow (build_run_SETAS1.yml) runs on this PR. It should pass, which shows that every file the SETas run reads is still there.
To test locally, build Atlantis from this branch as usual, then:

cd example
./runSETas.sh
tail -1 outputFolder/log.txt     # expect "Atlantis Done"

Rscript -e 'source("data-raw/tests.r"); tests()'

Expect "Atlantis Ran Successfully". 4. Look through the six removal commits and say if any file should stay. Each commit message says why its files were removed.

I tested this on Ubuntu 24.04, building against PROJ 5.2 because PROJ 9 no longer has pj_init. The CI command finished with "Atlantis Done" and data-raw/tests.r passed. git status was clean afterwards because the CI outputs are now in .gitignore.

jacobkasper and others added 10 commits December 3, 2026 13:08
No run script or CI workflow uses these alternative .prm and groups
files, so they are not kept up to date when parameters are added and
leave users unsure which files make up the SETas example. They remain
in the git history if anyone needs one back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcJCYttKReB5HmfoVixSd6
None of the .prm files in example/ point to these forcing files, so
Atlantis never reads them when running SETas.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcJCYttKReB5HmfoVixSd6
Atlantis reads the .nc files, not these ncdump text copies, and the
copies have drifted: INIT_VMPA_Jan2015.cdf lacks the DayLight variable
that is in the .nc. A text version can be made with ncdump when needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcJCYttKReB5HmfoVixSd6
The zip is from 2017 and includes a LibreOffice lock file, and the
folder is from SVN revision 6682 (July 2023). Neither matches what the
current code produces, so comparing against them is misleading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcJCYttKReB5HmfoVixSd6
runTrunk and runTrunk_No_Migration run make install from a personal
home directory, and runTrunk_No_Migration uses a run .prm that is not
in the repository. shinyRexploration.R sets a personal working
directory and loads the copies bundled with shinyrAtlantis, not these.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcJCYttKReB5HmfoVixSd6
ErrorsRunningSETasModel.txt lists three missing parameters that are
now in the .prm files. The spreadsheet, depth PDF and KML are not used
by the model run and belong in the manual or the
Atlantis_example_and_instructions repository if they are needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcJCYttKReB5HmfoVixSd6
The old scripts used different executable names and output folders,
and RunAtlantis.sh had lldb commands after the run line that bash
tried to execute. Each platform now has one script using the same
command as the CI workflow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcJCYttKReB5HmfoVixSd6
The reference outputs it read have been removed. It now uses the
outputs of the user's own run, and also fixes the food web and catch
paths, which pointed at files that did not exist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcJCYttKReB5HmfoVixSd6
The README referred to SVN, gave three different executable names and
did not list which files make up the example. The CI workflow writes
testFolder and out.txt into example/, so git should ignore them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcJCYttKReB5HmfoVixSd6
Records what was removed from and changed in the example folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CcJCYttKReB5HmfoVixSd6
@jacobkasper
jacobkasper requested a review from andybeet December 3, 2026 13:40
@andybeet

andybeet commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

@jacobkasper I agree that the example folder should be cleaned up. I would agree with what you've done, especially knowing we can get it all back at any time.

I unfortunately do not know the history of most of the files proposed to be removed, especially the prm files. I am assuming that @eafulton used these in model testing and maybe still does. If these prm files are still relevant, then we should set up a workflow that uses them to demonstrate alternative model parameterizations.

I dont see the need to keep old output though. If we wanted to show output from SETas we could figure out a way to include it in the example repository based on the latest version of the code base.

Probably best to let @eafulton have the final say on what stays and what goes.

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.

2 participants