16 lines
470 B
Python
Executable File
16 lines
470 B
Python
Executable File
|
|
import ch.psi.pshell.data.LayoutDefault
|
|
class MyLayout(ch.psi.pshell.data.LayoutDefault):
|
|
def getDefaultGroup(self, scan):
|
|
return str("test")
|
|
|
|
get_context().dataManager.setLayout(MyLayout())
|
|
|
|
tscan (sin,10,0.1)
|
|
writer = get_context().dataManager.provider.writer
|
|
o=writer.object()
|
|
o.createSoftLink("/test/sin", "/data/data1")
|
|
o.createHardLink("/test/sin", "/data/data2")
|
|
|
|
o.createSoftLink("/test", "/link1") #Not supported
|
|
o.createHardLink("/test", "/link2") |