Version 1.1.0


To Miniconda

The python environment has been changed. The base python environment changes to Miniconda.
In addition, we recommend the virtual environment (vjem) provided by JEOL as the usage environment for PyJEM.

python 3.7, 3.8


Correspondence to python 3.7, python3.8

Installer encryption


I encrypted using pycryptodome for the installer. You can decrypt it with the license key that came with the delivery CD. If you want to decrypt it, please download the script from the following.

TEM3 (package)


Change the connection method

Until now, when you execute “from PyJEM import TEM3”, it was connected to TEM. However, if the connection cannot be made, a timeout of 40
seconds will occur, so I changed it so that it does not connect when B is executed. The following measures have been taken to resolve this issue.
  • Do not connect with “import TEM3”

  • Changed timeout time to 4 seconds

  • The connection to TEM is changed when connect() is executed or the instance of each class is created.

    ex) Connection

    >>> from PyJEM import TEM3
    >>> TEM3.connect()
    True
    

    or

    >>> from PyJEM import TEM3
    >>> TEM3.Apt3()
    True
    

Output exception

Until now, even if execution failed, no error was output, so changed to output.

ex) Nitrogen3.GetCurrentScenarioStatus()

>>> nit = TEM3.Nitrogen3()
>>> nit.GetCurrentScenarioStatus()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Function execution error. function: Nitrogen3::GetCurrentScenarioStatus, code : 26637

Add Command

  • connect

  • isconnect

  • GetDefInfo (Def3)

  • GetContBrtInfo (Detector3)

  • GetHtTargetValue (GUN3)

  • GetHtMonitorValue (GUN3)

  • GetHtCurrentValue (GUN3)

  • SetHtWobbler (GUN3)

  • SetA2Wobbler (GUN3)

  • SetA2Rel (GUN3)

  • SetA2Abs (GUN3)

  • SetHtStts (GUN3)

  • GetLensInfo (Lens3)

  • SetStdFocus (Lens3)

  • SetPegMonitorSw (VACUUM3)

  • SetPigMonitorSw (VACUUM3)

  • GetPegInfo (VACUUM3)

  • GetPigInfo (VACUUM3)

  • GetSampleInformation (Nitrogen3)

  • GetCurrentScenarioStatus (Nitrogen3)

  • GetMagazineExistStatus (Nitrogen3)

  • TransferCartridge (Nitrogen3)

  • GetLiquidLevel (Nitrogen3)

Bug fixes

  • Output is different between offline and online.

  • Stage drive related synchronization problems.

detector (package)


Add online / offline switch method

The method of switching between online and offline has been changed as follows.

ONLINE

>>> from PyJEM import detecotor
>>> detector.online()

OFFLINE

>>> from PyJEM import detecotor
>>> detector.offline()

online/offline check command.

>>> from PyJEM import detecotor
>>> detector.isonline()

Changed the setting method of IP Address.

>>> from PyJEM import detecotor
>>> detector.change_ip(ip)

sightx is packaged separately

I used to switch between B and C with a function, but I changed it to switch for each package.

detector

>>> from PyJEM import detecotor

sightx

>>> from PyJEM import sightx