{"id":82,"date":"2006-07-10T14:26:34","date_gmt":"2006-07-10T14:26:34","guid":{"rendered":"http:\/\/ahay.org\/blog\/?p=82"},"modified":"2015-09-10T12:17:12","modified_gmt":"2015-09-10T12:17:12","slug":"checking-parameters","status":"publish","type":"post","link":"https:\/\/ahay.org\/blog\/2006\/07\/10\/checking-parameters\/","title":{"rendered":"Checking parameters"},"content":{"rendered":"<p>It its now possible to check parameters for Madagascar programs in SCons flows using <strong>CHECKPAR<\/strong> option like this: <strong>scons CHECKPAR=y &lt;<em>target<\/em>><\/strong> Here is what happened when I first ran an example from <a href=\"\/RSF\/book\/rsf\/rsf\/tour_html\">rsftour<\/a>: <\/p>\n<div class=\"code-box\"><div class=\"code-title\"><i class=\"fa fa-code\"><\/i> <div class=\"pull-right\"><a href=\"#\" class=\"btn btn-default btn-xs toggle-code\" data-toggle=\"tooltip\" title=\"Toggle code\"><i class=\"fa fa-toggle-up\"><\/i><\/a><\/div><\/div><pre ><code>bash$ scons CHECKPAR=y \nscons: Reading SConscript files ... \nNo parameter \"n2\" in sfwindow \nFailed on \"window n2=10 min1=0.4 max1=0.8\"\n<\/code><\/pre><\/div>\n<p>After fixing self-documentation for <a href=\"\/RSF\/sfwindow.html\">sfwindow<\/a>: <\/p>\n<div class=\"code-box\"><div class=\"code-title\"><i class=\"fa fa-code\"><\/i> <div class=\"pull-right\"><a href=\"#\" class=\"btn btn-default btn-xs toggle-code\" data-toggle=\"tooltip\" title=\"Toggle code\"><i class=\"fa fa-toggle-up\"><\/i><\/a><\/div><\/div><pre ><code>bash$ scons CHECKPAR=y \nscons: Reading SConscript files ... \nNo parameter \"nc\" in sfwiggle \nFailed on \"wiggle transp=y poly=y yreverse=y pclip=100 nc=100 allpos=n \"\n<\/code><\/pre><\/div>\n<p>Fixing that one requires changing the <a href=\"\/RSF\/book\/rsf\/rsf\/rsftour.html\">SConstruct<\/a> file.<\/p>\n<p><strong>CHECKPAR<\/strong> is an experimental option and will be enhanced in the future to include parameter ranges and other safety checks. Another useful option is <a href=\"\/blog\/2005\/06\/03\/timing-the-execution\/\">TIMER<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It its now possible to check parameters for Madagascar programs in SCons flows using CHECKPAR option like this: scons CHECKPAR=y &lt;target> Here is what happened when I first ran an example from rsftour: bash$ scons CHECKPAR=y scons: Reading SConscript files &#8230; No parameter &#8220;n2&#8221; in sfwindow Failed on &#8220;window n2=10 min1=0.4 max1=0.8&#8221; After fixing self-documentation [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","activitypub_content_warning":"","activitypub_content_visibility":"local","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-82","post","type-post","status-publish","format-standard","hentry","category-examples"],"_links":{"self":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts\/82","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":3,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":22557,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/posts\/82\/revisions\/22557"}],"wp:attachment":[{"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahay.org\/blog\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}