Skip to content

[Feature Request]: Quick class method to get cluster count and cluster composition #436

@Jeff-oakley

Description

@Jeff-oakley

Email (Optional)

bouyang@fsu.edu

Problem

Can we have some class method to get cluster count (under indicator basis) and cluster composition more easily? Or can I double check if the code below is correct to get how many clusters we have?

# Assuming cs is a defined cluster subspace

feature_multiplicity = [1] # First cluster is empty cluster

for orbit in cs.orbits:
    feature_multiplicity.extend([orbit.multiplicity for _ in range(len(orbit.bit_combos))])

feature_multiplicity.append(1) # Last cluster is 1/dielectric constant

Proposed Solution

Add two class method? For the cluster count, maybe just use my code above or the corrected version if my code is not correct.

For the cluster composition, need a bit work on mapping bit_combos into a string? Is there a class attribute to map the indices in bit_combos into certain specie?

Alternatives

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions