{"id":535,"date":"2020-09-17T13:15:53","date_gmt":"2020-09-17T13:15:53","guid":{"rendered":"https:\/\/dyna.neel.cnrs.fr\/?page_id=535"},"modified":"2025-11-27T16:51:54","modified_gmt":"2025-11-27T15:51:54","slug":"downloads","status":"publish","type":"page","link":"https:\/\/dyna.neel.cnrs.fr\/index.php\/downloads\/","title":{"rendered":"Download -> Install -> Recycle"},"content":{"rendered":"\n<p class=\"has-light-gray-color has-blue-background-color has-text-color has-background\">Download<\/p>\n\n\n\n<figure class=\"wp-block-table alignleft is-style-regular\"><table class=\"has-background\" style=\"background-color:#e9fbe5\"><thead><tr><th><\/th><th class=\"has-text-align-left\" data-align=\"left\">Python<\/th><th>Matlab<\/th><\/tr><\/thead><tbody><tr><td><strong>Downloads<\/strong> <\/td><td class=\"has-text-align-left\" data-align=\"left\">December 2025<br><a href=\"https:\/\/gitlab.com\/dynadevgroup\/Dyna\" target=\"_blank\" rel=\"noreferrer noopener\">5.0 beta on git<\/a><\/td><td>Novembre 2020<br><a href=\"https:\/\/dyna.neel.cnrs.fr\/wp-content\/uploads\/2020\/11\/DynaMatlabDist_3_18.zip\">Matlab Version<\/a><\/td><\/tr><tr><td><strong>tested with<\/strong><\/td><td class=\"has-text-align-left\" data-align=\"left\">Python 3.9.13<br>PyQt5 == 5.15.6<br>matplotlib == 3.5.2<br>numpy == 1.22.4<br>scipy == 1.8.1<\/td><td><\/td><\/tr><tr><td><strong>recent features<\/strong><\/td><td class=\"has-text-align-left\" data-align=\"left\">+ several fitting algorithms<\/td><td><\/td><\/tr><tr><td><strong>in development stage<\/strong><\/td><td class=\"has-text-align-left\" data-align=\"left\">+ Kerr and Faraday effects, <br>in reflectivity and transmittivity<br>+ angular resolution<br>+ energy resolution<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted has-white-color has-white-background-color has-text-color has-background\">PytPython - Mac OS install (intel or M1 chips)hon code is under development. Matlab code is occasionally developed.<\/pre>\n\n\n\n<p class=\"has-light-gray-color has-blue-background-color has-text-color has-background has-link-color wp-elements-73117d05fd350d86957742bc1f2a0b3c\">run<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-white-background-color has-background\"> .\/start.py\n<\/pre>\n\n\n\n<p class=\"has-white-color has-blue-background-color has-text-color has-background\">Python &#8211; Mac OS install (intel or M1 chips)<\/p>\n\n\n\n<p>(1) <strong>Python 3 is installed using <a rel=\"noreferrer noopener\" href=\"https:\/\/brew.sh\/\" target=\"_blank\">brew<\/a><\/strong> <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>brew install python@<\/code>3<\/pre>\n\n\n\n<p>(2) <strong>Create a <a rel=\"noreferrer noopener\" href=\"https:\/\/docs.python.org\/3\/library\/venv.html\" target=\"_blank\">virtual environment <\/a><\/strong>with :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python3 -m venv dyna-env<\/pre>\n\n\n\n<p>A virtual environment is a good idea to keep dyna in its own environment and avoiding conflicting libraries installed by other python programs.<\/p>\n\n\n\n<p>(3) <strong>Activate the new python environment :<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">source dyna-env\/bin\/activate<\/pre>\n\n\n\n<p>Now you are in a isolated dedicated python environment (your terminal prompt might show &#8216;(dyna-env)&#8217;).<\/p>\n\n\n\n<p>(4) <strong>Install the required libraries<\/strong> by typing : <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dyna-env\/bin\/pip install -r requirements.txt<\/pre>\n\n\n\n<p>The file &#8216;requirements.txt&#8217; is in the Src directory. Note that if there is no compiled libraries for your platform, the pip program will compile it, which can take some time. It typically occurs  for the PyQt5 library on the M1 chip from Apple, as of June 2022.<\/p>\n\n\n\n<p class=\"has-white-color has-blue-background-color has-text-color has-background\">Windows and Anaconda<\/p>\n\n\n\n<p>Dyna was installed on windows within the anaconda environment. <\/p>\n\n\n\n<p>(1) <strong>Create a virtual environment : <\/strong><\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<pre class=\"wp-block-preformatted\">conda create -n env_dyna python=3.8.8\nconda activate env_dyna&nbsp;<\/pre>\n<\/div><\/div>\n\n\n\n<p>(2) Install the required libraries, from the Src directory, where the &#8216;requirements.txt&#8217; file is, type : <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pip install -r requirements.txt&nbsp;<\/pre>\n\n\n\n<p>Note that there might be some errors related to path, changing \/ for \/\/ at some occurrences is a momentary solution.<\/p>\n\n\n\n<p class=\"has-light-gray-color has-blue-background-color has-text-color has-background\">Mac OS app<\/p>\n\n\n\n<p>Request a Mac OS App. Mac OS App can be built as a stand-alone app. It comes with all the needed libraries. If your Mac complains that the app is from an unknown developer : use ctrl+double click to override your Mac security settings.<\/p>\n\n\n\n<p class=\"has-light-gray-color has-blue-background-color has-text-color has-background\">Recycle <\/p>\n\n\n\n<p>Dyna&#8217;s code is open, free (and soonly fully documented): do not hesitate to recycle !<\/p>\n\n\n\n<p>Dyna&#8217;s code has been used in <a href=\"https:\/\/udkm1dsim.readthedocs.io\/en\/latest\/examples\/dynamical_magnetic_xray.html\">udkm1dsim<\/a> at Max-Born-Institute in Berlin.<\/p>\n\n\n\n<p class=\"has-white-color has-blue-background-color has-text-color has-background\">Git<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Dyna is on GitLab under the name <a href=\"https:\/\/gitlab.com\/dynadevgroup\/Dyna\">DynaDevGroup<\/a> !<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Download Python Matlab Downloads December 20255.0 beta on git Novembre 2020Matlab Version tested with Python 3.9.13PyQt5 == 5.15.6matplotlib == 3.5.2numpy == 1.22.4scipy == 1.8.1 recent features + several fitting algorithms in development stage + Kerr and Faraday effects, in reflectivity &hellip; <a href=\"https:\/\/dyna.neel.cnrs.fr\/index.php\/downloads\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-535","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/dyna.neel.cnrs.fr\/index.php\/wp-json\/wp\/v2\/pages\/535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dyna.neel.cnrs.fr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/dyna.neel.cnrs.fr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/dyna.neel.cnrs.fr\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/dyna.neel.cnrs.fr\/index.php\/wp-json\/wp\/v2\/comments?post=535"}],"version-history":[{"count":223,"href":"https:\/\/dyna.neel.cnrs.fr\/index.php\/wp-json\/wp\/v2\/pages\/535\/revisions"}],"predecessor-version":[{"id":989,"href":"https:\/\/dyna.neel.cnrs.fr\/index.php\/wp-json\/wp\/v2\/pages\/535\/revisions\/989"}],"wp:attachment":[{"href":"https:\/\/dyna.neel.cnrs.fr\/index.php\/wp-json\/wp\/v2\/media?parent=535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}