bluesky / suitcase-specfile

write text file such as output by SPEC
Other
0 stars 8 forks source link

compare with similar callback at APS #8

Open prjemian opened 5 years ago

prjemian commented 5 years ago

Compare this suitcase with the apstools.filewriters.SpecWriterCallback

Eventually, I see features from the apstools folded into specfile but perhaps these remain as two separate instances with SpecWriterCallback getting improvements from specfile.

prjemian commented 5 years ago

Compare output from both tools.

specfile example

In [2]: import suitcase.specfile                                                                                                    

In [7]: suitcase.specfile.export(db[-1].documents(), '')                                                                            
Out[7]: {'stream_data': [PosixPath('/tmp/e4dc5edf-3260-4d4f-9b56-18d4a4ce2f13.spec')]}

e4dc5edf-3260-4d4f-9b56-18d4a4ce2f13.spec.txt

apstools.filewriters.SpecWriterCallback example

In [10]: APS_utils.replay(db[-1], specwriter.receiver)

In [13]: specwriter.spec_filename                                                                                                   
Out[13]: '/tmp/20190809-093704.dat'

20190809-093704.dat.txt