Skip to main content

A package to analyze and report on the FPGA card temperatures of the Gatan K3 camera.

Project description

Summary

This is a set of scripts used to parse and display the FPGA processor temperature information for a Gatan K3 camera server as reported in the Digital Micrograph (DM) logs. This is useful for determining if there are overheating problems and to see if the fans on any of the FPGAs has died (indicated by a sustained increase in the temperature of one processor).

Requirements

This script requires a python installation of version 3.6 or higher. Matplotlib is required to use the --plot/-p option but is not required for the summary or csv output.

Installation

Install into an appropriate python environment using pip install card_temps or by cloning this repository. Cloning will require running the script directly using the ./card_temperatures style.

Usage

The script can be run pointing at DM log files and/or zip files containing DM logs. These are located by default at c:\ProgramData\Gatan\Logs. The default zipfile containing logs for the last year is DM.Archive.log and the log for the current day is .DM.log, filling in the date in YYYY-MM-DD format for . This makes the command to look at the log for 2021-07-27 card_temperatures c:\ProgramData\Gatan\Logs\2021-07-27.DM.log. When run without any parameters as card_temperatures it will search the default log path for any .DM.log files and operate on them automatically.

This mode (no flags) will output a min/max/avg summary for each processor, calculated over the entirety of the input data. In some versions of DM the logged values are the same for both of the processors on a card, in newer versions the temperature of each processor is reported independenly.

Specifying --output will write a csv file. The output will contain summary rows for each processor for each day in the input data. This can the be manipulated in other programs to further slice or analyze the data.

Specifying --plot (requires matplotlib) will plot the data on a per-processor basis in time-series, showing the min/max/avg values for each day.

Any day that has a zero is the result of a communication error occurring between DM and the card, during which it records 0.00 as the temperature.

Notes

I've only been able to test this on microscopes that are maintained in very similar condition and which run nearly-identical versions of DM. I'm fairly sure that other versions may cause bugs. If you suspect there's a bug related to the DM version, please contact me and I'll try to take a look at it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

card_temps-0.0.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

card_temps-0.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file card_temps-0.0.1.tar.gz.

File metadata

  • Download URL: card_temps-0.0.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for card_temps-0.0.1.tar.gz
Algorithm Hash digest
SHA256 951f2747c54f4c5153aa20b6d9ddb26cce7802e2bf3db24b181b165e3274a8e7
MD5 c8deecfb2bd0e0f41ff20a20b8e0a3de
BLAKE2b-256 2e82d5017ce61360c7212312d0b8448232f81bdaa7550517d7ea9d4894bcbb11

See more details on using hashes here.

File details

Details for the file card_temps-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: card_temps-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for card_temps-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04b44cedb0c241c4760dcf6e629cb0e91907eb1346791a84efef48a235cbbd9e
MD5 a3e0bb23e4cbbe8b8c251ef42f623641
BLAKE2b-256 55f9a812af61b5b6c0d1a5a33d4de9d61a648cb91a0cebc5699b87869af3960a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page