<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:55:35 JST 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>PFS-JIRA</title>
    <link>https://pfspipe.ipmu.jp/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.3.4</version>
        <build-number>803005</build-number>
        <build-date>13-09-2019</build-date>
    </build-info>


<item>
            <title>[PIPE2D-630] Deliver algorithms to handle FRD extraction</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-630</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;The purpose of this ticket is to create a function that takes in as inputs an image to solve for an FRD, a list of images with known FRD, and a list of FRDs corresponding to the images to output an FRD, incorporating the work that I have developed in &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-637&quot; title=&quot;FRD extraction function for in-focus PSFs with noise&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-637&quot;&gt;PIPE2D-637&lt;/a&gt;. This function will be well commented regarding inputs, process, and outputs as well as pass errors/warnings if data does not match expected format. This is planned to take 2 weeks, from February 22 -March 8th.&#160; This code is to be uploaded to my Github afterward for use in the project. &#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;------&lt;/p&gt;

&lt;p&gt;Old description:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Much of my work to this point has been investigatory in nature, focused on measuring variations in PSFs at varying FRDs across the detector at varying parameters. However, what the project needs is code that determines FRD in the current PSFs based on some previously measured FRDs at a base configuration. This will compile work on &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-627&quot; title=&quot;Characterize changes in FRD from near-focus or in-focus images&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-627&quot;&gt;PIPE2D-627&lt;/a&gt;, &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-628&quot; title=&quot;Develop algorithms to be able to measure and predict the FRD as a function of Cobra position&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-628&quot;&gt;PIPE2D-628&lt;/a&gt;, and &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-629&quot; title=&quot;Better understand the hysteresis in the FRD with Cobra motion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-629&quot;&gt;&lt;del&gt;PIPE2D-629&lt;/del&gt;&lt;/a&gt; into a useful deliverable.&lt;/p&gt;

&lt;p&gt;A working first version of this code (class/function) is to be delivered by the end of the year.&lt;/p&gt;</description>
                <environment></environment>
        <key id="14704">PIPE2D-630</key>
            <summary>Deliver algorithms to handle FRD extraction</summary>
                <type id="10001" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10515&amp;avatarType=issuetype">Story</type>
                                            <priority id="10000" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/medium.svg">Normal</priority>
                        <status id="3" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/inprogress.png" description="This issue is being actively worked on at the moment by the assignee.">In Progress</status>
                    <statusCategory id="4" key="indeterminate" colorName="yellow"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="bbelland">Brent Belland</assignee>
                                    <reporter username="bbelland">Brent Belland</reporter>
                        <labels>
                    </labels>
                <created>Mon, 31 Aug 2020 23:29:47 +0000</created>
                <updated>Fri, 13 Jan 2023 01:31:38 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="17823" author="bbelland" created="Thu, 1 Oct 2020 17:00:38 +0000"  >&lt;p&gt;Currently a function is in development that solves for FRD of an arbitrarily centered PSF generated from Neven&apos;s code, using the scipy shgo optimizer (&lt;a href=&quot;https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.shgo.html&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.shgo.html&lt;/a&gt;). The current version of this code solves for FRD with plus/minus 0.2 mrad error with about 30 iterations. I am currently investigating how to reduce iteration time using the insight from my previous FRD analysis&lt;/p&gt;</comment>
                            <comment id="18861" author="bbelland" created="Mon, 15 Mar 2021 23:51:27 +0000"  >&lt;p&gt;The current version of my code is available at &lt;a href=&quot;https://github.com/bbelland/FRDtesting&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/bbelland/FRDtesting&lt;/a&gt;. This code can run and solve for an FRD, but while comparing this code to my previous work&apos;s precision, I found that the uncertainties are larger than expected from my previous FRD analysis. I am working to address this issue to demonstrate FRDs can be solved for properly.&lt;/p&gt;</comment>
                            <comment id="19062" author="ncaplar" created="Mon, 29 Mar 2021 17:40:19 +0000"  >&lt;p&gt;My initial thoughts after testing code today:&lt;/p&gt;

&lt;p&gt;1. (minor issue) in&#160;FRDClass_TestNotebook&#160; variables are called ``knownFRDlist&apos;&apos;, ``imagelist&apos;&apos;, even thought the code demands them te be arrays and not lists.&lt;/p&gt;

&lt;p&gt;2. The uncertainty that is reported from the algorithm depends on the points that have been provided to the algorithm. I think it would be better to report where the interpolation crosses the limit. I.e., the reported uncertainty should not directly depend on the provided points, but one should estimate at which point the critical chi**2 values is reached.&lt;/p&gt;

&lt;p&gt;3. ``uncertaintyrange&apos;&apos; variable returned by the algorithm is a single number, even though the distribution is nonsymmetric and reported uncertainty has different lower and upper bounds. I would assume that the&#160;``uncertaintyrange&apos;&apos; variable would therefore also be consisting of two numbers.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;4.&#160; (further thoughts, not critical to this code) - at this point the code return basically what image that is provided has the best fit - i.e., the result depends critically on the density of sampling. It might be beneficial to try to extrapolate the trends as one is approaching to the correct solution from the left and the right side to extrapolate what the correct answer might be, or at least provide the user with a hint for the second round of sampling, i.e., in which range to simulate more images.&#160;&lt;/p&gt;</comment>
                            <comment id="19069" author="bbelland" created="Tue, 30 Mar 2021 00:44:42 +0000"  >&lt;p&gt;I&apos;m addressing the first three points, and they&apos;re almost all done.&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Variable names have been renamed to reflect that they are arrays. This should be done now.&lt;/li&gt;
	&lt;li&gt;I&apos;ve added an interpolation function as suggested. I need to test this to make sure it works generally though.&lt;/li&gt;
	&lt;li&gt;Uncertaintyrange has been changed from the difference between the lower and upper FRD ranges to a tuple with the (lowerFRD, upperFRD) at the chi squared limit, to reflect the fact that the there tends to be a larger uncertainty toward larger FRD values than lower FRD values as you indicated.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;I&apos;ll be thinking about how to address point 4 but focusing on &lt;a href=&quot;https://pfspipe.ipmu.jp/jira/browse/PIPE2D-623&quot; title=&quot;Angular error extraction from PSFs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PIPE2D-623&quot;&gt;PIPE2D-623&lt;/a&gt; as discussed in the telecom.&lt;/p&gt;</comment>
                            <comment id="19075" author="ncaplar" created="Wed, 31 Mar 2021 14:08:06 +0000"  >&lt;p&gt;Some further thoughts:&lt;/p&gt;

&lt;p&gt;1. I believe that the reason why you code creating images is quite slow is due to the fact you are creating 50x50 images when creating focused images. As we discussed few times, one can use smaller images which will be faster and also more realistic as in real life we will be using the code on relatively small post-stamp images (probably 10x10 or even less).&lt;br/&gt;
2. As a first idea to understand if the sampling has been sufficient, one can measure the gradient of the points around the deduced best solution to measure if the result would likely improve by denser sampling. If the nearby sampled points have similar quality the improved sampling would likely not improve solution much, but improved sampling would be beneficial if this gradient analysis shows that the algorithm has not reached stable solution.&#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="14802">PIPE2D-632</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14907">PIPE2D-637</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14906">PIPE2D-636</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14908">PIPE2D-638</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="15573">PIPE2D-824</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="14702">PIPE2D-628</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14701">PIPE2D-627</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14703">PIPE2D-629</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_10500" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|zzst9o:zzw</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10005" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="93">2DDRP-2021 A</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10002" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>30.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                        </customfields>
    </item>
</channel>
</rss>