Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/nikoloside/far-from-boundary-fields
15 July 2026, 01:28:28 UTC
  • Code
  • Branches (3)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/grsi
    • refs/heads/main
    • refs/heads/master
    No releases to show
  • 298ae6a
  • /
  • quick_test.py
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:f78cac2d81927caf01a0d486bceac3fc0ac261aa
origin badgedirectory badge
swh:1:dir:298ae6aea9d60519ac58c93eb472d6b9b46fe025
origin badgerevision badge
swh:1:rev:07bb3bac3bb9ab7d5b7dc65e676b04f985f3b256
origin badgesnapshot badge
swh:1:snp:55a2125c892d5e5c0823c1e570d6407afbe8eefe

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: 07bb3bac3bb9ab7d5b7dc65e676b04f985f3b256 authored by Niko Huang on 28 June 2026, 17:30:24 UTC
Merge pull request #1 from nikoloside/grsi
Tip revision: 07bb3ba
quick_test.py
#!/usr/bin/env python3
"""
Quick test for Far-From-Boundary Fields (FFB).

A single-command sanity run, in the spirit of TEBP's `predict-runtime.py --auto-run`.
It drives the encoding-comparison experiment (`experiments/exp1_encoding/run.py`):
ensure NPZ encodings → train the VQ-MLP for a few steps → extract meshes →
evaluate SymMFCD → render the comparison figure. Small settings let it finish in a
few minutes.

Usage:
    python quick_test.py            # minimal smoke run
    python quick_test.py --quick    # medium run

Outputs (meshes, metrics, figures) are written under
`experiments/exp1_encoding/output/`.
"""
import argparse
import os
import subprocess
import sys

ROOT = os.path.dirname(os.path.abspath(__file__))
ENTRY = os.path.join("experiments", "exp1_encoding", "run.py")


def main():
    parser = argparse.ArgumentParser(description="FFB quick end-to-end test")
    parser.add_argument("--quick", action="store_true",
                        help="Use --quick mode (medium run); default is --minimal")
    args = parser.parse_args()

    entry_abs = os.path.join(ROOT, ENTRY)
    if not os.path.exists(entry_abs):
        sys.exit(f"[quick_test] missing entry script: {entry_abs}")

    mode = "--quick" if args.quick else "--minimal"
    cmd = [sys.executable, ENTRY, mode]

    print(f"[quick_test] running: {' '.join(cmd)} (cwd={ROOT})")
    print("[quick_test] encode -> train (VQ-MLP) -> extract -> SymMFCD -> figure. "
          "Results go under experiments/exp1_encoding/output/")
    rc = subprocess.call(cmd, cwd=ROOT)
    if rc != 0:
        sys.exit(f"[quick_test] experiment exited with code {rc}")

    out = os.path.join(ROOT, "experiments", "exp1_encoding", "output")
    print(f"\n[quick_test] done. Inspect results under: {out}")
    print("  figures/symmfcd_comparison.png  — the SymMFCD comparison figure")


if __name__ == "__main__":
    main()

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API