A shop often remembers a band-saw blade as "it felt worn after a few days" or "it still cut after a lot of pieces." Those impressions are hard to compare later, especially once more than one blade and more than one material are in play. A short log does a narrower job: it records what you actually cut on each blade, and it refuses to invent a remaining-life number from that.
The script below is a shop notebook, not a wear model. Two blades with the same piece count can be in very different condition if the material, the section, the tooth pitch, the coolant, or the feed were different. The totals are only as complete as the rows you entered.
What to record for each job
One row is one job on one mounted blade:
- the date
- a stable
blade_id(give a new id when you mount a new loop) - the material name as you use it in the shop
- the two dimensions of the cross-section,
height_mmandwidth_mm - how many identical pieces that job produced,
n_pieces
The only derived figure is a rectangular section area for the job:
A = height_mm × width_mm × n_pieces For a rectangle, those two dimensions are the height and width of the bar. For a round bar you can log the diameter twice and treat A as a bounding square, or you can log a different area convention — but then keep that convention in the material note and do not mix it with rectangular rows on the same summary. The code does not convert rounds to true circular area, because a silent conversion is worse than an explicit choice.
The log, in Python
from collections import defaultdict from dataclasses import dataclass from datetime import date @dataclass(frozen=True) class Cut: day: date blade_id: str material: str height_mm: float width_mm: float n_pieces: int def __post_init__(self) -> None: if not self.blade_id.strip(): raise ValueError("blade_id must be a non-empty string") if not self.material.strip(): raise ValueError("material must be a non-empty string") if self.height_mm <= 0 or self.width_mm <= 0: raise ValueError("height_mm and width_mm must be positive") if self.n_pieces <= 0: raise ValueError("n_pieces must be a positive integer") def section_area_mm2(self) -> float: return self.height_mm * self.width_mm * self.n_pieces @dataclass(frozen=True) class BladeSummary: blade_id: str jobs: int pieces: int section_area_mm2: float class BladeLifeLog: def __init__(self) -> None: self._cuts: list[Cut] = [] def add(self, cut: Cut) -> None: self._cuts.append(cut) def jobs(self, blade_id: str) -> int: return sum(1 for c in self._cuts if c.blade_id == blade_id) def pieces(self, blade_id: str) -> int: return sum(c.n_pieces for c in self._cuts if c.blade_id == blade_id) def section_area_mm2(self, blade_id: str) -> float: return sum(c.section_area_mm2() for c in self._cuts if c.blade_id == blade_id) def summary(self, blade_id: str) -> BladeSummary: return BladeSummary( blade_id=blade_id, jobs=self.jobs(blade_id), pieces=self.pieces(blade_id), section_area_mm2=self.section_area_mm2(blade_id), ) def all_summaries(self) -> list[BladeSummary]: ids = sorted({c.blade_id for c in self._cuts}) return [self.summary(i) for i in ids] def pieces_by_material(self, blade_id: str) -> dict[str, int]: totals: dict[str, int] = defaultdict(int) for c in self._cuts: if c.blade_id == blade_id: totals[c.material] += c.n_pieces return dict(totals) def format_summary(s: BladeSummary) -> str: return ( f"{s.blade_id}: {s.jobs} job(s), {s.pieces} piece(s), " f"{s.section_area_mm2:.1f} mm² logged section area" ) Empty ids, non-positive dimensions, and a zero piece count raise ValueError. An unknown blade_id simply totals to zero jobs, zero pieces, and 0.0 mm² — it does not invent a blade you never logged.
A worked example
Three jobs on blade M42-01, then one job on a second blade:
log = BladeLifeLog() log.add(Cut(date(2026, 11, 3), "M42-01", "S235", 80, 40, 12)) log.add(Cut(date(2026, 11, 4), "M42-01", "S235", 100, 50, 6)) log.add(Cut(date(2026, 11, 4), "M42-01", "stainless", 60, 60, 4)) log.add(Cut(date(2026, 11, 5), "M42-02", "aluminium", 120, 80, 3)) for s in log.all_summaries(): print(format_summary(s)) print(log.pieces_by_material("M42-01")) The arithmetic for M42-01 is:
80 × 40 × 12 = 38_400 100 × 50 × 6 = 30_000 60 × 60 × 4 = 14_400 sum = 82_800 mm² pieces = 12 + 6 + 4 = 22 The script prints:
M42-01: 3 job(s), 22 piece(s), 82800.0 mm² logged section area M42-02: 1 job(s), 3 piece(s), 28800.0 mm² logged section area {'S235': 18, 'stainless': 4} Those two blades should not be ranked against each other from this table alone. The second blade has fewer pieces and less logged area, but it also cut a different material. The split by material on M42-01 is the more useful comparison: eighteen pieces of S235 and four of stainless on the same loop.
How to use the totals without over-reading them
Start a new blade_id when you weld or unpack a new loop, and do not recycle an id after you scrap the blade. If a job mixes sections, log it as more than one row rather than inventing an average bar. If you stop mid-bar, log the pieces you actually finished.
Piece count answers "how many parts did this loop saw?" Section area answers "how much cross-section did it see?" Neither one is a complete wear history. A fine pitch packed with gummy chips, a dry cut, or a wandering feed can retire a blade earlier than a log of easy sections would suggest. The same shop-notebook habit — write down the blade and the material with the job, and keep the arithmetic visible — is also the approach taken in the reference material published by Stankotorg.
If you later want to bring in feed rate or cutting time, measure those on the machine and store them as extra fields. Do not back-calculate a "life used" percentage from piece count; the script has no basis for that percentage.
Tests
Eleven unit tests were run against this code (python3 -m unittest test_blade_log.py -v). They check the validation errors, the job and piece counts above, the 82_800 and 28_800 area totals, the material split {S235: 18, stainless: 4}, sorted summaries, the formatted line for M42-01, and the zero totals for an unknown blade. All eleven passed.
Source: Metal-Cutting Band Saw Blades (publisher — Stankotorg), DOI https://doi.org/10.5281/zenodo.23297044


