Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.31 KB

File metadata and controls

49 lines (33 loc) · 1.31 KB

BGlib

GitHub Actions PyPI License Downloads DOI

Band Excitation (BE) and General Mode (G-Mode) Scanning Probe Microscopy (SPM) data format translation, analysis and visualization codes.

MCP Server

BGlib now includes a small MCP server for exposing a focused set of BE tools over stdio.

Install with the optional MCP dependency:

pip install -e .[mcp]

Start the server:

bglib-mcp

Exposed tools:

  • LabViewPatcher(h5_path, force_patch=False)
  • projectLoop(vdc, amp_vec, phase_vec)
  • calc_switching_coef_vec(loop_coef_vec, nuc_threshold)
  • calculate_loop_centroid(vdc, loop_vals)
  • get_rotation_matrix(theta)