Changeset 4765
- Timestamp:
- Jan 13, 2021 10:44:23 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r4763 r4765 566 566 if mplv[0] == 3: 567 567 if mplv[1] >= 3: 568 page.set_box_aspect((1,1,1)) 568 #page.set_box_aspect((1,1,1)) # does not work in mpl 3.3.2. 569 page.figure.gca().set_box_aspect(1) # Is this correct? 569 570 elif mplv == [3,0,3]: 570 571 pass -
trunk/GSASIIscriptable.py
r4764 r4765 1108 1108 ======================================= 1109 1109 1110 It is assumed that most people using GSASIIscriptable will also want to use the GUI, noting that not all GSAS-II capabilities are not available by scripting (yet) and some would not make sense to implement without a graphical view of the data,for this the standard1110 It is assumed that most people using GSASIIscriptable will also want to use the GUI, for this the standard 1111 1111 `installation instructions <https://subversion.xray.aps.anl.gov/trac/pyGSAS#Installationinstructions>`_ should be followed. The GUI includes all files needed to run scriptable. 1112 1113 There may be times where it does make sense to install GSAS-II without all of the GUI components, for example on a compute server. As `described here 1114 <https://gsas-ii.readthedocs.io/en/latest/packages.html#scripting-requirements>'_ the minimal python requirements are only numpy and scipy. It is assumed that 1112 Noting that not all GSAS-II capabilities are not available 1113 by scripting -- yet. Even if the scripting API were to be fully completed, 1114 there will still be some things that GSAS-II does 1115 with the GUI would be almost impossible to implement without a 1116 interactive graphical view of the data. 1117 1118 Nonetheless, there may be times where it does make sense to install GSAS-II without all of the GUI components, for example on a compute server. As `described here 1119 <https://gsas-ii.readthedocs.io/en/latest/packages.html#scripting-requirements>`_ the minimal python requirements are only numpy and scipy. It is assumed that 1115 1120 anyone able to use scripting is well posed to install from the command line. 1116 1121 Below are example commands to install GSAS-II for use for scripting only. 1117 1122 1118 .. code-block:: bash 1119 1120 bash ~/Downloads/Miniconda3-latest-MacOSX-x86_64.sh -b -p /loc/pyg2script 1121 source /loc/pyg2script/bin/activate 1122 conda install numpy scipy matplotlib pillow h5py hdf5 svn 1123 svn co https://subversion.xray.aps.anl.gov/pyGSAS/trunk /loc/GSASII 1124 python /loc/GSASII/GSASIIscriptable.py 1125 1126 Some discussion on these commands follows. Note I have chosen to use the free 1123 Installing a minimal Python configuration: Note I have chosen below 1124 to use the free 1127 1125 miniconda installer from Anaconda, Inc., but there are also plenty of 1128 1126 other ways to install Python, Numpy and Scipy on Linux, Windows and MacOS. … … 1130 1128 (and perhaps others) as supplied by the Linux dist (``apt-get`` etc.). 1131 1129 1132 * the 1st command (bash) assumes that the appropriate version of Miniconda has been downloaded from https://docs.conda.io/en/latest/miniconda.html and ``/loc/pyg2script`` is where I have selected for python to be installed. You might want to use ``~/pyg2script``. 1130 .. code-block:: bash 1131 1132 bash ~/Downloads/Miniconda3-latest-<platform>-x86_64.sh -b -p /loc/pyg2script 1133 source /loc/pyg2script/bin/activate 1134 conda install numpy scipy matplotlib pillow h5py hdf5 svn 1135 1136 Some discussion on these commands follows: 1137 1138 * the 1st command (bash) assumes that the appropriate version of Miniconda has been downloaded from https://docs.conda.io/en/latest/miniconda.html and ``/loc/pyg2script`` is where I have selected for python to be installed. You might want to use something like ``~/pyg2script``. 1133 1139 * the 2nd command (source) is needed to access Python with miniconda. 1134 1140 * the 3rd command (conda) installs all possible packages that might be used by scripting, but matplotlib, pillow, and hdf5 are not commonly needed and could be omitted. The svn package is not needed (for example on Linux) where this has been installed in another way. 1135 * the 4th command (svn) is used to download the GSAS-II software. ``/loc/GSASII`` is the location where I decided to install the software. 1136 * the 5th command (python) is used to invoke GSAS-II scriptable for the first time, which is needed to load the binary files from the server. 1141 1142 Once svn and Python has been installed and is in the path, use these commands to install GSAS-II: 1143 1144 .. code-block:: bash 1145 1146 svn co https://subversion.xray.aps.anl.gov/pyGSAS/trunk /loc/GSASII 1147 python /loc/GSASII/GSASIIscriptable.py 1148 1149 Notes on these commands: 1150 1151 * the 1st command (svn) is used to download the GSAS-II software. ``/loc/GSASII`` is the location where I decided to install the software. You can select something different. 1152 * the 2nd command (python) is used to invoke GSAS-II scriptable for the first time, which is needed to load the binary files from the server. 1137 1153 1138 1154 =======================================
Note: See TracChangeset
for help on using the changeset viewer.