Compare commits

...

34 Commits
v0.1 ... main

Author SHA1 Message Date
panuluh
bb9dee10de Revise README to simplify content and remove private visibility
Removed sections on access restrictions and copyright details.
2026-01-29 12:14:35 +07:00
Rifqi D. Panuluh
93d720b676 Update latexdiff.yml 2025-06-04 15:11:21 +07:00
Rifqi D. Panuluh
52dccce7e2 Update latexdiff.yml 2025-06-04 15:00:49 +07:00
Rifqi D. Panuluh
bf0de65fb7 Update latexdiff.yml 2025-06-04 14:21:39 +07:00
Rifqi D. Panuluh
7ca70fbdc3 Update latexdiff.yml 2025-06-04 13:41:33 +07:00
Rifqi D. Panuluh
b35944ee3e Update latexdiff.yml 2025-06-04 13:34:44 +07:00
Rifqi D. Panuluh
8f51963d0f Merge pull request #93 from nuluh/revert-92-latex/91-bug-expose-maketitle
Revert "Expose `maketitle` by just using `\input`"
2025-06-03 20:12:49 +07:00
Rifqi D. Panuluh
5c513e4629 Revert "Expose maketitle by just using \input" 2025-06-03 20:12:11 +07:00
Rifqi D. Panuluh
38ece73768 Merge pull request #92 from nuluh/latex/91-bug-expose-maketitle 2025-06-03 20:09:13 +07:00
nuluh
76a09c0219 refactor(documentclass): update title handling by using input files for maketitle
Closes #91
2025-06-03 19:17:08 +07:00
nuluh
1a994fd59c fix(documentclass): restore and customize English bibliography strings 2025-06-03 19:10:01 +07:00
nuluh
cdb3010b78 fix(documentclass): fix redefined bibliography strings error 2025-06-03 19:05:43 +07:00
Rifqi D. Panuluh
e5b9806462 Update latexdiff.yml 2025-06-03 18:09:18 +07:00
Rifqi D. Panuluh
8dbb448b32 Update latexdiff.yml 2025-06-03 18:00:43 +07:00
Rifqi D. Panuluh
033d949325 Update latexdiff.yml 2025-06-03 17:29:50 +07:00
Rifqi D. Panuluh
643c0ebce1 Update latexdiff.yml 2025-06-03 17:19:07 +07:00
Rifqi D. Panuluh
4851a9aa5d Update latexdiff.yml 2025-06-03 17:05:30 +07:00
nuluh
8a3c1ae585 refactor(main): comment out unused input sections and update chapter includes 2025-06-03 16:37:15 +07:00
Rifqi D. Panuluh
fd765b113f Update latex-lint.yml 2025-06-03 15:35:51 +07:00
Rifqi D. Panuluh
fe801b0a1c Update latex-lint.yml 2025-06-03 15:16:16 +07:00
nuluh
7b934d3fba fix(acknowledgement): fix file naming 2025-06-03 15:02:12 +07:00
Rifqi D. Panuluh
dbc62fea32 Update latex-lint.yml 2025-06-03 15:01:15 +07:00
Rifqi D. Panuluh
1ad235866e Update latexdiff.yml 2025-06-03 14:44:52 +07:00
Rifqi D. Panuluh
05796d0165 Create latex-lint.yml 2025-06-03 14:42:29 +07:00
Rifqi D. Panuluh
f8e9ac93a0 Update latexdiff.yml
fix path
2025-06-03 14:27:00 +07:00
Rifqi D. Panuluh
04546f8c35 Update latexdiff.yml
ensures that all \include{} or \input{} paths (which are relative to main.tex) resolve correctly
2025-06-03 14:20:23 +07:00
Rifqi D. Panuluh
26450026bb Update latexdiff.yml
fix  Alpine’s “externally‐managed‐environment” restriction by install flatex inside a virtual environment rather than system‐wide
2025-06-03 14:00:50 +07:00
Rifqi D. Panuluh
3a17cc1331 Update latexdiff.yml
using a pre-built TeX Live Docker image to avoid reinstalling texlive-full every run
2025-06-03 13:42:35 +07:00
Rifqi D. Panuluh
e9f953f731 Create latexmk.yml 2025-06-03 13:26:38 +07:00
Rifqi D. Panuluh
2c5c78b83c Create latexdiff.yml 2025-06-03 13:09:41 +07:00
nuluh
aaccad7ae8 feat(glossaries): wip 2025-06-01 16:47:32 +07:00
Rifqi D. Panuluh
2c453ec403 Merge pull request #89 from nuluh/feature/88-refactor-training-cell
Closes #88
2025-05-29 23:04:24 +07:00
nuluh
7da3179d08 refactor(nb): Create and implement helper function train_and_evaluate_model 2025-05-29 22:57:28 +07:00
nuluh
254b24cb21 feat(viz): Update plotting for STFT data visualization with color map 'jet' and added color bar 2025-05-29 20:35:35 +07:00
4 changed files with 185 additions and 8 deletions

52
.github/workflows/latex-lint.yml vendored Normal file
View File

@@ -0,0 +1,52 @@
name: LaTeX Lint
on:
push:
branches:
- main
- dev
paths:
- 'latex/**/*.tex'
- 'latex/main.tex'
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install chktex
run: |
sudo apt-get update
sudo apt-get install -y chktex
- name: Run chktex inside latex/
working-directory: latex
run: |
TEX_FILES=$(find . -type f -name "*.tex")
if [ -z "$TEX_FILES" ]; then
echo "No .tex files found in latex/. Skipping lint."
exit 0
fi
echo "🔍 Linting .tex files with chktex..."
FAIL=0
for f in $TEX_FILES; do
echo "▶ Checking $f"
# Run chktex and show output; capture error status
if ! chktex "$f"; then
echo "::warning file=$f::ChkTeX found issues in $f"
FAIL=1
fi
done
if [ $FAIL -ne 0 ]; then
echo "::error::❌ Lint errors or warnings were found in one or more .tex files above."
exit 1
else
echo "✅ All files passed chktex lint."
fi

