I’ve the following code snippet in Mathematica:
<<SpaceGroupIrep`
In[641]:= PGinfo[[32]][[6]]
getRotMat["CubiFace",#]&/@PGinfo[[32]][[7]]//ToString//StringReplace[#,{"{"->"[","}"->"]"}]&
(generateGroup[PGinfo[[32]][[7]],"E",RotTimes]//Union)==(getSGElem[227][[;;,1]]//Union)
Out[641]= {48, 7}
Out[642]= "[[[0, 0, -1], [-1, 0, 0], [0, -1, 0]], [[1, 1, 1], [0, 0, \
-1], [0, -1, 0]], [[0, -1, 0], [-1, 0, 0], [1, 1, 1]], [[-1, 0, 0], \
[1, 1, 1], [0, 0, -1]]]"
Out[643]= True
In the above output, the string result will be further used as the input of GAP, but the readability of this form is very poor. I want to get something similar to the following form:
[[[0, 0, -1], [-1, 0, 0], [0, -1, 0]],
[[1, 1, 1], [0, 0, -1], [0, -1, 0]],
[[0, -1, 0], [-1, 0, 0], [1, 1, 1]],
[[-1, 0, 0], [1, 1, 1], [0, 0, -1]]]
Any hints for tweaking the above code snippet to obtain this more desired pretty format?
Regards,
HZ