<!-- 
RSS generated by JIRA (8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b) at Sat Feb 10 16:38:23 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-1690] Fix opscore.protocol.types formatting for python 3.8+</title>
                <link>https://pfspipe.ipmu.jp/jira/browse/INSTRM-1690</link>
                <project id="10300" key="INSTRM">Instrument control development</project>
                    <description>&lt;p&gt;python 3.8 changes the way class &lt;tt&gt;_&lt;em&gt;str&lt;/em&gt;&lt;em&gt;&lt;/tt&gt; methods are resolved. For class objects, &lt;tt&gt;obj.&lt;/em&gt;&lt;em&gt;str&lt;/em&gt;&lt;em&gt;&lt;/tt&gt; now resolves to &lt;tt&gt;object.&lt;/em&gt;&lt;em&gt;str&lt;/em&gt;&lt;em&gt;&lt;/tt&gt;; for instances &lt;tt&gt;obj.&lt;/em&gt;&lt;em&gt;str&lt;/em&gt;&lt;em&gt;&lt;/tt&gt; resolves to &lt;tt&gt;obj.&lt;/em&gt;&lt;em&gt;class&lt;/em&gt;&lt;em&gt;.&lt;/em&gt;&lt;em&gt;str&lt;/em&gt;_&lt;/tt&gt;, which is what used to happen in both cases. &lt;/p&gt;

&lt;p&gt;Because of the way metaclasses are used in opscore types, the basic opscore.protocol.types (Int, Float, etc) use the class &lt;tt&gt;_&lt;em&gt;str&lt;/em&gt;&lt;em&gt;&lt;/tt&gt; under normal circumstances, which now resolves to &lt;tt&gt;object.&lt;/em&gt;&lt;em&gt;str&lt;/em&gt;&lt;em&gt;&lt;/tt&gt; instead of, say &lt;tt&gt;float.&lt;/em&gt;&lt;em&gt;str&lt;/em&gt;_&lt;/tt&gt;. And which returns, say, &quot;Float(1.23)&quot; instead of the desired &quot;1.23&quot;.&lt;/p&gt;

&lt;p&gt;This is a problem when formatting MHS typed objects.&lt;/p&gt;

&lt;p&gt;I &lt;b&gt;think&lt;/b&gt; the answer is simply to instantiate the base object in _&lt;em&gt;str&lt;/em&gt;_(), except for &lt;tt&gt;String&lt;/tt&gt; (i.e. &lt;tt&gt;baseType=str&lt;/tt&gt;) objects. Testing now.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="22929">INSTRM-1690</key>
            <summary>Fix opscore.protocol.types formatting for python 3.8+</summary>
                <type id="1" iconUrl="https://pfspipe.ipmu.jp/jira/secure/viewavatar?size=xsmall&amp;avatarId=10503&amp;avatarType=issuetype">Bug</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="cloomis">cloomis</reporter>
                        <labels>
                    </labels>
                <created>Fri, 2 Sep 2022 20:18:00 +0000</created>
                <updated>Mon, 5 Sep 2022 16:14:55 +0000</updated>
                            <resolved>Mon, 5 Sep 2022 16:14:55 +0000</resolved>
                                                                    <component>tron_actorcore</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                <comments>
                            <comment id="31284" author="cloomis" created="Mon, 5 Sep 2022 16:14:55 +0000"  >&lt;p&gt;Merged at e5e0516, tagged 2.4.4&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|zzsujr:</customfieldvalue>

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