Refactors legacy Fortran code (F77, F90, F95) into modern, idiomatic Python scripts. Use when modernizing scientific or numerical computations from Fortran to Python using NumPy and SciPy.
This skill specializes in converting legacy Fortran code into maintainable, modern Python. It prioritizes the use of numpy for array operations and scipy for scientific computing to ensure performance and clarity.
scipy.linalg.numpy, consider order='F' if direct memory mapping is needed, or transpose for row-major idiomatic Python.DO loops -> for i in range(...) or, preferably, vectorized numpy operations.IF blocks -> Python if/elif/else.GOTO -> Refactor into logical loops or functions (DO NOT use goto-like hacks in Python).SUBROUTINE and FUNCTION to Python def. Handle "pass-by-reference" by returning modified values or using mutable objects (like numpy arrays).REAL*8 or DOUBLE PRECISION to np.float64, INTEGER to int (or np.int32/64), etc.numpy vectorization is used wherever possible instead of explicit loops.pytest to compare numerical results if sample data is available.STOP statements.OPEN/READ/WRITE with with open(...) or np.loadtxt/np.savetxt.MATMUL(A, B) -> A @ B or np.dot(A, B)TRANSPOSE(A) -> A.TSQRT, SIN, COS, etc. -> np.sqrt, np.sin, np.cosALLOCATE(A(N)) -> A = np.zeros(N) or np.empty(N)DEALLOCATE(A) -> del A (or let Python handle GC)Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer