File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change 153153 "metadata" : {},
154154 "outputs" : [],
155155 "source" : [
156- " from ess.nmx.nexus import export_as_nxlauetof\n " ,
156+ " from ess.nmx.nexus import (\n " ,
157+ " export_panel_dependent_data_as_nxlauetof,\n " ,
158+ " export_panel_independent_data_as_nxlauetof,\n " ,
159+ " )\n " ,
160+ " \n " ,
161+ " file_name = \" test.nxs\"\n " ,
162+ " export_panel_independent_data_as_nxlauetof(binned_dg, output_file=file_name)\n " ,
163+ " export_panel_dependent_data_as_nxlauetof(binned_dg, output_file=file_name)\n " ,
164+ " del binned_dg\n " ,
157165 " \n " ,
158- " dgs = []\n " ,
159- " for i in range(3):\n " ,
166+ " for i in range(1, 3):\n " ,
160167 " with temp_parameter(wf, DetectorIndex, i) as temp_wf:\n " ,
161168 " reduced_data = temp_wf.compute(NMXReducedData)\n " ,
162- " dgs.append(reduced_data)\n " ,
163- " del reduced_data\n " ,
164- " \n " ,
165- " export_as_nxlauetof(*dgs, output_file=\" test.nxs\" )"
166- ]
167- },
168- {
169- "cell_type" : " code" ,
170- "execution_count" : null ,
171- "metadata" : {},
172- "outputs" : [],
173- "source" : [
174- " dgs[0]"
169+ " export_panel_dependent_data_as_nxlauetof(reduced_data, output_file=file_name)\n " ,
170+ " del reduced_data\n "
175171 ]
176172 },
177173 {
You can’t perform that action at this time.
0 commit comments