<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:35:47 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>[INSTRM-1466] use safe_load() to read a yaml file</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-1466</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;I needed to edit a file in &lt;tt&gt;ics_cobraCharmer&lt;/tt&gt; as follows to load a yaml file with PyYAML.&lt;/p&gt;

&lt;p&gt;&#160;&lt;br/&gt;
&amp;#8212; ics_cobraCharmer/python/ics/cobraCharmer/utils/orig.butler.py	2021-11-19 17:01:27.507710048 -1000&lt;br/&gt;
+++ ics_cobraCharmer/python/ics/cobraCharmer/utils/butler.py	2021-11-19 17:03:45.186142846 -1000&lt;br/&gt;
@@ -230,7 +230,7 @@&lt;br/&gt;
     &quot;&quot;&quot;&lt;br/&gt;
     yamlPath = configPathForPfi(version=version, rootDir=rootDir)&lt;br/&gt;
     with open(yamlPath, mode=&apos;rt&apos;) as yamlFile:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;config = yaml.load(yamlFile)&lt;br/&gt;
+        config = yaml.safe_load(yamlFile)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;     return [c.strip() for c in config&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;modules&amp;#39;&amp;#93;&lt;/span&gt;]&lt;br/&gt;
&#160;&lt;/p&gt;

&lt;p&gt;I think this is due to an additional requirement for PyYAML 5.1+.&#160; The above modification is the easist one, but there are various ways to specify a loader explicitly in their web site.&lt;/p&gt;

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

&lt;p&gt;&lt;a href=&quot;https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="18372">INSTRM-1466</key>
            <summary>use safe_load() to read a yaml file</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="cloomis">cloomis</assignee>
                                    <reporter username="monodera">monodera</reporter>
                        <labels>
                            <label>EngRun</label>
                    </labels>
                <created>Sat, 20 Nov 2021 05:14:42 +0000</created>
                <updated>Mon, 30 Oct 2023 18:37:35 +0000</updated>
                            <resolved>Mon, 30 Oct 2023 18:37:35 +0000</resolved>
                                                                    <component>ics_cobraCharmer</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                            <comment id="25698" author="chihyi" created="Wed, 8 Dec 2021 02:38:30 +0000"  >&lt;p&gt;Craig is the person who wrote the butler module. He should know better than me about how to handle this issue.&lt;/p&gt;</comment>
                            <comment id="35675" author="monodera" created="Mon, 30 Oct 2023 06:58:44 +0000"  >&lt;p&gt;I made a PR. It would be great if you could have a look.&lt;/p&gt;

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

&lt;p&gt;&lt;a href=&quot;https://github.com/Subaru-PFS/ics_cobraCharmer/pull/14&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://github.com/Subaru-PFS/ics_cobraCharmer/pull/14&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="35677" author="monodera" created="Mon, 30 Oct 2023 18:37:35 +0000"  >&lt;p&gt;Merged to master&lt;/p&gt;

&lt;p&gt;&#160;&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|zzsx5w:</customfieldvalue>

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