https://github.com/SNflows/flows/blob/01baac656060aefca875e5871e2b40c1e1e1b337/flows/instruments/instruments.py#L370