21 | | - numpy, pyparsing, matplotlib |
22 | | - xray data: Henke et al., LBL |
23 | | - neutron data: Rauch, Atomic Institute for Austrian Universities |
24 | | - fundamental constants, atomic mass: NIST |
25 | | - cromer-mann: BSD (c) Columbia University |
| 22 | - numpy, matplotlib, pyparsing |
| 23 | - xray data - Henke et al., LBL |
| 24 | - neutron data - Rauch, Atomic Institute for Austrian Universities |
| 25 | - fundamental constants, atomic mass - NIST |
| 26 | - cromer-mann - BSD (c) Columbia University |
| 55 | |
| 56 | |
| 57 | = unix/mac/git-bash expression for finding imports = |
| 58 | |
| 59 | {{{ |
| 60 | grep import *.py | sed -e 's/^[^:]*: *from *\([^.]*\)\([.].*\)\{0,1\} import.*$/\1/' | sed -e 's/^[^:]*: *import *\([a-zA-Z0-9]*\)\([. ][^,]*\)\{0,1\}$/\1/' | sort | uniq |
| 61 | }}} |
| 62 | |
| 63 | Much longer version for the sasview tree: |
| 64 | {{{ |
| 65 | find src -name "*.py" | xargs grep import | sed 's/^M//' | sed 's/#.*$//' | sed 's/^[^:]*: *$//' | sed -e 's/^[^:]*: *from *\([^.]*\)\([.].*\)\{0,1\} import.*$/\1/' | sed -e 's/^[^:]*: *import *\([a-zA-Z0-9_]*\)\([. ][^,]*\)\{0,1\} *$/\1/' | sort | uniq |
| 66 | }}} |
| 67 | |
| 68 | Note: some sasview files end with CR LF, hence the sed 's/^M//' early in the stream. This is not ^M, this is an actual carriage return inserted by Ctrl-V+Ctrl-M. With gnu sed, \r might work. Or maybe \\r. |
| 69 | |
| 70 | Sasview uses lots of implicit relative imports, so the results are noisy. These should be changed to relative imports. |