Skip to content

add neutron stype in calculation #36

@dragonyanglong

Description

@dragonyanglong

from diffpy.srreal.scatteringfactortable import SFTNeutron                                          

    pc = PDFCalculator(**cfg)
    if stype == 'N':
    	ntb = SFTNeutron()    
    	pc.scatteringfactortable = ntb
    r, gcalc = pc(diffpy_structure)

see post at https://groups.google.com/forum/#!searchin/diffpy-users/neutron$20cmi|sort:date/diffpy-users/7nu23l7OY8A/bTDu_a0nCAAJ

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions