<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 15:59:03 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-863] re-generate pfsConfig for blue and yellow bundles, ingest data again</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/PIPE2D-863</link>
                <project id="10002" key="PIPE2D">DRP 2-D Pipeline</project>
                    <description>&lt;p&gt;We have found that the expected illuminated fibers from bundle yellow and blue were incorrect. Now that the dummyCableB design has been fixed, we need to re-generate pfsConfig file and re-ingest the large dcb-21-fibers dataset (visit=51400..63009)&lt;/p&gt;</description>
                <environment></environment>
        <key id="16909">PIPE2D-863</key>
            <summary>re-generate pfsConfig for blue and yellow bundles, ingest data again</summary>
                <type id="3" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10518&amp;avatarType=issuetype">Task</type>
                                            <priority id="10000" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/priorities/medium.svg">Normal</priority>
                        <status id="10002" iconUrl="https://pfspipe.ipmu.jp/jira/images/icons/statuses/generic.png" description="The issue is resolved, reviewed, and merged">Done</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="arnaud.lefur">arnaud.lefur</assignee>
                                    <reporter username="arnaud.lefur">arnaud.lefur</reporter>
                        <labels>
                    </labels>
                <created>Mon, 28 Jun 2021 11:13:48 +0000</created>
                <updated>Mon, 28 Jun 2021 19:31:24 +0000</updated>
                            <resolved>Mon, 28 Jun 2021 19:31:24 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="21573" author="arnaud.lefur" created="Mon, 28 Jun 2021 12:07:22 +0000"  >&lt;p&gt;the 21-fibers and 23-fibers design files has been re-generated.&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;(lsst-scipipe) [afur@tiger2-sumire w.2021.26]$ makeDummyCableBDesign.py --directory /projects/HSC/PFS/Subaru/pfsConfig orange blue yellow                                                      
WARNING: VerifyWarning: Card is too long, comment will be truncated. [astropy.io.fits.card]                                                                                                    
Wrote pfsDesign-0x0000100000000101.fits                                                                                                                                                        
(lsst-scipipe) [afur@tiger2-sumire w.2021.26]$ makeDummyCableBDesign.py --directory /projects/HSC/PFS/Subaru/pfsConfig orange blue yellow red2 red7                                            WARNING: VerifyWarning: Card is too long, comment will be truncated. [astropy.io.fits.card]                                                                                                    
Wrote pfsDesign-0x0000101000010101.fits   
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I tried to re-ingest the data, but fails with &lt;em&gt;already ingested&lt;/em&gt;&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;(lsst-scipipe) [afur@tiger2-sumire ~]$ ingestPfsImages.py /tigress/HSC/PFS/Subaru/ --pfsConfigDir=/tigress/HSC/PFS/Subaru/pfsConfig --mode=link /tigress/HSC/PFS/Subaru/raw/2021-05-12/sps/PFSA051* --config clobber=True
CameraMapper INFO: Loading exposure registry from /tigress/HSC/PFS/Subaru/registry.sqlite3
ingestPfs WARN: /tigress/HSC/PFS/Subaru/raw/2021-05-12/sps/PFSA05139411.fits: already ingested: {&apos;site&apos;: &apos;S&apos;, &apos;category&apos;: &apos;A&apos;, &apos;visit&apos;: 51394, &apos;filter&apos;: &apos;b&apos;, &apos;arm&apos;: &apos;b&apos;, &apos;spectrograph&apos;: 1, &apos;ccd&apos;: 0, &apos;expTime&apos;: 8.0, &apos;taiObs&apos;: &apos;2021-05-12T20:51:36.570&apos;, &apos;field&apos;: &apos;SEEING_TEST&apos;, &apos;dataType&apos;: &apos;COMPARISON&apos;, &apos;pfsDesignId&apos;: 1099528409104, &apos;slitOffset&apos;: 0.0, &apos;lamps&apos;: &apos;Ar&apos;, &apos;dateObs&apos;: &apos;2021-05-12&apos;, &apos;dither&apos;: -0.0, &apos;shift&apos;: -1e-05, &apos;focus&apos;: 0.0, &apos;attenuator&apos;: -9998.0, &apos;photodiode&apos;: -9998.0}
ingestPfs INFO: /tigress/HSC/PFS/Subaru/raw/2021-05-12/sps/PFSA05139411.fits --&amp;lt;link&amp;gt;--&amp;gt; /tigress/HSC/PFS/Subaru/2021-05-12/PFSA051394b1.fits
Traceback (most recent call last):
  File &quot;/tigress/HSC/PFS/stack/20190925/stack/miniconda3-4.5.12-1172c30/Linux64/obs_pfs/w.2021.26/bin/ingestPfsImages.py&quot;, line 3, in &amp;lt;module&amp;gt;
    PfsIngestTask.parseAndRun()
  File &quot;/tigress/HSC/PFS/stack/20190925/stack/miniconda3-4.5.12-1172c30/Linux64/pipe_tasks/18.1.0/python/lsst/pipe/tasks/ingest.py&quot;, line 416, in parseAndRun
    task.run(args)
  File &quot;/tigress/HSC/PFS/stack/20190925/stack/miniconda3-4.5.12-1172c30/Linux64/pipe_tasks/18.1.0/python/lsst/pipe/tasks/ingest.py&quot;, line 553, in run
    self.register.addRow(registry, info, dryrun=args.dryrun, create=args.create)
  File &quot;/tigress/HSC/PFS/stack/20190925/stack/miniconda3-4.5.12-1172c30/Linux64/obs_pfs/w.2021.26/python/lsst/obs/pfs/ingest.py&quot;, line 439, in addRow
    conn.cursor().execute(sql, values)
