#4

Track the source workbooks in the repository

Draftashcoftwants to merge intofrom

This pull request was created by an AI agent (OpenHands) on behalf of the repository owner.

Tracks the three source workbooks in the repository root so every seed can be traced back to the spreadsheet it came from. They stay out of the container image (.dockerignore already excludes *.xlsx / *.xls).

WorkbookSizeFeeds
LOAD LIST.xlsx1.7 MBbackend/data/seed.json → calculation 01 (load list)
0000-EF-D-41335_0 Power Cable Sizing Calc.XLSX1.5 MBbackend/data/cable_seed.json → calculation 02 (cable sizing)
Basic Cal SACP for Internal Tank - PT Pertamina MOR VII Sulawesi.xls1.6 MBcalculation 03 (cathodic protection, next)
$ git ls-files '*.xls*'
0000-EF-D-41335_0 Power Cable Sizing Calc.XLSX
Basic Cal SACP for Internal Tank - PT Pertamina MOR VII Sulawesi.xls
LOAD LIST.xlsx

README ("Data flow") and AGENTS.md ("Gotchas") now state that the workbooks are tracked but never copied into the image.

The seeds themselves are unchanged — tools/extract_seed.py and tools/extract_cable_seed.py still regenerate and verify them, so this is a documentation/traceability change only.

Note on the SACP workbook

It contains 35 sheets (34 tank/vendor design sheets plus a summary) following DNV RP B401 (2005) and GS EP COR 201: flush-mounted aluminium anodes, driving potential ΔE = Ec − Ea, anode resistance, current output at initial / mean / final, and anode consumption. It is the input for calculation 03.

@ashcoft can click here to continue refining the PR

Summary by Sourcery

Track source workbooks for seed traceability without changing generated seed data or runtime behavior.

Enhancements:

  • Track the three source calculation workbooks in the repository root to provide seed traceability while keeping them out of container images.

Documentation:

  • Document the tracked source workbooks and their exclusion from container images in the repository guidance and data-flow documentation.

This change is 


Summary by cubic

Tracks the three source workbooks in the repository root so every seed can be traced back to the spreadsheet it came from. They stay out of the container image, and the seed data itself is unchanged.

Workbook mapping

  • LOAD LIST.xlsx → backend/data/seed.json (calculation 01)
  • 0000-EF-D-41335_0 Power Cable Sizing Calc.XLSX → backend/data/cable_seed.json (calculation 02)
  • Basic Cal SACP for Internal Tank - PT Pertamina MOR VII Sulawesi.xls → calculation 03 (next)

README.md and AGENTS.md now document that the workbooks are tracked but excluded from the image via .dockerignore.

Written for commit 8937892ebb824c2b33cf9218ef18f406ed36dd31. Summary will update on new commits.

Activity

4
coderabbitai[bot]5d ago

IMPORTANT

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

sourcery-ai[bot]5d ago

Reviewer's Guide

Data structures

Track the three source workbooks in the repository root so the seeds and planned calculation can be traced to their spreadsheet inputs.

  • 0000-EF-D-41335_0 Power Cable Sizing Calc.XLSX
  • Basic Cal SACP for Internal Tank - PT Pertamina MOR VII Sulawesi.xls
  • LOAD LIST.xlsx

Documentation

Document that the source workbooks are tracked in the repository but excluded from the container image.

  • AGENTS.md L66-69
  • README.md L287-294

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an issue from a review comment by replying to it. You can also reply to a review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull request title to generate a title at any time. You can also comment @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in the pull request body to generate a PR summary at any time exactly where you want it. You can also comment @sourcery-ai summary on the pull request to (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the pull request to resolve all Sourcery comments. Useful if you've already addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull request to dismiss all existing Sourcery reviews. Especially useful if you want to start fresh with a new review - don't forget to comment @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

This pull request is a draft

Merging is unavailable until it is marked ready for review.