Finally fixed the segmentation fault error when doing the 1D density profiles on the complete list of plotfiles. The reason was that yt had already loaded the last plotfile in the analysis script previously and I was calling a load on that file again, which yt skipped.