def sub(self, name, contents=None):
        path = os.path.join(self.path, name)
        if contents:
            with open(path, 'wb') as f:
                f.write(contents)
        return path
xrf_plot(energy, data[, win=1], options])
dataset/ETHPy150Open sampsyo/confit/test/__init__.py/TempDir.sub--crossover with--dataset/ETHPy150Open xraypy/xraylarch/plugins/wx/plotter.py/_xrf_plot