def vdf_segments(signal_data, unique_vectors): vdfgen = VDFGenerator(signal_data, unique_vectors) vdfs = vdfgen.get_vector_vdf_images(radius=1) return vdfs.get_vdf_segments()
def test_vector_vdfs_without_vectors(self, diffraction_pattern): vdfgen = VDFGenerator(diffraction_pattern) vdfgen.get_vector_vdf_images(radius=2.)
def test_get_vector_vdf_images(self, vdf_generator: VDFGenerator, radius, normalize): vdfs = vdf_generator.get_vector_vdf_images(radius, normalize) assert isinstance(vdfs, VDFImage)
def test_vector_vdfs_without_vectors(self, diffraction_pattern): vdfgen = VDFGenerator(diffraction_pattern) with pytest.raises(ValueError, match="DiffractionVectors not specified by user"): vdfgen.get_vector_vdf_images(radius=2.0)