# HG changeset patch # User ximgchess # Date 1641392096 0 # Node ID 3316ac4fd07bfd7a8d68c7699cfd05e5faff6749 "planemo upload for repository https://github.com/ximg-chess/galaxytools/tools/hexrd commit 944c00504583f201b006fb01f7e19fd98fca4a29" diff -r 000000000000 -r 3316ac4fd07b hexrd_find_orientations.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hexrd_find_orientations.xml Wed Jan 05 14:14:56 2022 +0000 @@ -0,0 +1,87 @@ + + Process rotation image series to find grain orientations + + macros.xml + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+
+ + + + + + + + + + +
+
+ +
+
+ + +
+
+ + + +
+ + + + + +
+
+ + +
diff -r 000000000000 -r 3316ac4fd07b hexrd_fit_grains.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hexrd_fit_grains.xml Wed Jan 05 14:14:56 2022 +0000 @@ -0,0 +1,76 @@ + + Extracts G vectors, grain position and strain + + macros.xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + + + +
+
+ + +
diff -r 000000000000 -r 3316ac4fd07b macros.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/macros.xml Wed Jan 05 14:14:56 2022 +0000 @@ -0,0 +1,404 @@ + + 0.8.12 + 1 + 21.09 + + + hexrd + + + + + + 10.1016/j.matchar.2020.110366 + + + + + +#import re +#import yaml + +#set global $img_panel_dict = dict() +#if $detector.panel_assignment == 'panel_table' +#set $fh = open(str($detector.image_panel_table),'r') +#for $line in $fh: + #set $fields = $line.strip().split('\t') + #silent $img_panel_dict[$fields[0]] = $fields[1] +#end for +#end if +#set global $panels = $yaml.safe_load(open(str($instrument),'r'))['detectors'].keys() +#def identifier_or_name($input1) + #if hasattr($input1, 'element_identifier') + #return $input1.element_identifier + #elif hasattr($input1, 'name') + #return $input1.name + #else + #return str($input1) + #end if +#end def +#def clean($name1) + #set $name_clean = $re.sub('[^\w\-_]', '_', $re.sub('(?i)[.](npz|hexrd|yml|dat|out)$','', $name1.split()[-1])) + #return $name_clean +#end def +#def ln_name($ds,$ext) + #set $lname = "%s.%s" % ($clean($identifier_or_name($ds)),$ext) + #return $lname +#end def +#def get_panel($img_input): + #set $img_name = $identifier_or_name($img_input) + #if $img_panel_dict and $img_name in $img_panel_dict: + #return $img_panel_dict[$img_name] + #end if + #for $p in $panels: + #if $p in $img_name: + #return $p + #end if + #end for + #return $img_name +#end def + + + + + + + + + + + + + A 2-column table:image dataset name detector panel name + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + commas separated list of planes, e.g.: 0,1,2,3,4,5 + ^\d(,\d)*$ + +
+ +
+ + + + + + + + + commas separated list of planes, e.g.: 0,1,2 (subset of active hkl planes) + ^\d(,\d)*$ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ + +
+
+ + + + + + + + +
+ +
+ + + # fclusterdata; this is a fallback and won't work for large problems + algorithm: $clustering.clustering_algorithm + radius: $clustering.clustering_radius + completeness: $clustering.clustering_completeness + +]]> + + + + + + + + + +
+ + + + + + + ^\d(,\d)*$ + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + +