Problem
As in diffpy/diffpy.srreal#21, the setScatteringFactorTableByType method has been deprecated.
Proposed solution
Check the examples in this directory to see if this method is used anywhere. If it is, update the uses by replacing a call to setScatteringFactorTableByType with the new API. For example, use something like
obj.scatteringfactortable = SFTNeutron()