software:fitallb
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| software:fitallb [2019/12/13 15:42] – estelle | software:fitallb [2020/04/08 10:09] (current) – [Evaluating the results] matthias | ||
|---|---|---|---|
| Line 36: | Line 36: | ||
| ===== Usage ===== | ===== Usage ===== | ||
| - | ====== FitAllB ====== | + | ==== Prerequisites |
| - | fitallb.py is the script that allow you to refine | + | '' |
| - | * the GrainSpotter file (.log) | + | * the GrainSpotter |
| - | * the original peaks list (.flt) | + | * the list of filtered peaks ('' |
| - | * the parameters | + | * the ImageD11 parameter file of the phase ('' |
| - | * the structure file for your phase (.cif) | + | * the structure file for your phase ('' |
| - | * optionally, a res file, but i don't really know what that is so I don't use it; | + | * optionally, a //res// file, but i don't really know what that is so I don't use it; |
| - | * the input file (.inp) | + | * the input file ('' |
| + | |||
| + | It furthermore requires // | ||
| The input file should have this look : | The input file should have this look : | ||
| - | <WRAP center round box 80%> | + | <code> |
| title ' | title ' | ||
| log_file grains.log | log_file grains.log | ||
| Line 84: | Line 86: | ||
| # | # | ||
| tol_grain 1e-2 | tol_grain 1e-2 | ||
| - | </WRAP> | + | </code> |
| + | |||
| + | ==== Modifying the parameters ==== | ||
| + | Now, about the parameters of the refinement, these are the four lines starting with '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | ==== Running the refinement ==== | ||
| + | Edit this input file to your purposes (modify file names, experimental conditions, crystallographic info, ...) and then type this to your command line: | ||
| + | |||
| + | fitallb.py -i inputfilename.inp | ||
| + | |||
| + | As a result, //FitAllB// will run several fits in the terminal and if it succeeds to refine your grains, it will finish with '' | ||
| + | |||
| + | ==== Evaluating the results ==== | ||
| + | Your current working directory should now contain a new folder named after your input file. In this new folder you can find several output files, which //FitAllB// created during the run. As I understand it now, the most usefull output files are the '' | ||
| + | |||
| + | The '' | ||
| + | The '' | ||
| + | |||
| + | === Reported crashs === | ||
| + | * __maximum call reached__: Happens when //FitAllB// needs too much refinement loops to complete the calculation and is not powerfull enough to do it completly (?). Decrease your //rej_ia//, //rej_vol// or increase // | ||
| + | * __singular matrix__: Mean that fitallb does not have enough information on a grain to refine stress tensor. But same as before, decrease your //rej_ia//, //rej_vol// or increase // | ||
| + | * __ValueError: | ||
| + | * Issues with the CIF file: Tip: If one (or multiple) of the following errors occur over and over again and you don't know what causes the error, there' | ||
| - | (I don't know how to add a whole file in the wiki or to formate the text so it don't look great...but you can get it from the edit page i guess. Or I can send the input file to you.) | + | loop_ |
| + | _atom_type_symbol | ||
| + | _atom_type_description | ||
| + | | ||
| + | ' | ||
| + | ' | ||
| - | In this input file, edit the part about the different related | + | * If you don't want to use ISOCIF, here are some ways to deal with all the issues individually: |
| - | <WRAP center round box 30%> | + | * CIF-file issue: __KeyError: u'No such item: _atom_type_symbol' |
| - | fitallb.py -i inputfilename.inp | + | * CIF-file issue: __UnboundLocalError: |
| - | </WRAP> | + | * CIF-file issue: __KeyError: u' |
| + | * CIF-file issue: __UnboundLocalError: | ||
| + | * __TypeError: | ||
| + | * __LinAlgError: | ||
| - | In reaction, fitallb will run several fits in the teminal and if it succeed to refine your grain, it will end with a 'normal termination of fitallb'. | + | ==== Fitgloball ==== |
| - | Then you have a new folder in the folder you are currently working in, named after your input file. In this new folder are all the output file fitallb created during the run. As I understand it now, the most usefull output files are the _final.gff and the _rej files. | + | '' |
| - | The _final.gff file contains the final results | + | |
| - | The _rej file list all the peaks rejected during the refinement and tell you why they were rejeced. Most of the time it is a problem of intensity or internal angle (ia). | + | |
| + | It is working the same way as // | ||
| + | A good advice to use it to refine cell parameters is to index grains with only the lowest tth (where it's easy for GrainSpotter to index peaks) and then use // | ||
software/fitallb.1576248163.txt.gz · Last modified: by estelle
