When creating the source file, try making ‘filetype’ an attribute of the / group rather than a dataset. It looks like you already have a line commented out in your script that does this, but it needs a slight modification:
I am having a little trouble with a geometry that uses and external source file
The geometry appears to work for a basic point source and I can plot flux or absorption meshes
The geometry appears to half work for a source file when plotting flux as the flux is shown but the leakage is 1.0
The geometry does not work for a source file when plotting absorption as the but the leakage is 1.0
Can anyone see where I am going wrong here or does anyone have a simple technique for finding why the leakage is 1.0 ?
I think the only change between the examples is the file source for a basic source. The file source has similar energy and positions to the basic source