Skip to content

distribution_info broken for map layouts #492

@coreyostrove

Description

@coreyostrove

Jotting down some details on a low-priority bug for future reference.

When calling the distribution_info method of the DistributableCOPALayout class, which is a parent class to MapCOPALayout this results in the following exception.

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[7], line 1
----> 1 test_layout_2Q_size_prop.distribution_info(1)

File ~\Documents\pyGSTi_API_updates\pygsti\layouts\distlayout.py:1381, in DistributableCOPALayout.distribution_info(self, nprocs)
   1378 info = {}
   1379 subcomm_ranks = _collections.defaultdict(list)
-> 1381 nAtomComms = self.num_atom_processing_subcomms
   1382 nAtoms = len(self.atoms)
   1383 assert(nAtomComms <= nAtoms), "Cannot request more sub-comms ({nAtomComms}) than there are atoms ({nAtoms})!"

AttributeError: 'MapCOPALayout' object has no attribute 'num_atom_processing_subcomms'

The only references to this attribute I can find with a search of the codebase are in this method, so presumably this is referring to an attribute that was either renamed or removed. We should fix this at some indeterminate point in the future (or else decide to remove the broken method if it isn't an easy fix).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA bug or regressionlikely quickThings we expect to not take significant investigation or changes (remove label if issue spirals)low priorityDevelopers should be aware of this issue, but it need not be addressed imminently

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions