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
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?
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