SepShr / MLCSHE

This repo houses the ML-Component Systemic Hazard Envelope project, or MILSCHE (pronounced /'mɪlʃ/).
MIT License
3 stars 0 forks source link

Python iterator tip #11

Closed donghwan-shin closed 3 years ago

donghwan-shin commented 3 years ago

https://github.com/SepShr/MLCSHE/blob/cc5018836483c45b498e35d8bc4eff32a81e194f/CCEA.py#L141

for this, you can just do:

pAComplement = [ele for ele in pA if ele not in aA]
SepShr commented 3 years ago

Thanks! Changes are applied and now the issue will be closed.