Getting started¶
1. Confirm a virtual environment¶
Confirm that the operating PC has the recommended environment(vjem) to run PyJEM.
1.1 Verify that Miniconda is already installed.¶
> conda
If the command raise error, please jump the Install Miniconda.
1.2 Verify that vjem is already installed.¶
> conda env list
If the command raise error or not exist vjem, please jump the Create vjem.
2. Activate vjem environment¶
Activate the vjem on command line.
conda activate ***
Example¶
Activate python3.8 environment.
(base) C:\Users\JEOL\Desktop>conda activate vjem38
(vjem38) C:\Users\JEOL\Desktop>python
Python 3.8.10 | packaged by conda-forge | (default, May 12 2017, 16:16:49) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
3. Import the PyJEM library¶
Execute the following command on the command line.
>>> import PyJEM
If output the following error on import, please jump the Install PyJEM.
>>> import PyJEM
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PyJEM'
4. Confirm the communication.¶
4.1 TEM3 package¶
>>> from PyJEM import TEM3
>>> TEM3.connect()
True
If the result of the execution is True, it is successful. but if the result is False, please confirm the following.
TEMExternal is installed the operating PC.
4.2 Other package¶
>>> from PyJEM import detector
>>> detector.get_attached_detector()
["HAADF"]
If the result of the execution is
ConnectionRefusedError: [WinError 10061]
Probably because the IPaddress in the package configuration is not corrected. please try the Change IP address