najaeda 0.1.15__cp313-cp313-macosx_11_0_arm64.whl → 0.1.21__cp313-cp313-macosx_11_0_arm64.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.

Potentially problematic release.


This version of najaeda might be problematic. Click here for more details.

Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
najaeda/native/stats.py CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  import logging
6
6
  import os
7
- from naja import snl
7
+ from najaeda import naja
8
8
 
9
9
 
10
10
  class DesignsStats:
@@ -99,19 +99,19 @@ def compute_design_stats(design, designs_stats):
99
99
 
100
100
  def compute_design_terms(design, design_stats):
101
101
  for term in design.getTerms():
102
- if term.getDirection() == snl.SNLTerm.Direction.Input:
102
+ if term.getDirection() == naja.SNLTerm.Direction.Input:
103
103
  design_stats.terms["inputs"] = design_stats.terms.get("inputs", 0) + 1
104
104
  bit_terms = sum(1 for _ in term.getBits())
105
105
  design_stats.bit_terms["inputs"] = (
106
106
  design_stats.bit_terms.get("inputs", 0) + bit_terms
107
107
  )
108
- elif term.getDirection() == snl.SNLTerm.Direction.Output:
108
+ elif term.getDirection() == naja.SNLTerm.Direction.Output:
109
109
  design_stats.terms["outputs"] = design_stats.terms.get("outputs", 0) + 1
110
110
  bit_terms = sum(1 for _ in term.getBits())
111
111
  design_stats.bit_terms["outputs"] = (
112
112
  design_stats.bit_terms.get("outputs", 0) + bit_terms
113
113
  )
114
- elif term.getDirection() == snl.SNLTerm.Direction.InOut:
114
+ elif term.getDirection() == naja.SNLTerm.Direction.InOut:
115
115
  design_stats.terms["inouts"] = design_stats.terms.get("inouts", 0) + 1
116
116
  bit_terms = sum(1 for _ in term.getBits())
117
117
  design_stats.bit_terms["inouts"] = (