{"id":212,"date":"2023-06-07T14:02:39","date_gmt":"2023-06-07T12:02:39","guid":{"rendered":"https:\/\/logbooks.ifosim.org\/finesse\/?p=212"},"modified":"2023-06-07T14:02:39","modified_gmt":"2023-06-07T12:02:39","slug":"xaxis-vs-xaxis-what-is-the-difference","status":"publish","type":"post","link":"https:\/\/logbooks.ifosim.org\/finesse\/2023\/06\/07\/xaxis-vs-xaxis-what-is-the-difference\/","title":{"rendered":"xaxis vs Xaxis: What is the difference?"},"content":{"rendered":"\n<p>Both keywords refer to the same action which fulfills the same task: to sweep over some parameter, to compute all the detector outputs, to return a solution object with its result, and finally to reset all the values it has changed during the sweep. <\/p>\n\n\n\n<p>The xaxis is used in KatScript command. It can be parsed together with other optical elements of the model or separately by itself in the run function of the model:<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"631\" height=\"293\" data-id=\"224\" src=\"https:\/\/logbooks.ifosim.org\/finesse\/wp-content\/uploads\/sites\/5\/2023\/06\/image1-2.png\" alt=\"\" class=\"wp-image-224\" srcset=\"https:\/\/logbooks.ifosim.org\/finesse\/wp-content\/uploads\/sites\/5\/2023\/06\/image1-2.png 631w, https:\/\/logbooks.ifosim.org\/finesse\/wp-content\/uploads\/sites\/5\/2023\/06\/image1-2-300x139.png 300w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><\/figure>\n<\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1009\" height=\"279\" src=\"https:\/\/logbooks.ifosim.org\/finesse\/wp-content\/uploads\/sites\/5\/2023\/06\/image2-1.png\" alt=\"\" class=\"wp-image-227\" srcset=\"https:\/\/logbooks.ifosim.org\/finesse\/wp-content\/uploads\/sites\/5\/2023\/06\/image2-1.png 1009w, https:\/\/logbooks.ifosim.org\/finesse\/wp-content\/uploads\/sites\/5\/2023\/06\/image2-1-300x83.png 300w, https:\/\/logbooks.ifosim.org\/finesse\/wp-content\/uploads\/sites\/5\/2023\/06\/image2-1-768x212.png 768w\" sizes=\"auto, (max-width: 1009px) 100vw, 1009px\" \/><\/figure>\n\n\n\n<p>The xaxis  KatScript command is associated with a similarly named class in <a href=\"https:\/\/finesse.ifosim.org\/docs\/latest\/api\/analysis\/finesse.analysis.actions.html#module-finesse.analysis.actions\"><code>finesse.analysis.actions<\/code><\/a>: Xaxis. To use this action, first we need to import it and then to use it while running the model:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1018\" height=\"297\" src=\"https:\/\/logbooks.ifosim.org\/finesse\/wp-content\/uploads\/sites\/5\/2023\/06\/image3.png\" alt=\"\" class=\"wp-image-229\" srcset=\"https:\/\/logbooks.ifosim.org\/finesse\/wp-content\/uploads\/sites\/5\/2023\/06\/image3.png 1018w, https:\/\/logbooks.ifosim.org\/finesse\/wp-content\/uploads\/sites\/5\/2023\/06\/image3-300x88.png 300w, https:\/\/logbooks.ifosim.org\/finesse\/wp-content\/uploads\/sites\/5\/2023\/06\/image3-768x224.png 768w\" sizes=\"auto, (max-width: 1018px) 100vw, 1018px\" \/><\/figure>\n\n\n\n<p>Notice the different use of quotation marks. The results are equivalent. The same correspondence can be found for other actions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Both keywords refer to the same action which fulfills the same task: to sweep over some parameter, to compute all the detector outputs, to return a solution object with its result, and finally to reset all the values it has changed during the sweep. The xaxis is used in KatScript command. It can be parsed [&hellip;]<\/p>\n","protected":false},"author":88,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ssl_alp_hide_revisions":false,"footnotes":"","ssl_alp_hide_crossreferences_to":false},"categories":[1],"tags":[],"ssl-alp-coauthor":[58],"class_list":["post-212","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/posts\/212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/users\/88"}],"replies":[{"embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/comments?post=212"}],"version-history":[{"count":6,"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/posts\/212\/revisions"}],"predecessor-version":[{"id":231,"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/posts\/212\/revisions\/231"}],"wp:attachment":[{"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/media?parent=212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/categories?post=212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/tags?post=212"},{"taxonomy":"ssl-alp-coauthor","embeddable":true,"href":"https:\/\/logbooks.ifosim.org\/finesse\/wp-json\/wp\/v2\/ssl-alp-coauthor?post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}