This python module can be used to calculate polarization change due to Faraday rotation for an X-ray beam propagating through plasma. It's an offline tool that needs field data from a PIC simulation. It supports generic text inputs as well as integration with the openPMD-api
.