102
.github/workflows/latexdiff.yml vendored Normal file
View File

@@ -0,0 +1,102 @@
name: LaTeX Diff
on:
workflow_dispatch:
inputs:
base_branch:
description: 'Base branch (older version)'
required: true
compare_branch:
description: 'Compare branch (new version)'
required: true
jobs:
latexdiff:
runs-on: ubuntu-latest
container:
image: ghcr.io/xu-cheng/texlive-full:latest
options: --user root
steps:
- name: Install latexpand (Perl script)
run: |
tlmgr init-usertree
tlmgr install latexpand
- name: Checkout base branch
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.base_branch }}
path: base
- name: Checkout compare branch
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.compare_branch }}
path: compare
- name: Create output folder
run: mkdir -p diff_output
- name: Flatten base/main.tex (with latexpand)
run: |
cd base/latex
echo "📂 Listing files in base/latex:"
ls -R
echo "🔄 Flattening with latexpand..."
latexpand --verbose --keep-comments --output=../../diff_output/base_flat.tex main.tex
echo "✅ Preview of base_flat.tex:"
head -n 50 ../../diff_output/base_flat.tex
- name: Flatten compare/main.tex (with latexpand)
run: |
cd compare/latex
echo "📂 Listing files in compare/latex:"
ls -R
echo "🔄 Flattening with latexpand..."
latexpand --verbose --keep-comments --output=../../diff_output/compare_flat.tex main.tex
echo "✅ Preview of compare_flat.tex:"
head -n 50 ../../diff_output/compare_flat.tex
- name: Generate diff.tex using latexdiff
run: |
latexdiff diff_output/base_flat.tex diff_output/compare_flat.tex > diff_output/diff.tex
- name: Copy thesis.cls to diff_output
run: cp compare/latex/thesis.cls diff_output/
- name: Copy chapters/img into diff_output
run: |
# Create the same chapters/img path inside diff_output
mkdir -p diff_output/chapters/img
# Copy all images from compare branch into diff_output
cp -R compare/latex/chapters/img/* diff_output/chapters/img/
- name: Copy .bib files into diff_output
run: |
mkdir -p diff_output
cp compare/latex/*.bib diff_output/
- name: Override “\input{preamble/fonts}” in diff.tex
run: |
sed -i "/\\input{preamble\/fonts}/c % — replaced by CI: use TeX Gyre fonts instead of Times New Roman\/Arial\n\\\setmainfont{TeX Gyre Termes}\n\\\setsansfont{TeX Gyre Heros}\n\\\setmonofont{TeX Gyre Cursor}" diff_output/diff.tex
- name: Print preview of diff.tex (after font override)
run: |
echo "📄 Preview of diff_output/diff.tex after font override:"
head -n 50 diff_output/diff.tex
- name: Compile diff.tex to PDF
working-directory: diff_output
continue-on-error: true
run: |
xelatex -interaction=nonstopmode diff.tex
xelatex -interaction=nonstopmode diff.tex
- name: Upload diff output files
uses: actions/upload-artifact@v4
with:
name: latex-diff-output
path: diff_output/

29
.github/workflows/latexmk.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: Render XeLaTeX on PR to dev
on:
pull_request:
branches:
- dev
jobs:
build-pdf:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Compile XeLaTeX
uses: dante-ev/latex-action@2021-A
with:
root_file: main.tex
working_directory: latex
compiler: xelatex
args: -interaction=nonstopmode -halt-on-error -file-line-error
extra_system_packages: "fonts-freefont-otf"
- name: Upload compiled PDF
uses: actions/upload-artifact@v4
with:
name: compiled-pdf
path: latex/main.pdf

View File

@@ -4,20 +4,14 @@ This repository contains the work related to my thesis, which focuses on damage
**Note:** This repository does not contain the secondary data used in the analysis. The code is designed to work with data from the [QUGS (Qatar University Grandstand Simulator)](https://www.structuralvibration.com/benchmark/qugs/) dataset, which is not included here. **Note:** This repository does not contain the secondary data used in the analysis. The code is designed to work with data from the [QUGS (Qatar University Grandstand Simulator)](https://www.structuralvibration.com/benchmark/qugs/) dataset, which is not included here.
The repository is private and access is restricted only to those who have been given explicit permission by the owner. Access is provided solely for the purpose of brief review or seeking technical guidance.
## Restrictions ## Restrictions
- **No Derivative Works or Cloning:** Any form of copying, cloning, or creating derivative works based on this repository is strictly prohibited. - **No Derivative Works or Cloning:** Any form of copying, cloning, or creating derivative works based on this repository is strictly prohibited.
- **Limited Access:** Use beyond brief review or collaboration is not allowed without prior permission from the owner.
---
All contents of this repository, including the thesis idea, code, and associated data, are copyrighted © 2024 by Rifqi Panuluh. Unauthorized use or duplication is prohibited.
[LICENSE](https://github.com/nuluh/thesis?tab=License-1-ov-file#readme) [LICENSE](https://github.com/nuluh/thesis?tab=License-1-ov-file#readme)
## How to Run `stft.ipynb` ## How to Run `stft.ipynb`
1. run `pip install -e .` in root project first 1. run `pip install -e .` in root project first
2. run the notebook 2. run the notebook