[sage-support] Re: Loading an object containing a matrix that was saved in Python 2 sage

2020-08-19 Thread Paul Leopardi
I have about 6 TB of saved Sage objects that I would like to recover, so am interested in testing the fix. On Thursday, 20 August 2020 at 14:10:34 UTC+10 Paul Leopardi wrote: > Done. https://trac.sagemath.org/ticket/30402 > > On Thursday, 20 August 2020 at 02:35:15 UTC+10 Nils Br

[sage-support] Re: Loading an object containing a matrix that was saved in Python 2 sage

2020-08-19 Thread Paul Leopardi
Done. https://trac.sagemath.org/ticket/30402 On Thursday, 20 August 2020 at 02:35:15 UTC+10 Nils Bruin wrote: > On Wednesday, August 19, 2020 at 5:24:48 AM UTC-7, Paul Leopardi wrote: >> >> See also >> https://groups.google.com/g/sage-support/c/3WKui-LojKs/m/DgEPB

[sage-support] Re: Loading an object containing a matrix that was saved in Python 2 sage

2020-08-19 Thread Paul Leopardi
See also https://groups.google.com/g/sage-support/c/3WKui-LojKs/m/DgEPBGF3AQAJ and https://trac.sagemath.org/ticket/28444 On Wednesday, 19 August 2020 at 22:17:40 UTC+10 Paul Leopardi wrote: > Hello, > I am currently trying to convert my Boolean-Cayley-graphs project from > Python 2

[sage-support] Loading an object containing a matrix that was saved in Python 2 sage

2020-08-19 Thread Paul Leopardi
Hello, I am currently trying to convert my Boolean-Cayley-graphs project from Python 2 to Python 3 Sage. https://github.com/penguian/Boolean-Cayley-graphs/tree/23-port-to-python-3 I have succeeded in converting the code, but am having a tough time trying to load objects that were saved by my

[sage-support] Re: Bug in BooleanFunction: truth_table(format="hex") is wrong

2017-11-26 Thread Paul Leopardi
I have now reported this suspected bug as https://trac.sagemath.org/ticket/24282 -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[sage-support] Bug in BooleanFunction: truth_table(format="hex") is wrong

2017-11-23 Thread Paul Leopardi
Hi all, Sometimes, especially with functions of 8 variables, the BooleanFunction.truth_table() method with format='hex" gives wrong values that are the wrong length. I don't yet have a login to Trac. Should I obtain one and report the bug there? All the best, Paul *Bug in

Re: [sage-support] How to use Sphinx to create documentation for a project that uses Sage?

2017-05-31 Thread Paul Leopardi
On Wednesday, 31 May 2017 19:39:32 UTC+10, Jeroen Demeyer wrote: > > I think you need to import sage.all first, before importing anything > else from sage. > Thanks, I think I figured out what you mean. I updated conf.py to contain the following: ... # If extensions (or modules to document

Re: [sage-support] How to use Sphinx to create documentation for a project that uses Sage?

2017-05-31 Thread Paul Leopardi
On Wednesday, 31 May 2017 19:39:32 UTC+10, Jeroen Demeyer wrote: > > I think you need to import sage.all first, before importing anything > else from sage. > Thanks, in which file do you mean, every Python file that uses Sage, or some specific file? -- You received this message because

Re: [sage-support] How to use Sphinx to create documentation for a project that uses Sage?

2017-05-30 Thread Paul Leopardi
On Tuesday, 30 May 2017 23:35:37 UTC+10, Jeroen Demeyer wrote: > > Sphinx needs to be able to import your modules to document them. There > is nothing Sphinx-specific about this, it's just usual Python imports. I > am assuming that your package works within Sage but not outside of Sage. >

Re: [sage-support] How to use Sphinx to create documentation for a project that uses Sage?

2017-05-30 Thread Paul Leopardi
plates and static dir [_]: The project name will occur in several places in the built documentation. > Project name: Boolean-Cayley-graphs > Author name(s): Paul Leopardi Sphinx has the notion of a "version" and a "release" for the software. Each version can have multiple rele

[sage-support] How to use Sphinx to create documentation for a project that uses Sage?

2017-05-28 Thread Paul Leopardi
Hello, I am trying to create HTML documentation for my Boolean-Cayley-graphs project ( https://github.com/penguian/Boolean-Cayley-graphs ) that uses Sage. If I try to just use Sphinx, following the instructions at

[sage-support] Re: Linking error in FLINT when building Sage 7.4 on Ubuntu 16.10

2017-01-02 Thread Paul Leopardi
On Friday, 28 October 2016 02:49:16 UTC+11, Dima Pasechnik wrote: > > > In the general case, either -no-pie needs to be passed or cc needs to be > invoked with -r rather than -Wl,-r. > > The corresponding trac ticket is https://trac.sagemath.org/ticket/21782 ? And the branch to use right now

[sage-support] Re: How should I determine if two strongly regular graphs are isomorphic?

2016-12-13 Thread Paul Leopardi
Hi again Dima, For the record, see below. On Wednesday, 24 August 2016 00:46:06 UTC+10, Dima Pasechnik wrote: > > Hi, > > I think the best way to fix your issue is to fix > https://trac.sagemath.org/ticket/21313 > This will allow is_isomorphic to use bliss or nauty. > (In fact, IIRC checking for

Re: [sage-support] How can I double check a non-isomorphism between graphs?

2016-11-03 Thread Paul Leopardi
On Thursday, 3 November 2016 04:58:11 UTC+11, Dima Pasechnik wrote: > > On Wednesday, November 2, 2016 at 11:57:20 AM UTC, Paul Leopardi wrote: >> >> On Wednesday, 2 November 2016 20:08:20 UTC+11, Dima Pasechnik wrote: >>> >>> I must say I don't know why th

Re: [sage-support] How can I double check a non-isomorphism between graphs?

2016-11-02 Thread Paul Leopardi
On Wednesday, 2 November 2016 20:08:20 UTC+11, Dima Pasechnik wrote: > > I must say I don't know why these libgap.set_global and get_global are > needed. > >> >> I used them to get my large matrices into libgap as globals. Trying to pass them through a text based interface does not work.

Re: [sage-support] How can I double check a non-isomorphism between graphs?

2016-11-02 Thread Paul Leopardi
] )' >sage: gap.eval('AutGroupGraph(GG);') >'Group([ (3,4)(6,7)(8,9), (2,3)(5,6)(9,10), (2,5)(3,6)(4,7), >(1,2)(6,8)(7,9) ])' >sage: > >(whereas if I use libgap.* I end up with the same error as you) > >This is now >https://trac.sagemath.org/ticke

Re: [sage-support] How can I double check a non-isomorphism between graphs?

2016-11-01 Thread Paul Leopardi
On Tuesday, 25 October 2016 06:02:06 UTC+11, Dima Pasechnik wrote: > > I would do a check using GAP's Grape package, which allows for checking > isomorphisms > (it uses nauty as the backend) > While there is no ready function to call Grape from Sage, this should be > easy to write using e.g. >

Re: [sage-support] How can I double check a non-isomorphism between graphs?

2016-10-25 Thread Paul Leopardi
On Tuesday, 25 October 2016 06:02:06 UTC+11, Dima Pasechnik wrote: > > I would do a check using GAP's Grape package, which allows for checking > isomorphisms > (it uses nauty as the backend) > While there is no ready function to call Grape from Sage, this should be > easy to write using e.g. >

Re: [sage-support] How can I double check a non-isomorphism between graphs?

2016-10-24 Thread Paul Leopardi
On Tuesday, 25 October 2016 06:02:06 UTC+11, Dima Pasechnik wrote: > > I would do a check using GAP's Grape package, which allows for checking > isomorphisms > (it uses nauty as the backend) > While there is no ready function to call Grape from Sage, this should be > easy to write using e.g. >

Re: [sage-support] How can I double check a non-isomorphism between graphs?

2016-10-24 Thread Paul Leopardi
Hi, I have attached the output file here. I am sorry that I have not put more time into cleaning up the code and the output. Once you figure out what the output is trying to tell you, you will see that the relevant pairs of strongly regular graphs are isomorphic for dim=4 and dim=6, and also

Re: [sage-support] How can I double check a non-isomorphism between graphs?

2016-10-24 Thread Paul Leopardi
On Tuesday, 25 October 2016 05:55:42 UTC+11, Dima Pasechnik wrote: > > I am trying to run your script, but am getting > > IOError: did not find file > 'boolean_dimension_cayley_graph_classifications.sage' to load or attach > > and indeed, there is no file so named in your github repo. > > > It

Re: [sage-support] How can I double check a non-isomorphism between graphs?

2016-10-24 Thread Paul Leopardi
: >http://moodle.tec.hkr.se/~chen/research/2-weight-codes/index.htm >are not always correct. Thanks, Dima. The strongly regular graph parameters are always the same. The graphs themselves are in some cases not isomorphic. In my next message I will post the relevant output from my code. --

Re: [sage-support] How can I double check a non-isomorphism between graphs?

