Changeset 05fb3d6b in sasview
- Timestamp:
- Mar 19, 2016 6:59:54 AM (9 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.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- ef908db, a407a40
- Parents:
- 3689302 (diff), 354524d (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:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
docs/sphinx-docs/build_sphinx.py
rb7a2ebfd r354524d 35 35 #/sasview-local-trunk/docs/sphinx-docs/build_sphinx.py 36 36 37 SASMODELS_SOURCE_MODELS = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", " sasmodels", "models")38 SASMODELS_SOURCE_IMG = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", " sasmodels", "models", "img")39 SASMODELS_DEST_MODELS = os.path.join( SASVIEW_SRC, "sas", "models", "media")37 SASMODELS_SOURCE_MODELS = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc", "model") 38 SASMODELS_SOURCE_IMG = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "..", "sasmodels", "doc", "model", "img") 39 SASMODELS_DEST_MODELS = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "src", "sas", "models", "media") 40 40 SASMODELS_DEST_IMG = os.path.join(CURRENT_SCRIPT_DIR, "..", "..", "src", "sas", "models", "media", "img") 41 41 … … 79 79 _remove_dir(SPHINX_SOURCE_TEST) 80 80 81 81 82 def retrieve_user_docs(): 82 83 """ … … 114 115 # print os.path.abspath(SASVIEW_TEST) 115 116 # print os.path.abspath(SPHINX_SOURCE_TEST) 117 print "=== Including Test Data Docs ===" 116 118 if os.path.exists(SASVIEW_TEST): 117 119 print "Found docs folder at ", SASVIEW_TEST 118 120 shutil.copytree(SASVIEW_TEST, SPHINX_SOURCE_TEST) 119 121 122 print "=== And the Sasmodels Docs ===" 120 123 # Make sure we have the relevant images for the new sasmodels documentation 121 124 if os.path.exists(SASMODELS_SOURCE_IMG): … … 128 131 shutil.copy(fromhere,tohere) 129 132 130 # And the relevant .py files with therst descriptions for the new sasmodels documentation133 # And the relevant rst descriptions for the new sasmodels documentation 131 134 if os.path.exists(SASMODELS_SOURCE_MODELS): 132 135 print "Found docs folder SASMODELS_SOURCE_MODELS at ", SASMODELS_SOURCE_MODELS … … 134 137 print "Found docs folder SASMODELS_DEST_MODELS at ", SASMODELS_DEST_MODELS 135 138 for files in os.listdir(SASMODELS_SOURCE_MODELS): 136 if files.endswith(". py"):139 if files.endswith(".rst"): 137 140 fromhere=os.path.join(SASMODELS_SOURCE_MODELS,files) 138 141 tohere=os.path.join(SASMODELS_DEST_MODELS,files) -
src/sas/sascalc/dataloader/readers/sesans_reader.py
r26d4864 r3689302 178 178 output.sample.name = paramvals[1] 179 179 output.sample.ID = paramvals[0] 180 zaccept_unit_split = paramnames[7].split("[") 181 zaccept_unit = zaccept_unit_split[1].replace("]","") 182 if zaccept_unit.strip() == '\AA^-1': 183 zaccept_unit = "1/A" 180 184 output.sample.zacceptance=float(paramvals[7]) 185 output.sample.zacceptance=self._unit_conversion(output.sample.zacceptance, 186 zaccept_unit, "1/" + default_z_unit) 181 187 output.vars=varheader 182 188
Note: See TracChangeset
for help on using the changeset viewer.