Opened 8 years ago

Closed 4 years ago

#12364 closed defect (fixed)

ValueError + AttributeError when calling layout_graphviz on a Hasse diagram

Reported by: slabbe Owned by: sage-combinat
Priority: major Milestone: sage-7.4
Component: combinatorics Keywords: dot2tex
Cc: sage-combinat Merged in:
Authors: Sébastien Labbé Reviewers: Travis Scrimshaw
Report Upstream: N/A Work issues:
Branch: e80f38b (Commits) Commit: e80f38b5f6d210df78f5f11bdbbf19ae5afb5717
Dependencies: Stopgaps:

Description (last modified by slabbe)

With sage-4.7.2 and sage -i dot2tex installed :

sage: m = WordMorphism('a->abb,b->ba')
sage: w = m.fixed_point('a')
sage: prefix = Word(list(w[:100]))
sage: pals = prefix.palindromes()
sage: poset = Poset((pals, lambda x,y: x.is_factor(y)))
sage: H = poset.hasse_diagram()
sage: H.layout_graphviz()         #require dot2tex
ERROR    Failed to process input
Traceback (most recent call last):
...
ValueError: invalid literal for int() with base 10: '249.88'
-------------------------------------------------------
Traceback (most recent call last):
...
AttributeError: 'str' object has no attribute 'iteritems'

This came up in #12351.

Change History (14)

comment:1 Changed 8 years ago by slabbe

  • Description modified (diff)

comment:3 Changed 7 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:4 Changed 6 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:5 Changed 6 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:6 Changed 6 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4

comment:7 Changed 4 years ago by chapoton

  • Milestone changed from sage-6.4 to sage-7.3

works in 7.3.b7

comment:8 Changed 4 years ago by tscrim

  • Milestone changed from sage-7.3 to sage-duplicate/invalid/wontfix
  • Reviewers set to Travis Scrimshaw
  • Status changed from new to needs_review

Agreed.

comment:9 Changed 4 years ago by tscrim

  • Status changed from needs_review to positive_review

comment:10 Changed 4 years ago by slabbe

Shouldn't we add a doctest?

comment:11 Changed 4 years ago by tscrim

  • Status changed from positive_review to needs_work

Go for it.

comment:12 Changed 4 years ago by slabbe

  • Branch set to u/slabbe/12364
  • Commit set to e80f38b5f6d210df78f5f11bdbbf19ae5afb5717
  • Status changed from needs_work to needs_review

Sure!


New commits:

e80f38b12364: adding doctest

comment:13 Changed 4 years ago by tscrim

  • Authors set to Sébastien Labbé
  • Milestone changed from sage-duplicate/invalid/wontfix to sage-7.4
  • Status changed from needs_review to positive_review

Thanks.

comment:14 Changed 4 years ago by vbraun

  • Branch changed from u/slabbe/12364 to e80f38b5f6d210df78f5f11bdbbf19ae5afb5717
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.