question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Formatting Examples With New Printer Module

See original GitHub issue

I am working through all the examples with the new python 3 printer module. When I finish I will send them to you. I see the collect problem you mentioned in several examples (I am using sympy 1.4). Here is the custom collect I wrote to solve the problem -

def Collect(A, exp_lst):
    (coefs,bases) = linear_expand(A)
    C = S(0)
    for x in exp_lst:
        if x in bases:
            i = bases.index(x)
            C += coefs[i]*x
    return C

I placed it in metric.py just after linear_expand. I have replaced the collect call in ga.py but not in mv.py yet. Are there examples where calling collect is a problem in mv.py that I can use to test. I am only using your galgebra for coding now. Would the best thing for me to do is just put a link to your github site in my github site and tell everone that your is the supported version of galgebra.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Oct 8, 2019

I have forked your distribution to my github account and clone it to my test bed computer (I have a lot of computers at least 5). I will make changes to the version on my test bed and push the changes to the fork on my github account. The procedures are starting to come back to me.

A side question. Apart from speed what is better about Julia versus Python?

0reactions
utensilcommented, Jun 2, 2020

The merge is tracked by #39 and the collect issue is fixed in #48

Read more comments on GitHub >

github_iconTop Results From Across the Web

Formatting and Wrapping Text · OCaml Tutorials
The Format module of Caml Light and OCaml's standard libraries provides pretty-printing facilities to get a fancy display for printing routines.
Read more >
pprint — Data pretty printer — Python 3.11.1 documentation
The pprint module provides a capability to “pretty-print” arbitrary Python data structures in a form which can be used as input to the...
Read more >
Using the Format module - The Caml language - Inria
The Format module of Caml Light and OCaml's standard libraries provides pretty-printing facilities to get a fancy display for printing routines.
Read more >
Prettify Your Data Structures With Pretty Print in Python
The pprint module, Python's data pretty printer, is a useful part of the standard library. You can work with it for debugging data...
Read more >
Format
This module implements a pretty-printing facility to format text within ... Defining new pretty-printers permits the output of material in parallel on ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found