A MADSci-compatible module for the Thermo Fisher Scientific Phenom SEM
- Windows Machine
- Python 2.7 -> 3.12 (I used 3.12)
- PyPhenom library (PPI) installer compatible with your Python version *
- IP address or instrument ID of your SEM device *
- PPI username and password *
* provided by Thermo Fisher
These instructions assume the use of Python 3.12 and PDM as the dependency manager.
-
Install Python 3.12 https://www.python.org/downloads/
-
Install PDM https://pdm-project.org/en/latest/#__tabbed_2_2
-
Clone this phenom_sem_module GitHub repository
git clone https://github.com/AD-SDL/phenom_sem_module.git cd .\phenom_sem_module\ -
Create and activate virtual environment using Python 3.12
py -3.12 -m venv .venv .\.venv\Scripts\activate -
Use PDM to install the dependencies
pdm installNote: Ensure that PDM is installing the dependencies with the correct version of Python.
Check which version of Python PDM is using.
pdm infoEnsure PDM is using the version of python in your activated virtual environment.
pdm use .\.venv\Scripts\python.exe -
Run the REST Node
python .\phenom_rest_node.pyOptional arguments:
- node_url: (str) URL for the REST node, defaults to http://127.0.0.1:2000
-
(Optional) Connect Phenom REST Node to MADSci Lab
Follow the instructions on the MADSci GitHub repository to set up a MADSci laboratory. https://github.com/AD-SDL/MADSci