Andy Armstrong
93235d118d
Reorder imports using isort (except lms and cms)
2017-05-30 16:04:54 -04:00
Ned Batchelder
8d791b5823
Use latest pyparsing 2.0.x to avoid setuptools entanglement
...
With 2.0.1, and setuptools 34.0.2, errors happen like:
File "/edx/app/edxapp/venvs/edxapp-sandbox/local/lib/python2.7/site-packages/packaging/requirements.py", line 59, in <module>
MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
TypeError: __call__() takes exactly 2 arguments (1 given)
(cherry picked from commit 73519b3547359a0b791e39d4665f51ac66449a17)
2017-01-25 15:10:02 -05:00
Ned Batchelder
0e4b816cb1
Pin versions of numpy and scipy
2016-08-08 09:11:25 -04:00
Christine Lytwynec
e9e4e3cf65
use 1 coveragerc file to generate 1 coverage report per build
2015-07-01 16:07:49 -04:00
Ned Batchelder
777be12ada
Add missing __init__.py files
2015-04-30 07:43:08 -04:00
Sarina Canelake
3c364193bb
s/pylint: disable=W0104/pylint: disable=pointless-statement/
2014-12-01 11:22:12 -05:00
stv
cf9308144d
Fix PEP8: E302 expected 2 blank lines, found 1
2014-11-10 11:00:11 -08:00
David Baumgold
cb5e3c8111
Upgrade pyparsing to 2.0.1
2014-04-02 16:09:53 -04:00
ichuang
79650f5538
add infinity symbol to calc preview
2014-02-20 21:06:54 -05:00
Manuel Freire
cdc3ad1cc4
298.15 K is 25 C, not 0 (0 is defined to be at 273.15)
...
Signed-off-by: <manuel.freire@fdi.ucm.es >
2013-11-19 12:52:13 +01:00
ichuang
ab203fb649
hbar only add once
2013-09-16 17:37:56 -04:00
ichuang
7fac4f3bb9
formulaequationinput: add capital greek letters and hbar to calc preview
2013-09-07 22:51:51 -04:00
Adam Palay
5b0194d9b4
bump version number on calc
2013-08-30 16:59:46 -04:00
Adam Palay
589dcfcc35
change calcfunctions -> functions
2013-08-30 16:57:44 -04:00
Adam Palay
2284f56e20
specify preview import statements to reflect new package structure
2013-08-30 16:57:27 -04:00
Adam Palay
ac90679544
restructure calc
2013-08-30 16:57:10 -04:00
Peter Baratta
5f3dd37f98
Move the silencing of numpy's warnings into test_calc.py
...
..because that is where it is the most annoying/visible. Otherwise it really
has no effect on the LMS or anything else.
2013-08-15 08:54:43 -04:00
Peter Baratta
a1162cbb34
Change calc module
...
- Create a method called `parse_algebra`. It takes a string of math and returns with a `pyparsing.ParseResults` object representing it.
- `evaluator` takes this tree and applies the old "parse actions" to it to get the same number as it used to.
- Change calc's API: `evaluator` to use `case_sensitive` rather than `cs`
- Add most of the capability for latex rendering
2013-08-12 11:40:20 -04:00
Peter Baratta
401dd550e4
Convert many byte strings to unicode; change string formatting
2013-06-20 11:46:04 -04:00
Peter Baratta
46686d8f7d
Quick fixes in calc.py
...
Especially the var[0].isdigit() one.
2013-06-13 16:38:43 -04:00
Peter Baratta
5735ccaad5
Address Sarina's comments from the PR
...
-Clean up `SUFFIXES` from interspersed commented-out suffixes
-Remove unused `LOG`
-Remove unused method `raiseself` of UndefinedVariable and its usage
2013-06-13 11:16:18 -04:00
Peter Baratta
0f72eedd37
Add variable i as an imaginary unit
2013-06-10 11:35:34 -04:00
Peter Baratta
944e3390e0
Add support for various math functions in calc.py.
2013-06-10 11:35:34 -04:00
Peter Baratta
ed90ed9a34
Added tests for new math functions
2013-06-10 11:35:33 -04:00
Peter Baratta
a746a9ad15
Get rid of unused code
2013-06-10 11:08:48 -04:00
Peter Baratta
83f1f9c2fc
Set numpy so it does not print out warnings on student input
2013-06-05 15:50:35 -04:00
Peter Baratta
a85a7f71df
Rename variables; get rid of OPS
2013-06-05 15:50:17 -04:00
Peter Baratta
72d149caae
Add docstrings and comments
2013-06-03 10:46:11 -04:00
Peter Baratta
ed45c505a3
Simpler pyparsing
2013-06-03 10:44:06 -04:00
Peter Baratta
74866a38b0
Move parseActions and statics out of evaluator()
2013-06-03 10:42:42 -04:00
Peter Baratta
ff3997e72e
Add test to verify a single period is not accepted as input
2013-05-31 12:37:14 -04:00
Peter Baratta
087834337a
Pep8 newline
2013-05-31 11:05:21 -04:00
Peter Baratta
80a27f9391
Add test and functionality for trailing period
2013-05-31 10:41:08 -04:00
Peter Baratta
2793bb4337
Add few more tests; fix a small bug with parallel resistors
2013-05-23 17:43:26 -04:00
Peter Baratta
2486f7c271
Fixed docstrings and other comments from PR review
2013-05-23 17:38:16 -04:00
Peter Baratta
1de8c4d321
Merge branch 'master' into pbaratta/calc-tests
2013-05-23 11:11:08 -04:00
Ned Batchelder
ce005072b0
Sandbox-installed packages will be really installed instead of -e installed.
2013-05-21 19:21:39 -04:00
Peter Baratta
43395b70b7
Enable coverage for calc module; split off tests
2013-05-21 15:20:51 -04:00
Peter Baratta
82482e89ea
Finish calc.py tests; add docstrings, etc
2013-05-21 11:07:19 -04:00
Peter Baratta
5e8d2ce4f7
Start making comprehensive calc tests
2013-05-20 15:30:16 -04:00
Ned Batchelder
7c498be606
Move packages around so we can install packages into the sandbox.
2013-05-06 10:55:05 -04:00