Skip to content

Commit e13fd68

Browse files
authored
Merge pull request #1251 from cbm755/low_level_assumptions
New low-level access to the raw assumptions
2 parents f7850bd + ccde1d8 commit e13fd68

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

inst/assumptions.m

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
%% Copyright (C) 2014-2016, 2019 Colin B. Macdonald
1+
%% Copyright (C) 2014-2016, 2019, 2023 Colin B. Macdonald
22
%%
33
%% This file is part of OctSymPy.
44
%%
@@ -108,15 +108,14 @@
108108
cmd = {
109109
'x = _ins[0]'
110110
'outputdict = _ins[1]'
111-
'd = x._assumptions.generator'
112-
'if d == {}:'
113-
' astr = ""'
111+
'if Version(spver) > Version("1.11.1"):'
112+
' d = x._assumptions_orig'
114113
'else:'
115-
' astr = ", ".join(sorted([("" if v else "~") + str(k) for (k,v) in list(d.items())]))'
114+
' d = x._assumptions.generator'
115+
'astr = ", ".join(sorted([("" if v else "~") + str(k) for (k,v) in d.items()]))'
116116
'if outputdict:'
117117
' return (astr, d)'
118-
'else:'
119-
' return astr,' };
118+
'return astr,' };
120119

121120
c = 0; A = {};
122121
if strcmp(outp, 'dict')

0 commit comments

Comments
 (0)