zlatko-minev / pyEPR

Powerful, automated analysis and design of quantum microwave chips & devices [Energy-Participation Ratio and more]
https://pyepr-docs.readthedocs.io
Other
160 stars 219 forks source link

Add `DistributedAnalysis.get_Qsurface` for a single surface #122

Closed nikosavola closed 2 years ago

nikosavola commented 2 years ago

Currently, there exists DistributedAnalysis.get_Qsurface_all https://github.com/zlatko-minev/pyEPR/blob/3660e76d80cfc044524c28ba2c5da3d9653f3ee1/pyEPR/core_distributed_analysis.py#L887-L891 which computes the contribution to Q on all surfaces. I think it would be useful to have a similar function for a single given surface, get_Qsurface. It would then make sense to refactor get_Qsurface_all to call this function with name='AllObjects'.