This repository has been archived on 2025-04-15. You can view files and clone it, but cannot push or open issues or pull requests.
python_cluster_reader/tests/test_functions.py
2023-10-27 11:32:21 +02:00

12 lines
472 B
Python

import pytest
from fixtures import data_path
from creader import ClusterFileReader, clusterize
import sys
# def test_references_on_clusterize(data_path):
# fname= (data_path/'beam_En700eV_-40deg_300V_10us_d0_f0_100.clust').as_posix()
# r = ClusterFileReader(fname)
# clusters = r.read(10)
# result = clusterize(3, clusters)
# assert sys.getrefcount(clusters) == 2 #Over counts by one due to call by reference
# assert sys.getrefcount(result) == 2