2016-10-24 Thread Paul Leopardi
On Monday, 24 October 2016 01:45:10 UTC+11, David Joyner wrote: > > > I haven't looked at your code but are you comparing the SRG associated > to the Boolean bent function and the graph associated to the incidence > matrix of that graph? > > I don't understand your precise meaning here, so I

Re: [sage-support] How can I double check a non-isomorphism between graphs?

2016-10-24 Thread Paul Leopardi
On Monday, 24 October 2016 01:45:10 UTC+11, David Joyner wrote: > > > I haven't looked at your code but are you comparing the SRG associated > to the Boolean bent function and the graph associated to the incidence > matrix of that graph? > > I don't understand your precise meaning here, so I

[sage-support] How can I double check a non-isomorphism between graphs?

2016-10-23 Thread Paul Leopardi
Since asking the question "How should I determine if two strongly regular graphs are isomorphic?" I have made great progress in classifying Bent functions by their Cayley graphs. That is, up until now. I have found two graphs which I was (emprically) expecting to be isomorphic have different

[sage-support] Re: How can Sage and Python communicate via global variables?

2016-09-20 Thread Paul Leopardi
Thanks, that all works quite well. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email

[sage-support] How can Sage and Python communicate via global variables?

2016-09-19 Thread Paul Leopardi
Hello, I am trying to use global variables to control the behaviour of Python functions called from Sage. (Yes, I know there is probably a better way to do it, but I am still interested in what's going on here.) If in foo.py I have def bar(): print blah def baz(): global zilch

[sage-support] In a SageMathCloud worksheet, how do I save an instance of a user defined class?

2016-09-17 Thread Paul Leopardi
Hello, When I am using Sage from the command line on my own PC (SageMath version 7.2, Release Date: 2016-05-15) I can do: sage: class myint(SageObject): : def __init__(self, n): : self.value = n : sage: p = myint(3) sage: save(p,'p') sage: q =

[sage-support] How dosave an instance of a user defined class in a SageMathCloud worksheet?

2016-09-17 Thread Paul Leopardi
Hello, When I am using Sage from the command line on my own PC (SageMath version 7.2, Release Date: 2016-05-15) I can do: sage: class myint(SageObject): : def __init__(self, n): : self.value = n : sage: p = myint(3) sage: save(p,'p') sage: q =

[sage-support] Re: How should I determine if two strongly regular graphs are isomorphic?

2016-08-30 Thread Paul Leopardi
On Wednesday, 24 August 2016 02:00:03 UTC+10, Dima Pasechnik wrote: > > Also, do I get it right that you have a new "generic" construction of > strongly regular graphs? > As you know, we are collecting them - would you be interested in adding it > into sage/graphs/generators/ ? > Sorry for

[sage-support] Re: How should I determine if two strongly regular graphs are isomorphic?

2016-08-23 Thread Paul Leopardi
On Wednesday, 24 August 2016 02:00:03 UTC+10, Dima Pasechnik wrote: > > In this case your graphs give rise to Hadamard matrices (take Seidel > adjacency matrix), so if you get nonisomorphic Hadamard matrices then you > get nonisomorphic graphs, but not the other way around, generally speaking.

Re: [sage-support] How should I determine if two strongly regular graphs are isomorphic?

2016-08-23 Thread Paul Leopardi
On Wednesday, 24 August 2016 00:14:10 UTC+10, vdelecroix wrote: > > Do you have the package bliss or nauty installed? > sage: is_package_installed('bliss') True sage: is_package_installed('nauty') True -- You received this message because you are subscribed to the Google Groups

[sage-support] How should I determine if two strongly regular graphs are isomorphic?

2016-08-23 Thread Paul Leopardi
Hi all, I am currently trying to use Sage to classify bent functions by their Cayley graphs. I have attached an example where I have two (256, 120, 56, 56) strongly regular graphs, g and h, which are also canonical labels, such that g does not equal h, and so g and h are not isomorphic. It

Re: [sage-support] Meta question: How do I best specify graphs in sage-support?

2016-08-23 Thread Paul Leopardi
On Tuesday, 23 August 2016 14:45:42 UTC+10, jori.ma...@uta.fi wrote: > > dig6_string() is only available do directed graphs, but a Graph made from > DiGraph is just a graph with directions forgotten. So you can say > > DiGraph(g).dig6_string() > > Is there a particular reason why you prefer

[sage-support] Meta question: How do I best specify graphs in sage-support?

2016-08-22 Thread Paul Leopardi
Hi, I am seeing a problem where "g.is_isomorphic(h)" is taking an inordinately long time, where g and h are graphs, even though "g.automorphism_group().order() == h.automorphism_group().order()", and "g.canonical_label() == h.canonical_label()" both take a reasonable time. My main question for

[sage-support] Cannot load a BooleanFunction of 8 variables (?)

2016-07-22 Thread Paul Leopardi
Hi, I am using Sage 7.2 built from sources. If I save a BooleanFunction of 6 variables, it loads OK. If I save a BooleanFunction of 8 variables, loading gives an exception error message: ValueError: (ValueError('the length of the truth table must be a power of 2',), ,

Re: [sage-support] How do I build Sage 7.2 on ubuntu 16.04? Build fails in atlas-3.10.2.p2

2016-07-22 Thread Paul Leopardi
On Thursday, 21 July 2016 21:38:38 UTC+10, Paul Leopardi wrote: > > On Thursday, 21 July 2016 08:57:55 UTC+10, Paul Leopardi wrote: >> >> >> The build now gets past the point where it failed previously. >> >> > The build now fails in dochtml with a prob

Re: [sage-support] How do I build Sage 7.2 on ubuntu 16.04? Build fails in atlas-3.10.2.p2

2016-07-22 Thread Paul Leopardi
Hi John, Yes that branch fixes the problem. On 22 July 2016 1:31:53 AM AEST, John H Palmieri <jhpalmier...@gmail.com> wrote: > > >On Thursday, July 21, 2016 at 4:38:38 AM UTC-7, Paul Leopardi wrote: >> >> On Thursday, 21 July 2016 08:57:55 UTC+10, Paul Leopardi wrote

Re: [sage-support] How do I build Sage 7.2 on ubuntu 16.04? Build fails in atlas-3.10.2.p2

2016-07-21 Thread Paul Leopardi
On Thursday, 21 July 2016 22:50:10 UTC+10, Dima Pasechnik wrote: > > On Thursday, July 21, 2016 at 1:43:22 PM UTC+1, Paul Leopardi wrote: >> >> ERROR: The Sage installation tree has moved >> >> from /home/leopardi/sync/src-downloaded/sage/sage-7.2 >>

Re: [sage-support] How do I build Sage 7.2 on ubuntu 16.04? Build fails in atlas-3.10.2.p2

2016-07-21 Thread Paul Leopardi
On Thursday, 21 July 2016 21:38:38 UTC+10, Paul Leopardi wrote: > > Before I do so, I will try an experiment: apply the patch to the existing > sage-7.2 directory, and run make again. > > The experiment apparently succeeded. The make ran to a successful conclusion. I could n

Re: [sage-support] How do I build Sage 7.2 on ubuntu 16.04? Build fails in atlas-3.10.2.p2

2016-07-21 Thread Paul Leopardi
On Thursday, 21 July 2016 08:57:55 UTC+10, Paul Leopardi wrote: > > > The build now gets past the point where it failed previously. > > The build now fails in dochtml with a problem that looks like this WONTFIX bug: https://trac.sagemath.org/ticket/18891 and also looks like

Re: [sage-support] How do I build Sage 7.2 on ubuntu 16.04? Build fails in atlas-3.10.2.p2

2016-07-20 Thread Paul Leopardi
On Thursday, 21 July 2016 08:21:14 UTC+10, Paul Leopardi wrote: > > > > On Thursday, 21 July 2016 08:06:37 UTC+10, Volker Braun wrote: >> >> Well do you have PYTHON set in your environment? I'm pretty sure that >> there are a number of python-related enviro

Re: [sage-support] How do I build Sage 7.2 on ubuntu 16.04? Build fails in atlas-3.10.2.p2

2016-07-20 Thread Paul Leopardi
On Thursday, 21 July 2016 08:06:37 UTC+10, Volker Braun wrote: > > Well do you have PYTHON set in your environment? I'm pretty sure that > there are a number of python-related environment settings that will cause > problems >> >> >> I did have but the value of PYTHON in my environment

Re: [sage-support] How do I build Sage 7.2 on ubuntu 16.04? Build fails in atlas-3.10.2.p2

2016-07-20 Thread Paul Leopardi
Attached config.log for brial-0.8.4.3 -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send

Re: [sage-support] How do I build Sage 7.2 on ubuntu 16.04? Build fails in atlas-3.10.2.p2

2016-07-20 Thread Paul Leopardi
On Wednesday, 20 July 2016 22:42:57 UTC+10, Paul Leopardi wrote: > I checked python2-2.7.10.p1.log and discovered a problem: I had DESTDIR > set to "/home/leopardi/usr/local". As a result, there were lines like: > > (cd > /home/leopardi/usr/local/home/leopardi/sync

Re: [sage-support] How do I build Sage 7.2 on ubuntu 16.04? Build fails in atlas-3.10.2.p2

2016-07-20 Thread Paul Leopardi
On Wednesday, 20 July 2016 19:57:56 UTC+10, Dima Pasechnik wrote: > > I guess having a systemwide python2 might be a way out, as well... > > No, I have a system-wide python2. That was not the issue, as far as I can tell. -- You received this message because you are subscribed to the Google

Re: [sage-support] How do I build Sage 7.2 on ubuntu 16.04? Build fails in atlas-3.10.2.p2

2016-07-20 Thread Paul Leopardi
On Wednesday, 20 July 2016 09:12:24 UTC+10, Volker Braun wrote: > > So is > /home/leopardi/usr/local/home/leopardi/sync/src-downloaded/sage/sage-7.2/local/bin/python > > executable? > This is what I have at the point where the build fails:

Re: [sage-support] How do I build Sage 7.2 on ubuntu 16.04? Build fails in atlas-3.10.2.p2

2016-07-19 Thread Paul Leopardi
>From config.log I noticed that PATH: /home/leopardi/sync/src-downloaded/sage/sage-PPA/sagemath/local/bin PATH: /home/leopardi/bin PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games PATH: /usr/local/games PATH: /snap/bin so just to

Re: [sage-support] How do I build Sage 7.2 on ubuntu 16.04? Build fails in atlas-3.10.2.p2

2016-07-19 Thread Paul Leopardi
On Wednesday, 20 July 2016 02:09:20 UTC+10, John Cremona wrote: > > Try running ./configure before make. > I have now done the following and have attached config.log. I will next run make and will report the results. Why do the instructions in

[sage-support] How do I build Sage 7.2 on ubuntu 16.04? Build fails in atlas-3.10.2.p2

2016-07-19 Thread Paul Leopardi
Hi all, My build of Sage 7.2 on Ubuntu 16.04 failed in atlas-3.10.2, with an error that I don't understand and don't know how to fix. What should I be doing to obtain a successful build of Sage 7.2 from source? All the best, Paul DETAILS: I downloaded sage-7.2.tar.gz to my home Linux box:

Re: [sage-support] Run all cells on a large worksheet?

2015-12-09 Thread Paul Leopardi
I also could not reproduce the problem with the worksheet you gave me. I have reproduced it with the following worksheet https://cloud.sagemath.com/projects/80f4c9e7-8a37-4f59-82e7-aa179ec0b652/files/public/new-order.sagews which leads me to believe that it is caused by a 'corrupted' worksheet.

[sage-support] Run all cells on a large worksheet?

2015-12-08 Thread Paul Leopardi
I have created a large worksheet at https://cloud.sagemath.com/projects/3c2a9143-d685-410f-995c-28f44056999f/files/bent-functions-duals-Cayley-graphs.sagews with a public copy at

Re: [sage-support] Run all cells on a large worksheet?

2015-12-08 Thread Paul Leopardi
On Wednesday, 9 December 2015 12:21:07 UTC+11, William wrote: > > On Tue, Dec 8, 2015 at 2:41 PM, William Stein <wst...@gmail.com > > wrote: > > On Tue, Dec 8, 2015 at 4:05 AM, Paul Leopardi <paul.l...@gmail.com > > wrote: > >> I have crea

[sage-support] Re: error in Sage

2015-11-17 Thread Paul Leopardi
Hi, I have also just encountered the incorrect sign for BooleanFunction walsh_hadamard_transform(). In addition, I would like to point out that the documentation at http://doc.sagemath.org/html/en/reference/cryptography/sage/crypto/boolean_function.html agrees with the usual definition and not

[sage-support] Repeat of report of incorrect sign for walsh_hadamard_transform().

2015-11-17 Thread Paul Leopardi
I am reposting a comment I just added to the topic, "Fwd: error in Sage" in the hopes that it will be more likely to be seen this way. Hi, I have also just encountered the incorrect sign for BooleanFunction walsh_hadamard_transform(). In addition, I would like to point out that the

[sage-support] How to exponentiate a matrix with mixed entries?

2008-11-20 Thread Paul Leopardi
Hi all, I'm trying to exponentiate a matrix with a complex entry. The input and output is below. Why does Sage give me 103993*I/33102 in the upper right hand corner, and how can I get it to give me the right answer? Also, how do I get it to use (eg.) RealField(100)? Best, Paul [EMAIL