Closed thisac closed 2 years ago
Merging #711 (28e501f) into master (9033843) will increase coverage by
0.00%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #711 +/- ##
=======================================
Coverage 98.72% 98.72%
=======================================
Files 75 75
Lines 9230 9238 +8
=======================================
+ Hits 9112 9120 +8
Misses 118 118
Impacted Files | Coverage Δ | |
---|---|---|
strawberryfields/device.py | 97.46% <100.00%> (+0.28%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 9033843...28e501f. Read the comment docs.
Context: TDM programs sometimes uses arrays instead of single parameter values causing issues when calling the
Device.validate_parameter
method.Description of the Change:
Device.validate_parameter
is updated to work with nested parameter arrays by flattening any nested array and then checking each parameter separately.Benefits:
Device.validate_parameter
works with arbitrarily nested parameter arrays.Possible Drawbacks: None
Related GitHub Issues: None