# How to convert a list to components of a PseudoRiemannian metric

Good afternoon. I work with theoretical physics, and I build Einstein's Tensor from an extensive metric. So I decided to use list comprehension in order to make the construction of curvature tensors simpler. However, after finding the Einstein tensor, I need to work with some components separately, but I am not able to return the list in components of a PseudoRiemannian metric. Is there any possibility to do this conversion?

Thank you in advance for your attention.

Please give us some implementation details, else there is no chance to give a pointed answer. If the issue is just an issue of using a list comprehension, then please try to isolate the issue in a minimal framework, then give the related details only. Also a bigger example is welcome, but please arrange that it comes best with minimal code, possibly with simplified geometric data (making everything "flat and boring" in the physical world), if sage special libraries and/or classes and/or function are used, especially when the results are rather involved in the typed used. Best, provide some lines of code, this makes it simpler for potential answerers to react.