sqlite3.IntegrityError: UNIQUE constraint failed: raw.site, raw.category, raw.visit, raw.filter, raw.arm, raw.spectrograph, raw.pfsDesignId
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href=&quot;https://pfspipe.ipmu.jp/jira/secure/ViewProfile.jspa?name=price&quot; class=&quot;user-hover&quot; rel=&quot;price&quot;&gt;price&lt;/a&gt; how do you usually proceed ?&lt;/p&gt;</comment>
                            <comment id="21574" author="price" created="Mon, 28 Jun 2021 13:12:48 +0000"  >&lt;p&gt;Are you changing the &lt;tt&gt;pfsDesignId&lt;/tt&gt;? If so, we&apos;d need to delete the ingested rows by hand. Otherwise, &lt;tt&gt;--config clobber=True register.ignore=True&lt;/tt&gt; is what you want.&lt;/p&gt;</comment>
                            <comment id="21575" author="arnaud.lefur" created="Mon, 28 Jun 2021 14:01:03 +0000"  >&lt;p&gt;the pfsDesignId value is the same but the interpretation from bundle name to fiberId is different.&lt;br/&gt;
So I went ahead and tried : &lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;ingestPfsImages.py /tigress/HSC/PFS/Subaru/ --pfsConfigDir=/tigress/HSC/PFS/Subaru /pfsConfig --mode=link /tigress/HSC/PFS/Subaru/raw/2021-05-13/sps/PFSA0514371* --config clobber=True register.ignore=True
CameraMapper INFO: Loading exposure registry from /tigress/HSC/PFS/Subaru/registry.sqlite3                                                                                                     
ingestPfs INFO: /tigress/HSC/PFS/Subaru/raw/2021-05-13/sps/PFSA05143711.fits --&amp;lt;link&amp;gt;--&amp;gt; /tigress/HSC/PFS/Subaru/2021-05-13/PFSA051437b1.fits                                                
ingestPfs INFO: /tigress/HSC/PFS/Subaru/raw/2021-05-13/sps/PFSA05143712.fits --&amp;lt;link&amp;gt;--&amp;gt; /tigress/HSC/PFS/Subaru/2021-05-13/PFSA051437r1.fits 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But the pfsConfig from the butler still looks wrong :&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;repoRoot = &quot;/tigress/HSC/PFS/Subaru&quot;
butler = dafPersist.Butler(repoRoot)
pfsConfig = butler.get(&apos;pfsConfig&apos;, dataId, visit=51437)
pfsConfig.fiberId[pfsConfig.fiberId&amp;lt;652] 
   array([ 12,  32,  60, 110, 111, 161, 210, 223, 259, 289, 341, 347, 400, 
               418, 449, 466, 518, 545, 593, 620, 641], dtype=int32)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
</comment>
                            <comment id="21576" author="price" created="Mon, 28 Jun 2021 14:11:27 +0000"  >&lt;p&gt;I&apos;m guessing there&apos;s no facility to clobber the &lt;tt&gt;pfsConfig&lt;/tt&gt;. That&apos;s something I could add, but it&apos;s probably not worth it given that we&apos;re going to switch the middleware soon. Can you delete the generated &lt;tt&gt;pfsConfig&lt;/tt&gt; files (the originals, not the links) by hand?&lt;/p&gt;</comment>
                            <comment id="21586" author="arnaud.lefur" created="Mon, 28 Jun 2021 19:31:24 +0000"  >&lt;p&gt;okay just did it.&lt;br/&gt;
I had to do it twice because I badly specified the --pfsConfigDir in the first place.&lt;br/&gt;
--pfsConfigDir=/tigress/HSC/PFS/Subaru/pfsConfig instead of --pfsConfigDir=/tigress/HSC/PFS/Subaru/drp/pfsDesign&lt;/p&gt;

&lt;p&gt;fiberIds should now be correctly identified.&lt;/p&gt;</comment>
                    </comments>
                    <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|02qpt6:508yl0chzzy0000026m</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>