<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — python module use]]></title>
		<link>http://forums.approximatrix.com/viewtopic.php?id=993</link>
		<atom:link href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=993&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in python module use.]]></description>
		<lastBuildDate>Sat, 06 Sep 2025 13:33:34 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: python module use]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4490#p4490</link>
			<description><![CDATA[<p>Thanks for the help, it looks like the simple answer is Forget It.</p>]]></description>
			<author><![CDATA[null@example.com (larryd)]]></author>
			<pubDate>Sat, 06 Sep 2025 13:33:34 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4490#p4490</guid>
		</item>
		<item>
			<title><![CDATA[Re: python module use]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4489#p4489</link>
			<description><![CDATA[<p>Of course you can interface Python and Fortran, but the process isn&#039;t trivial.&nbsp; In your case, it sounds like you&#039;d like to have a Fortran &quot;primary&quot; GUI program that is using the Python interface to the Rodeostat device.&nbsp; That situation might be tricky because, normally, people are working in the opposite direction (Python calling Fortran for speed reasons).&nbsp; </p><p>There appears to be a promising library <a href="https://github.com/nbren12/call_py_fort">call_py_fort</a> that allows calling Python routines from Fortran.&nbsp; It might be tricky here too, though, because you really want to hold a Python object, in your case a <a href="https://iorodeo.github.io/iorodeo-potentiostat-docs-build/getting_started.html#creating-a-device-object">Potentiostat</a> object, in your Fortran program to pass back and forth.&nbsp; The object would be opaque to Fortran, but Python would be able to understand it.&nbsp; </p><p>Another library that might work better is <a href="https://github.com/ylikx/forpy">ForPy</a> that seems to be a bit less numerical-calculation-specific.&nbsp; It appears to handle passing opaque objects back to Fortran.&nbsp; However, it looks a bit less maintained.&nbsp; </p><p>Neither solution is particularly pleasant because you&#039;re attempting to interact with Python&#039;s interpreter from a compiled program.&nbsp; Some reading suggests (and I might lean this way too) simply running Fortran&#039;s <strong>EXECUTE_COMMAND_LINE</strong> to call Python scripts to do what you want.&nbsp; It&#039;s another alternative that avoids the possible nightmare of trying to interact with the Python shared libraries directly, but it would require quite a bit of Python programming as well to provide a command-line interface to everything you want to do.</p><p>Sorry if this wasn&#039;t the solution you were hoping for, but interfacing disparate languages is rarely simple.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 05 Sep 2025 14:01:23 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4489#p4489</guid>
		</item>
		<item>
			<title><![CDATA[Re: python module use]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4488#p4488</link>
			<description><![CDATA[<p>We have an inexpensive potentiostat that comes with a Python module software interface for control and data acquisition. I want to write an overall experiment control and data processing program with a GUI interface. I am much happier working in Simply Fortran than in Python - I could detail why if you&#039;d like.&nbsp; My hope is that I can somehow &quot;import&quot; the Python module into a Fortran program - sending instructions and collecting data.&nbsp; &nbsp; Reference:&nbsp; The Rodeostat potentiostat manufactured by Iorodeo.<br />Thanks</p>]]></description>
			<author><![CDATA[null@example.com (larryd)]]></author>
			<pubDate>Fri, 05 Sep 2025 11:58:58 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4488#p4488</guid>
		</item>
		<item>
			<title><![CDATA[Re: python module use]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4487#p4487</link>
			<description><![CDATA[<p>It depends on what you mean by &quot;using some Python modules.&quot;&nbsp; Are you asking about integrating Fortran with Python?</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 05 Sep 2025 11:29:01 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4487#p4487</guid>
		</item>
		<item>
			<title><![CDATA[python module use]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=4486#p4486</link>
			<description><![CDATA[<p>Is there any information or help on using some Python modules in Simply Fortran? Is it even possible?</p>]]></description>
			<author><![CDATA[null@example.com (larryd)]]></author>
			<pubDate>Thu, 04 Sep 2025 17:05:48 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=4486#p4486</guid>
		</item>
	</channel>
</rss>
