rc-foundry 0.1.9__py3-none-any.whl → 0.1.11__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
rfd3/utils/inference.py CHANGED
@@ -373,12 +373,13 @@ def ensure_inference_sampler_matches_design_spec(
373
373
  design_spec: Design specification dictionary
374
374
  inference_sampler: Inference sampler dictionary
375
375
  """
376
- has_symmetry_specification = [
377
- True
378
- if "symmetry" in item.keys() and item.get("symmetry") is not None
379
- else False
380
- for item in design_spec.values()
381
- ]
376
+ has_symmetry_specification = []
377
+ for item in design_spec.values():
378
+ if hasattr(item, "symmetry"):
379
+ has_symmetry = item.symmetry is not None
380
+ else:
381
+ has_symmetry = "symmetry" in item and item.get("symmetry") is not None
382
+ has_symmetry_specification.append(has_symmetry)
382
383
  if any(has_symmetry_specification):
383
384
  if (
384
385
  inference_sampler is None