Skip to content

Commit

Permalink
Added warning wrt to pitfalls when parsing ATO v3 as detailed in liba…
Browse files Browse the repository at this point in the history
…tomprobe
  • Loading branch information
atomprobe-tc committed Nov 27, 2023
1 parent c349287 commit cd641c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ifes_apt_tc_data_modeling/ato/ato_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ def __init__(self, filename: str):
# Cameca/AMETEK's runrootl/FileConvert utility know two ATO flavours:
# CamecaRoot v18.46.533g built Marc, 21, 2022 against ROOT 5.34/36
# v3 LAWATOP and v5 current GPM
# specifically an earlier parser
# https://hg.sr.ht/~mycae/libatomprobe/browse/src/io/dataFiles.cpp?rev=tip
# mentions that storage format may not be robust enough against overflow and
# suggests that additional polishing of results is needed

def get_ato_version(self):
header = get_memory_mapped_data(self.filename, "<u4", 0, 4, 2)
Expand Down

0 comments on commit cd641c9

Please sign in to comment.