YellProgram / Yell

Yell is a program for diffuse scattering interpretation using the 3D-∆PDF refinement.
Other
12 stars 3 forks source link

Feature request: input a file in model.txt #42

Open k-eks opened 6 years ago

k-eks commented 6 years ago

It would be handy to have a command in yell which reads a file and places the content of the file where it is called in the model txt. This way, long lists of correlations or atom sequences can be placed in files and can be easily commented out for testing purposes. I know that this can be done with a workaround in bash, but a stock solution would be nice :)

Example:

Correlations
[
    readfile adp_correlations_x.yell
    readfile adp_correlations_y.yell
]

instead of long lists of correlations where it is hard to keep them together.

Correlations
[
    [(0,0,0)
     Multiplicity 1
     ADPCorrelation(MS_x1,MS_x1,MS_x)
    ]
    [(0,0,0)
     Multiplicity 1
     ADPCorrelation(MS_x1,MS_x2,MS_x)
    ]
    [(0,0,0)
     Multiplicity 1
     ADPCorrelation(MS_x2,MS_x1,MS_x)
    ]
    [(0,0,0)
     Multiplicity 1
     ADPCorrelation(MS_x2,MS_x2,MS_x)
    ]
     [(0,0,0)
     Multiplicity 1
     ADPCorrelation(MS_y1,MS_y1,MS_y)
    ]
    [(0,0,0)
     Multiplicity 1
     ADPCorrelation(MS_y1,MS_y2,MS_y)
    ]
    [(0,0,0)
     Multiplicity 1
     ADPCorrelation(MS_y2,MS_y1,MS_y)
    ]
    [(0,0,0)
     Multiplicity 1
     ADPCorrelation(MS_y2,MS_y2,MS_y)
    ]
]
aglie commented 6 years ago

Oh yes, I think I can do that.

aglie commented 6 years ago

Though, it is a bit hard for me to plan the timeline when exactly I would be able to do that.