Metadata-Version: 2.4
Name: BGlib
Version: 0.0.6
Summary: Band Excitation and General Mode analysis and visualization codes
Home-page: https://pycroscopy.github.io/BGlib/about.html
Author: Suhas Somnath, Chris R. Smith, Rama K. Vasudevan, Stephen Jesse, Anton Ievlev, and contributors
Author-email: pycroscopy@gmail.com
License: MIT
Keywords: imaging,spectra,multidimensional,scientific
Platform: Linux
Platform: Mac OSX
Platform: Windows 10/8.1/8/7
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Cython
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Requires-Python: >=3.10
License-File: LICENSE
Requires-Dist: numpy>=1.13.0
Requires-Dist: h5py>=2.6.0
Requires-Dist: scipy>=0.17.1
Requires-Dist: scikit-image>=0.12.3
Requires-Dist: scikit-learn>=0.17.1
Requires-Dist: matplotlib>=2.0.0
Requires-Dist: psutil
Requires-Dist: six
Requires-Dist: pillow
Requires-Dist: joblib>=0.11.0
Requires-Dist: ipywidgets>=5.2.2
Requires-Dist: ipython>=6.0
Requires-Dist: numpy_groupies==0.9.7
Requires-Dist: sidpy>=0.12.1
Requires-Dist: pyUSID>=0.0.11
Requires-Dist: xlrd>=1.0.0
Provides-Extra: mcp
Requires-Dist: mcp>=1.0.0; extra == "mcp"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: platform
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

BGlib
=====

.. image:: https://github.com/pycroscopy/BGlib/actions/workflows/build.yml/badge.svg?branch=main
    :target: https://github.com/pycroscopy/BGlib/actions/workflows/build.yml?query=branch%3Amain
    :alt: GitHub Actions

.. image:: https://img.shields.io/pypi/v/BGlib.svg
    :target: https://pypi.org/project/bglib/
    :alt: PyPI

.. image:: https://img.shields.io/pypi/l/BGlib.svg
    :target: https://pypi.org/project/bglib/
    :alt: License

.. image:: https://pepy.tech/badge/BGlib
    :target: https://pepy.tech/project/BGlib
    :alt: Downloads

.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.4542239.svg
   :target: https://doi.org/10.5281/zenodo.4542239
   :alt: 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:

.. code-block:: bash

    pip install -e .[mcp]

Start the server:

.. code-block:: bash

    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)``
