We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f7850bd + ccde1d8 commit e13fd68Copy full SHA for e13fd68
inst/assumptions.m
@@ -1,4 +1,4 @@
1
-%% Copyright (C) 2014-2016, 2019 Colin B. Macdonald
+%% Copyright (C) 2014-2016, 2019, 2023 Colin B. Macdonald
2
%%
3
%% This file is part of OctSymPy.
4
@@ -108,15 +108,14 @@
108
cmd = {
109
'x = _ins[0]'
110
'outputdict = _ins[1]'
111
- 'd = x._assumptions.generator'
112
- 'if d == {}:'
113
- ' astr = ""'
+ 'if Version(spver) > Version("1.11.1"):'
+ ' d = x._assumptions_orig'
114
'else:'
115
- ' astr = ", ".join(sorted([("" if v else "~") + str(k) for (k,v) in list(d.items())]))'
+ ' d = x._assumptions.generator'
+ 'astr = ", ".join(sorted([("" if v else "~") + str(k) for (k,v) in d.items()]))'
116
'if outputdict:'
117
' return (astr, d)'
118
- 'else:'
119
- ' return astr,' };
+ 'return astr,' };
120
121
c = 0; A = {};
122
if strcmp(outp, 'dict')
0 commit comments