Description
The lines of code referenced seem to serve no purpose but are being executed unnecessarily. These lines should be removed if they are indeed redundant.
|
|
|
for state in list(states.keys()).copy(): |
|
if state not in accessed_states and states[state].initial_weight != 1: |
|
del states[state] |
|
|
|
for state in list(states.keys()).copy(): |
|
if state not in visited_states and states[state].initial_weight != 1: |
|
del states[state] |
Proposed Changes
- Verify that these lines are unnecessary. If so, remove them.
Description
The lines of code referenced seem to serve no purpose but are being executed unnecessarily. These lines should be removed if they are indeed redundant.
pyModelExtractor/pymodelextractor/learners/observation_tree_learners/bounded_pdfa_quantization_n_ary_tree_learner.py
Lines 138 to 142 in 1f240d8
pyModelExtractor/pymodelextractor/learners/observation_tree_learners/pdfa_quantization_n_ary_tree_learner.py
Lines 210 to 212 in 1f240d8
Proposed Changes