Echo-aloha/asphalt-codex-skills-5 / skills/pfc-postprocessing
pfc-postprocessing
VerifiedPost-process PFC 5.0 asphalt CSV and image exports into reproducible curves, fields, rose diagrams, animations, and summary tables without relying on a local PFC installation.
scripts/convert_legacy_ball_export.py
View on GitHubfrom __future__ import annotations
from pathlib import Path
import argparse
import re
import pandas as pd
from _common import ensure_dir
def main() -> None:
parser = argparse.ArgumentParser(description="Convert legacy ball export text into a public ball-field CSV")
parser.add_argument("--input-file", type=Path, required=True)
parser.add_argument("--output-dir", type=Path, required=True)
args = parser.parse_args()
output_dir = ensure_dir(args.output_dir)
rows: list[dict[str, float | str]] = []
with args.input_file.open("r", encoding="utf-8", errors="ignore") as handle:
for line in handle:
numbers = re.findall(r"[-+]?\d*\.?\d+(?:[eE][-+]?\d+)?", line)
if len(numbers) < 4:
continue
x, y, radius, ball_id = map(float, numbers[:4])
rows.append(
{
"x": x,
"y": y,
"radius": radius,
"disp_x": 0.0,
"disp_y": 0.0,
"vel_x": 0.0,
"vel_y": 0.0,
"ball_id": int(ball_id),
}
)
if not rows:
raise ValueError("No parseable ball rows found in legacy export")
out = output_dir / "plotdata_ball_fields.csv"
pd.DataFrame(rows).to_csv(out, index=False)
print(out)
if __name__ == "__main__":
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| deprecation-and-migrationaddyosmani/agent-skillsManages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| performance-optimizationaddyosmani/agent-skillsOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| Agent Cost Reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| Agent Cost Reportthedotmack/claude-memBelievable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |