Changeset 0a4628d in sasmodels
- Timestamp:
- Feb 9, 2016 10:47:07 AM (9 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- a36c6d3
- Parents:
- 43cb3b8
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/rst_prolog
r19dcb933 r0a4628d 60 60 .. |g/cm^3| replace:: g\ |cdot|\ cm\ :sup:`-3` 61 61 .. |fm^2| replace:: fm\ :sup:`2` 62 .. |Ang*cm^-1| replace:: |Ang|\ |cdot|\ cm\ :sup:`-1` -
multi_compare.sh
r5753e4e r0a4628d 1 #!/bin/ sh1 #!/bin/bash 2 2 3 3 sasview=( ../sasview/build/lib.* ) -
sasmodels/convert.py
r3964f92 r0a4628d 151 151 pars['string_thickness_pd_n'] = 0 152 152 pars['number_of_pearls_pd_n'] = 0 153 elif name == 'line': 154 pars['scale'] = 1 155 pars['background'] = 0 153 156 elif name == 'rpa': 154 157 pars['case_num'] = int(pars['case_num']) -
sasmodels/generate.py
reafc9fa r0a4628d 233 233 "degrees": "degree", 234 234 "1/cm": "|cm^-1|", 235 "Ang/cm": "|Ang*cm^-1|", 235 236 "": "None", 236 237 } -
sasmodels/models/line.py
r43cb3b8 r0a4628d 19 19 """ 20 20 from numpy import inf 21 from numpy import cos 22 from numpy import sin 21 23 22 24 name = "line" … … 33 35 # pylint: disable=bad-whitespace, line-too-long 34 36 # ["name", "units", default, [lower, upper], "type", "description"], 35 parameters = [["intercept", " cm^-1", 1.0, [-inf, inf], "", "intercept in linear model"],36 ["slope", "Ang *cm^-1", 1.0, [-inf, inf], "", "slope in linear model"],37 parameters = [["intercept", "1/cm", 1.0, [-inf, inf], "", "intercept in linear model"], 38 ["slope", "Ang/cm", 1.0, [-inf, inf], "", "slope in linear model"], 37 39 ] 38 40 # pylint: enable=bad-whitespace, line-too-long … … 58 60 """ 59 61 #TODO: Instrcution tels 2D has different deffinition than oher models 60 # return Iq(sqrt(qx ** 2 + qy ** 2), *args)61 return Iq(qx , *args)*Iq(qy, *args)62 #Iq(qx*cos(qy), *args)*Iq(qy, *args 63 return Iq(qx*cos(qy), *args)*Iq(qx*sin(qy), *args) 62 64 63 65 Iqxy.vectorized = True # Iqxy accepts an array of qx, qy values 64 66 65 demo = dict( intercept=1.0, slope=1.0)67 demo = dict(scale=1.0, background=0, intercept=1.0, slope=1.0) 66 68 67 69 oldname = "LineModel" 68 oldpars = dict(intercept='A', slope='B', scale=None, background=None)70 oldpars = dict(intercept='A', slope='B', background=None, scale=None) 69 71 70 72 tests = [ … … 80 82 [{'intercept': 1.0, 81 83 'slope': 1.0, 82 }, 0.5, 1.5],84 }, 0.5, 1.5], 83 85 84 86 [{'intercept': 1.0, 85 87 'slope': 1.0, 86 }, [0.4, 0.5], [1.4,1.5]],88 }, [0.4, 0.5], [1.4, 1.5]], 87 89 88 90 [{'intercept': 1.0, 89 91 'slope': 1.0, 90 }, [1.3, 1.57], [2.3,2.57]],92 }, [1.3, 1.57], [2.3, 2.57]], 91 93 ]
Note: See TracChangeset
for help on using the changeset viewer.