Changeset 3444492 in sasview
- Timestamp:
- Apr 5, 2017 11:42:59 AM (8 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 54557b5
- Parents:
- 0d8ee36 (diff), 98c44f3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 1 added
- 1 deleted
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
.travis.yml
r4636f57 rbb1cb38 1 # Test Travis CL2 3 1 language: python 4 5 2 matrix: 6 3 include: 7 - os: linux 8 env: 9 - PY=2.7 10 - NUMPYSPEC=numpy 11 - os: osx 12 language: generic 13 env: 14 - PY=2.7 15 - NUMPYSPEC=numpy 16 17 # whitelist 4 - os: linux 5 env: 6 - PY=2.7 7 - NUMPYSPEC=numpy 8 - os: osx 9 language: generic 10 env: 11 - PY=2.7 12 - NUMPYSPEC=numpy 18 13 branches: 19 14 only: 20 - master 21 15 - master 22 16 addons: 23 17 apt: 24 18 packages: 25 - opencl-headers 26 - fglrx 27 - libblas-dev 28 - libatlas-dev 29 - libatlas-base-dev 30 - liblapack-dev 31 - gfortran 32 - libhdf5-serial-dev 33 19 - opencl-headers 20 - fglrx 21 - libblas-dev 22 - libatlas-dev 23 - libatlas-base-dev 24 - liblapack-dev 25 - gfortran 26 - libhdf5-serial-dev 34 27 before_install: 35 - echo $TRAVIS_OS_NAME 36 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then 37 wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; 38 sudo apt-get update; sudo apt-get install python-pyopencl; 39 elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then 40 wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; 41 fi 42 43 - bash miniconda.sh -b -p $HOME/miniconda 44 - export PATH="$HOME/miniconda/bin:$PATH" 45 - hash -r 46 - conda update --yes conda 47 48 # Useful for debugging any issues with conda 49 - conda info -a 50 51 # could install other dependencies, but they're locked to specific 52 # versions in build/requirements.txt 53 - conda install --yes python=$PY $NUMPYSPEC scipy cython pylint wxpython 54 28 - echo $TRAVIS_OS_NAME 29 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh 30 -O miniconda.sh; sudo apt-get update; sudo apt-get install python-pyopencl; elif 31 [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh 32 -O miniconda.sh; fi 33 - bash miniconda.sh -b -p $HOME/miniconda 34 - export PATH="$HOME/miniconda/bin:$PATH" 35 - hash -r 36 - conda update --yes conda 37 - conda info -a 38 - conda install --yes python=$PY $NUMPYSPEC scipy cython pylint wxpython 55 39 install: 56 - pip install -r build_tools/requirements.txt 57 - pip install matplotlib 58 59 #before_script: 60 # - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then 61 # "export DISPLAY=:99.0"; "sh -e /etc/init.d/xvfb start"; sleep 3; # give xvfb some time to start 62 # fi 63 40 - pip install -r build_tools/requirements.txt 41 - pip install matplotlib 64 42 script: 65 - cd .. 66 # this should be the directory above the sasview directory, where we want to 67 # clone the sasmodels 68 - export WORKSPACE=$(pwd) 69 - git clone --depth=50 --branch=master https://github.com/SasView/sasmodels.git sasmodels 70 71 # required for documentation 72 - git clone --depth=50 --branch=master https://github.com/bumps/bumps.git 73 74 - ls -ltr 75 - if [ ! -d "utils" ]; then mkdir utils; fi 76 - /bin/sh -xe sasview/build_tools/travis_build.sh 77 - export LC_ALL=en_US.UTF-8 78 - export LANG=en_US.UTF-8 79 # - python setup.py docs; echo 0 80 # - python setup.py bdist_egg --skip-build 81 43 - cd .. 44 - export WORKSPACE=$(pwd) 45 - git clone --depth=50 --branch=master https://github.com/SasView/sasmodels.git sasmodels 46 - git clone --depth=50 --branch=master https://github.com/bumps/bumps.git 47 - ls -ltr 48 - if [ ! -d "utils" ]; then mkdir utils; fi 49 - /bin/sh -xe sasview/build_tools/travis_build.sh 50 - export LC_ALL=en_US.UTF-8 51 - export LANG=en_US.UTF-8 52 notifications: 53 slack: 54 secure: TlsEpZiMLmOOgnmdG0I/oB4tq3bbQYeBBQi6S5qLlkYE9EjUTbbfg7oz0JYUsQ56FAsdFR8zswpBsX7PebZerzrq0ZmvfHSiJhOFIdBfY5Nb7bmLW8/9pUNWV57ON/8Gw2fE5ytc7FgvCGR64yb2QISI/150SIUwvdL5HXTxRWI= -
src/sas/sasgui/guiframe/media/data_formats_help.rst
r48b8f6d r98c44f3 4 4 .. by S King, ISIS, during SasView CodeCamp-III in Feb 2015. 5 5 .. WG Bouwman, DUT, added during CodeCamp-V in Oct 2016 the SESANS data format 6 .. WG Bouwman, DUT, updated during CodeCamp-VI in Apr 2017 the SESANS data format 6 7 7 8 .. _Formats: … … 82 83 The file format has a list of name-value pairs at the top of the file which detail the general experimental parameters necessary for fitting and analyzing data. This list should contain all the information necessary for the file to be 'portable' between users. 83 84 84 Following the header is a 6column list of instrument experimental variables:85 Following the header is a 8 (only the first 4 are really needed) column list of instrument experimental variables: 85 86 86 87 - Spin echo length (z, in Angstroms) 88 - depolarization (:math:`log(P/P_0)/(lambda^2 * thickness)`, in Angstrom^-1 cm^-1) 89 - depolarization error in the same unit) (measurement error) 87 90 - Spin echo length error (:math:`\Delta`\ z, in Angstroms) (experimental resolution) 88 - Neutron wavelength (:math:`\lambda`, in Angstroms) (essential for ToF instruments)91 - Neutron wavelength (:math:`\lambda`, in Angstroms) 89 92 - Neutron wavelength error (:math:`\Delta \lambda`, in Angstroms) 90 93 - Normalized polarization (:math:`P/P_0`, unitless) … … 93 96 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 94 97 95 .. note:: This help document was last changed by Steve King, 07Oct201698 .. note:: This help document was last changed by Wim Bouwman, 05Apr2017 -
src/sas/sasgui/guiframe/local_perspectives/plotting/Plotter2D.py
r9a5097c r0d8ee36 359 359 if self.slicer.__class__.__name__ != "BoxSum": 360 360 wx_id = ids.next() 361 slicerpop.Append(wx_id, '&Edit Slicer Parameters') 361 name = '&Edit Slicer Parameters and Batch Slicing' 362 slicerpop.Append(wx_id, name) 362 363 wx.EVT_MENU(self, wx_id, self._onEditSlicer) 363 364 slicerpop.AppendSeparator() … … 530 531 531 532 """ 532 # #Clear current slicer533 # Clear current slicer 533 534 if not self.slicer == None: 534 535 self.slicer.clear() 535 # #Create a new slicer536 # Create a new slicer 536 537 self.slicer_z += 1 537 538 self.slicer = slicer(self, self.subplot, zorder=self.slicer_z) 538 539 self.subplot.set_ylim(self.data2D.ymin, self.data2D.ymax) 539 540 self.subplot.set_xlim(self.data2D.xmin, self.data2D.xmax) 540 # #Draw slicer541 # Draw slicer 541 542 self.update() 542 543 self.slicer.update() … … 570 571 npt = math.floor(npt) 571 572 from sas.sascalc.dataloader.manipulations import CircularAverage 572 # #compute the maximum radius of data2D573 # compute the maximum radius of data2D 573 574 self.qmax = max(math.fabs(self.data2D.xmax), 574 575 math.fabs(self.data2D.xmin)) … … 576 577 math.fabs(self.data2D.ymin)) 577 578 self.radius = math.sqrt(math.pow(self.qmax, 2) + math.pow(self.ymax, 2)) 578 # #Compute beam width579 # Compute beam width 579 580 bin_width = (self.qmax + self.qmax) / npt 580 # #Create data1D circular average of data2D581 # Create data1D circular average of data2D 581 582 Circle = CircularAverage(r_min=0, r_max=self.radius, 582 583 bin_width=bin_width) … … 597 598 new_plot.name = "Circ avg " + self.data2D.name 598 599 new_plot.source = self.data2D.source 599 # new_plot.info = self.data2D.info600 # new_plot.info = self.data2D.info 600 601 new_plot.interactive = True 601 602 new_plot.detector = self.data2D.detector 602 603 603 # #If the data file does not tell us what the axes are, just assume...604 # If the data file does not tell us what the axes are, just assume... 604 605 new_plot.xaxis("\\rm{Q}", "A^{-1}") 605 606 if hasattr(self.data2D, "scale") and \ … … 613 614 new_plot.id = "Circ avg " + self.data2D.name 614 615 new_plot.is_data = True 615 self.parent.update_theory(data_id=self.data2D.id, \ 616 theory=new_plot) 616 self.parent.update_theory(data_id=self.data2D.id, theory=new_plot) 617 617 wx.PostEvent(self.parent, 618 618 NewPlotEvent(plot=new_plot, title=new_plot.name)) … … 627 627 628 628 """ 629 if self.slicer !=None:630 from SlicerParametersimport SlicerParameterPanel629 if self.slicer is not None: 630 from parameters_panel_slicer import SlicerParameterPanel 631 631 dialog = SlicerParameterPanel(self, -1, "Slicer Parameters") 632 632 dialog.set_slicer(self.slicer.__class__.__name__, … … 666 666 params = self.slicer.get_params() 667 667 ## Create a new panel to display results of summation of Data2D 668 from slicerpanelimport SlicerPanel668 from parameters_panel_boxsum import SlicerPanel 669 669 win = MDIFrame(self.parent, None, 'None', (100, 200)) 670 670 new_panel = SlicerPanel(parent=win, id=-1, … … 717 717 Clear the slicer on the plot 718 718 """ 719 if not self.slicer ==None:719 if self.slicer is not None: 720 720 self.slicer.clear() 721 721 self.subplot.figure.canvas.draw() … … 733 733 """ 734 734 event_id = str(evt.GetId()) 735 if self.parent !=None:735 if self.parent is not None: 736 736 self._default_save_location = self.parent._default_save_location 737 737 default_name = self.plots[self.graph.selected_plottable].label … … 756 756 if default_name.count('.') > 0: 757 757 default_name = default_name.split('.')[0] 758 #default_name += "_out" 759 if self.parent != None: 758 if self.parent is not None: 760 759 self.parent.show_data2d(data, default_name) 761 760 762 761 def modifyGraphAppearance(self, e): 763 self.graphApp = graphAppearance(self, 'Modify graph appearance', legend=False) 762 self.graphApp = graphAppearance(self, 'Modify graph appearance', 763 legend=False) 764 764 self.graphApp.setDefaults(self.grid_on, self.legend_on, 765 765 self.xaxis_label, self.yaxis_label,
Note: See TracChangeset
for help on using the changeset viewer.