Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

Segmentation fault for length zero frame list #400

Description

@PicoCentauri

Expected behavior

When providing an empty frames list to a SOAP representation the method get_feature method should raise a ValueError.

Actual behavior

The kernel quits with a segmentation fault.

Code to reproduce the behavior

from rascal.representations import SphericalInvariants as SOAP

hypers = dict(soap_type='PowerSpectrum',
              interaction_cutoff=3.5,
              max_radial=6,
              max_angular=6,
              gaussian_sigma_type='Constant',
              gaussian_sigma_constant=0.4,
              cutoff_smooth_width=0.5)

frames = []

soap = SOAP(**hypers)
soap_rep = soap.transform(frames)
soap_rep.get_features(soap)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions