restructure data types

This commit is contained in:
Erik Frojdh
2023-05-31 13:31:35 +02:00
parent 06b5e97111
commit 4efbb9a914
11 changed files with 225 additions and 90 deletions

View File

@@ -0,0 +1,11 @@
import pytest
import os, sys
from creader import ClusterFileReader
from fixtures import data_path
def test_references_on_read(data_path):
fname= (data_path/'beam_En700eV_-40deg_300V_10us_d0_f0_100.clust').as_posix()
r = ClusterFileReader(fname)
clusters = r.read(10)
assert sys.getrefcount(clusters) == 2 #Over counts by one due to call by reference