From cba1d637bfe603b240f07646dcd532dfb80d4f3a Mon Sep 17 00:00:00 2001 From: nopeitsnothing Date: Sat, 27 Jun 2026 23:18:20 -0400 Subject: [PATCH] chore(build): 02-sign.yml did not create the repo dir Do a quick mkdir -p repo/export before copying files to the dir Signed-off-by: nopeitsnothing --- .github/workflows/02-sign.yml | 4 +++- scripts/convert.py | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/02-sign.yml b/.github/workflows/02-sign.yml index 920079c..cb68792 100644 --- a/.github/workflows/02-sign.yml +++ b/.github/workflows/02-sign.yml @@ -118,7 +118,9 @@ jobs: path: repo - name: 📂 Copy export files into repo - run: cp -v export/* repo/export/ + run: | + mkdir -p repo/export + cp -v export/* repo/export/ - name: 🔏 Configure GPG commit signing env: diff --git a/scripts/convert.py b/scripts/convert.py index cc0c71d..31ee3c1 100644 --- a/scripts/convert.py +++ b/scripts/convert.py @@ -82,7 +82,10 @@ def apply_dark_theme( # Saturation (HSV model, vectorised) ch_min = np.min(norm, axis=2) ch_max = np.max(norm, axis=2) - sat = np.where(ch_max > 0.001, (ch_max - ch_min) / ch_max, 0.0).astype(np.float32) + # Suppress the numpy divide error, idc + # division happens on all elements including the zero ones + with np.errstate(divide='ignore', invalid='ignore'): + sat = np.where(ch_max > 0.001, (ch_max - ch_min) / ch_max, 0.0).astype(np.float32) # --- Masks --- # High-saturation = image/photo content — leave untouched