Skip to content

Commit b896993

Browse files
committed
Add changes to the Changes list
1 parent 12fea19 commit b896993

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

CHANGES.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ Document updates
2525
Enhancements and Bug fixes:
2626
+++++++++++++++++++++++++++
2727

28-
- Fix evaluation timeouts
28+
- Fix evaluation timeouts.
2929
- ``Sum``'s lower and upper bounds values can now be Mathics expressions
30-
30+
- Partial fix for MathML 2D Graphics. Requires the installation of the package Asymptote, and to set
31+
the variable ``Settings`UseAsyForGraphics2D`` to ``System`True``.
32+
- Set the numeric threshold in PossibleZeroQ to 10^(-10), for compatibility with ``System`Chop``.
33+
- Catch possible exceptions generated by ``$UserName``.
3134

3235
1.1.1
3336
-----

mathics/builtin/graphics.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3202,7 +3202,7 @@ def boxes_to_xml(self, leaves, **options):
32023202
if evaluation:
32033203
check_asy = evaluation.definitions.get_ownvalue("Settings`UseAsyForGraphics2D")
32043204
if check_asy:
3205-
check_asy = check_asy.replace.to_python()
3205+
check_asy = check_asy.replace.is_true()
32063206
if check_asy:
32073207
import os
32083208
from subprocess import DEVNULL, STDOUT, check_call
@@ -3214,12 +3214,11 @@ def boxes_to_xml(self, leaves, **options):
32143214

32153215
if check_asy:
32163216
asy, width, height = self.boxes_to_tex(leaves, forxml=True, **options)
3217-
32183217
fin = os.path.join(tempfile._get_default_tempdir(), next(tempfile._get_candidate_names()))
32193218
fout = fin + ".svg"
32203219
with open(fin, 'w+') as borrador:
32213220
borrador.write(asy)
3222-
3221+
32233222
try:
32243223
check_call(['asy', '-f', 'svg', '-o', fout, fin], stdout=DEVNULL, stderr=DEVNULL)
32253224
except:
@@ -3241,7 +3240,7 @@ def boxes_to_xml(self, leaves, **options):
32413240
)
32423241
else:
32433242
print("Asy not available. Continue with standard")
3244-
3243+
32453244
elements, calc_dimensions = self._prepare_elements(leaves, options, neg_y=True)
32463245

32473246
xmin, xmax, ymin, ymax, w, h, width, height = calc_dimensions()

0 commit comments

Comments
 (0)