Re: [sage-devel] Trouble while compiling sage---- compiling ends during plot3d
By the way, if the problem can be reduced to building the documentation (that is, if "make build" succeeds but "make" does not), another option would be to try "make doc-html-no-plot", or essentially equivalently do export SAGE_DOCBUILD_OPTS+=' --no-plot' make It is possible that the plots in the documentation are causing some of the problems. John On Saturday, September 16, 2017 at 6:21:54 PM UTC-7, Samuel Lelievre wrote: > > Miguel Angel, > > Let me try and summarize the discussion so far and some options. > > The failure: > > - error while running 'make' on a CentOS machine with 2 GB of RAM > - occurred while building Sage's documentation, which is heavy on RAM > - likely an out of memory error; not surprising with only 2 GB of RAM > > Various suggestions for fixing that: > > 1. add RAM > > 2. build Sage without the documentation > > - for that, run 'make build' instead of 'make' > > - gets you a fully functional Sage, just no HTML documentation > (the HTML documentation is available online anyway) > > - you could build (the same version of) Sage on another machine > (possibly with a different OS) and copy over the doc folder > > 3. build Sage on other machine with same system but more RAM, then > copy Sage installation over; need same path to Sage on both sides > > 4. use binary-pkg to build a binary on other machine with same system > and more RAM; then install on original machine from that binary > > 5. change OS > > Comments about each option > > 1. you said it is not an option in your case > 2. you said 'make build' failed in your case > 3. not suggested so far, you may want to try > 4. you said that did not work > 5. you said you were considering it > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: error building sage
previous problem got solved ,I searched it on github and found one command "make TARGET=HASWELL"and it worked,but now there is another problem above,so please give me solution for this. On Saturday, September 16, 2017 at 12:29:28 PM UTC+5:30, shivam gor wrote: > > > The following package(s) may have failed to build (not necessarily > during this run of 'make all'): > > * package: openblas-0.2.19.p0 > log file: /home/shivam/sage/logs/pkgs/openblas-0.2.19.p0.log > build directory: > /home/shivam/sage/local/var/tmp/sage/build/openblas-0.2.19.p0 > > what should be done?? > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: error building sage
AttributeError: 'module' object has no attribute '__file__' Error building Sage. The following package(s) may have failed to build (not necessarily during this run of 'make all'): * documentation: dochtml log file: /home/shivam/sage/logs/pkgs/../dochtml.log what should be done now?? On Saturday, September 16, 2017 at 12:29:28 PM UTC+5:30, shivam gor wrote: > > > The following package(s) may have failed to build (not necessarily > during this run of 'make all'): > > * package: openblas-0.2.19.p0 > log file: /home/shivam/sage/logs/pkgs/openblas-0.2.19.p0.log > build directory: > /home/shivam/sage/local/var/tmp/sage/build/openblas-0.2.19.p0 > > what should be done?? > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Trouble while compiling sage---- compiling ends during plot3d
Miguel Angel, Let me try and summarize the discussion so far and some options. The failure: - error while running 'make' on a CentOS machine with 2 GB of RAM - occurred while building Sage's documentation, which is heavy on RAM - likely an out of memory error; not surprising with only 2 GB of RAM Various suggestions for fixing that: 1. add RAM 2. build Sage without the documentation - for that, run 'make build' instead of 'make' - gets you a fully functional Sage, just no HTML documentation (the HTML documentation is available online anyway) - you could build (the same version of) Sage on another machine (possibly with a different OS) and copy over the doc folder 3. build Sage on other machine with same system but more RAM, then copy Sage installation over; need same path to Sage on both sides 4. use binary-pkg to build a binary on other machine with same system and more RAM; then install on original machine from that binary 5. change OS Comments about each option 1. you said it is not an option in your case 2. you said 'make build' failed in your case 3. not suggested so far, you may want to try 4. you said that did not work 5. you said you were considering it -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: error building sage
Ubuntu 17.04 On Sep 17, 2017 6:15 AM, "Samuel Lelievre" wrote: > Sat 2017-09-16 12:51:27 UTC, shivam gor: > > yes i have installed all prerequisites > > What operating system are you using? Probably a Linux distribution? > Which one? What version? > > -- > You received this message because you are subscribed to a topic in the > Google Groups "sage-devel" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/sage-devel/O7KqK2AQQz4/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: error building sage
Sat 2017-09-16 12:51:27 UTC, shivam gor: > yes i have installed all prerequisites What operating system are you using? Probably a Linux distribution? Which one? What version? -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] bug in cos ?!
Hi, this might be related to: https://trac.sagemath.org/ticket/20752 https://trac.sagemath.org/ticket/20742 (and it is doctested). Ciao, Thierry On Sat, Sep 16, 2017 at 03:17:27PM -0400, Bruno Le Floch wrote: > Hello, > > In fact, it seems that in Sage 7.2, cos((p/q)*pi) gets reduced mod pi > instead of 2pi, at least in cases where it does not simplify to square > roots: > > sage: [cos(pi*(i+13)/13) - cos(pi*i/13) >for i in range(0,50) if i%13!=0] == [0]*46 > True > > It would be good to know what fixed that bug. It might be a Ginac bug. > Perhaps cos(14*pi/9) should be added as a test of the cos function? > > Bruno > > On 09/16/2017 07:43 AM, John Cremona wrote: > > You should upgrade to a more recent version: > > > > ┌┐ > > │ SageMath version 8.0, Release Date: 2017-07-21 │ > > │ Type "notebook()" for the browser-based notebook interface.│ > > │ Type "help()" for help.│ > > └┘ > > sage: float(cos(14*pi/9)) > > 0.17364817766693041 > > > > > > > > On 16 September 2017 at 12:27, Mickael Pechaud > > wrote: > >> Hello, > >> > >> I'm running SageMath 7.2, on a 64bits laptop with a Ubuntu 16.04.2 LTS > >> (xenial). I got a wrong answer from cos : > >> > >> sage: float(cos(14*pi/9)) > >> -0.17364817766693041 > >> > >> It should be positive - and it's inconsistent with the following lines : > >> > >> sage: float(cos(14*pi/9-2*pi)) > >> 0.17364817766693041 > >> > >> > >> sage: float(14*pi/9) > >> 4.886921905584122 > >> > >> sage: float(cos(4.886921905584122)) > >> 0.17364817766692953 > >> > >> Am I missing something, or is there an actual problem here ? > >> > >> Thanks in advance, > >> > >> Mickaël > >> > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "sage-devel" group. > >> To unsubscribe from this group and stop receiving emails from it, send an > >> email to sage-devel+unsubscr...@googlegroups.com. > >> To post to this group, send email to sage-devel@googlegroups.com. > >> Visit this group at https://groups.google.com/group/sage-devel. > >> For more options, visit https://groups.google.com/d/optout. > > > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] bug in cos ?!
Hello, In fact, it seems that in Sage 7.2, cos((p/q)*pi) gets reduced mod pi instead of 2pi, at least in cases where it does not simplify to square roots: sage: [cos(pi*(i+13)/13) - cos(pi*i/13) for i in range(0,50) if i%13!=0] == [0]*46 True It would be good to know what fixed that bug. It might be a Ginac bug. Perhaps cos(14*pi/9) should be added as a test of the cos function? Bruno On 09/16/2017 07:43 AM, John Cremona wrote: > You should upgrade to a more recent version: > > ┌┐ > │ SageMath version 8.0, Release Date: 2017-07-21 │ > │ Type "notebook()" for the browser-based notebook interface.│ > │ Type "help()" for help.│ > └┘ > sage: float(cos(14*pi/9)) > 0.17364817766693041 > > > > On 16 September 2017 at 12:27, Mickael Pechaud > wrote: >> Hello, >> >> I'm running SageMath 7.2, on a 64bits laptop with a Ubuntu 16.04.2 LTS >> (xenial). I got a wrong answer from cos : >> >> sage: float(cos(14*pi/9)) >> -0.17364817766693041 >> >> It should be positive - and it's inconsistent with the following lines : >> >> sage: float(cos(14*pi/9-2*pi)) >> 0.17364817766693041 >> >> >> sage: float(14*pi/9) >> 4.886921905584122 >> >> sage: float(cos(4.886921905584122)) >> 0.17364817766692953 >> >> Am I missing something, or is there an actual problem here ? >> >> Thanks in advance, >> >> Mickaël >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sage-devel" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to sage-devel+unsubscr...@googlegroups.com. >> To post to this group, send email to sage-devel@googlegroups.com. >> Visit this group at https://groups.google.com/group/sage-devel. >> For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Huma
On Saturday, September 16, 2017 at 6:18:17 AM UTC-7, Simon King wrote: > > Hi Thierry, > > On 2017-09-16, Thierry > wrote: > > How does raw "exec" behaves with your large file ? > > > > sage: with open('your_file.txt') as f: > > : exec(preparse(f.read())) > > Time for my preparser that translates the gap readable into > Python readable data is about 3 minutes. The result is a string > s that I am using in the following. > > Time for Sage's preparser: > sage: %time sp = preparse("D = "+s) > CPU times: user 4min 33s, sys: 1.08 s, total: 4min 34s > Wall time: 4min 34s > > The attempt to exec(sp) soon exhausted 15 GB, Ctrl-C didn't work, > and my laptop swapped so badly that I couldn't even open a new > terminal to do "pkill python". > > (if you're in a terminal you have a chance that "ctrl-Z" does work, which stops the process. You can then "kill %1" or something like that) I've tried some benchmarks along the lines of sage: %time s=preparse("s="+(dict((i,i) for i in range(10))).__str__()) CPU times: user 1.13 s, sys: 6.23 ms, total: 1.14 s Wall time: 1.13 s sage: %time exec(s) CPU times: user 773 ms, sys: 98.1 ms, total: 871 ms Wall time: 864 ms The main thing that I noticed was that execution time (in both steps) scales about linearly in the length, so the python parser seems to be using an algorithm of the right order. Note that "exec" will *compile* the expression (i.e., write a straight-line program for the cpython virtual machine to assemble the data structure) and then execute it, so it needs at least twice the memory. Running the code doesn't seem to be the bottleneck, though: sage: %time s=preparse("def L(): return "+(dict((i,i) for i in range(10))).__str__()) CPU times: user 1.15 s, sys: 20.3 ms, total: 1.17 s Wall time: 1.16 s sage: %time exec(s) CPU times: user 772 ms, sys: 80.7 ms, total: 853 ms Wall time: 857 ms sage: %time v=L() CPU times: user 47.4 ms, sys: 5.4 ms, total: 52.8 ms Wall time: 45.9 ms I don't know if the performance above indicates acceptable behaviour for your use case. If it doesn't then it would seem the python parsing strategy is just not suitable for your application. If it does, then there is something else that's slow. Perhaps running the code exposes some inefficient constructors in sage? -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Huma
Hi Thierry, On 2017-09-16, Thierry wrote: > How does raw "exec" behaves with your large file ? > > sage: with open('your_file.txt') as f: > : exec(preparse(f.read())) Time for my preparser that translates the gap readable into Python readable data is about 3 minutes. The result is a string s that I am using in the following. Time for Sage's preparser: sage: %time sp = preparse("D = "+s) CPU times: user 4min 33s, sys: 1.08 s, total: 4min 34s Wall time: 4min 34s The attempt to exec(sp) soon exhausted 15 GB, Ctrl-C didn't work, and my laptop swapped so badly that I couldn't even open a new terminal to do "pkill python". Cheers, Simon -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: error building sage
yes i have installed all prerequisites On Saturday, September 16, 2017 at 6:20:42 PM UTC+5:30, shivam gor wrote: > > description: Computer > width: 64 bits > capabilities: smp vsyscall32 > *-core >description: Motherboard >physical id: 0 > *-memory > description: System memory > physical id: 0 > size: 7880MiB > *-cpu > product: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz > vendor: Intel Corp. > physical id: 1 > bus info: cpu@0 > size: 2020MHz > capacity: 3100MHz > width: 64 bits > capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce > cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 > ss ht tm pbe syscall nx pdpe1gb rdtscp x86-64 constant_tsc art arch_perfmon > pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf tsc_known_freq pni > pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm > pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx > f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi > flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid > mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves dtherm ida > arat pln pts hwp hwp_notify hwp_act_window hwp_epp cpufreq > *-pci > description: Host bridge > product: Intel Corporation > vendor: Intel Corporation > physical id: 100 > bus info: pci@:00:00.0 > version: 02 > width: 32 bits > clock: 33MHz > *-display > description: VGA compatible controller > product: Intel Corporation > vendor: Intel Corporation > physical id: 2 > bus info: pci@:00:02.0 > version: 02 > width: 64 bits > clock: 33MHz > capabilities: vga_controller bus_master cap_list rom > configuration: driver=i915 latency=0 > resources: irq:280 memory:d100-d1ff > memory:b000-bfff ioport:f000(size=64) memory:c-d > *-generic:0 > description: Signal processing controller > product: Skylake Processor Thermal Subsystem > vendor: Intel Corporation > physical id: 4 > bus info: pci@:00:04.0 > version: 02 > width: 64 bits > clock: 33MHz > capabilities: cap_list > configuration: driver=proc_thermal latency=0 > resources: irq:16 memory:d222-d2227fff > *-usb > description: USB controller > product: Sunrise Point-LP USB 3.0 xHCI Controller > vendor: Intel Corporation > physical id: 14 > bus info: pci@:00:14.0 > version: 21 > width: 64 bits > clock: 33MHz > capabilities: xhci bus_master cap_list > configuration: driver=xhci_hcd latency=0 > resources: irq:125 memory:d221-d221 > *-generic:1 > description: Signal processing controller > product: Sunrise Point-LP Thermal subsystem > vendor: Intel Corporation > physical id: 14.2 > bus info: pci@:00:14.2 > version: 21 > width: 64 bits > clock: 33MHz > capabilities: cap_list > configuration: driver=intel_pch_thermal latency=0 > resources: irq:18 memory:d2238000-d2238fff > *-generic:2 > description: Signal processing controller > product: Sunrise Point-LP Serial IO I2C Controller #0 > vendor: Intel Corporation > physical id: 15 > bus info: pci@:00:15.0 > version: 21 > width: 64 bits > clock: 33MHz > capabilities: bus_master cap_list > configuration: driver=intel-lpss latency=0 > resources: irq:16 memory:d2237000-d2237fff > *-generic:3 > description: Signal processing controller > product: Sunrise Point-LP Serial IO I2C Controller #1 > vendor: Intel Corporation > physical id: 15.1 > bus info: pci@:00:15.1 > version: 21 > width: 64 bits > clock: 33MHz > capabilities: bus_master cap_list > configuration: driver=intel-lpss latency=0 > resources: irq:17 memory:d2236000-d2236fff > *-communication > description: Communication controller > product: Sunrise Point-LP CSME HECI #1 > vendor: Intel Corporation > physical id: 16 > bus info: pci@:00:16.0 > version: 21 >
[sage-devel] Re: error building sage
description: Computer width: 64 bits capabilities: smp vsyscall32 *-core description: Motherboard physical id: 0 *-memory description: System memory physical id: 0 size: 7880MiB *-cpu product: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz vendor: Intel Corp. physical id: 1 bus info: cpu@0 size: 2020MHz capacity: 3100MHz width: 64 bits capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp x86-64 constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp cpufreq *-pci description: Host bridge product: Intel Corporation vendor: Intel Corporation physical id: 100 bus info: pci@:00:00.0 version: 02 width: 32 bits clock: 33MHz *-display description: VGA compatible controller product: Intel Corporation vendor: Intel Corporation physical id: 2 bus info: pci@:00:02.0 version: 02 width: 64 bits clock: 33MHz capabilities: vga_controller bus_master cap_list rom configuration: driver=i915 latency=0 resources: irq:280 memory:d100-d1ff memory:b000-bfff ioport:f000(size=64) memory:c-d *-generic:0 description: Signal processing controller product: Skylake Processor Thermal Subsystem vendor: Intel Corporation physical id: 4 bus info: pci@:00:04.0 version: 02 width: 64 bits clock: 33MHz capabilities: cap_list configuration: driver=proc_thermal latency=0 resources: irq:16 memory:d222-d2227fff *-usb description: USB controller product: Sunrise Point-LP USB 3.0 xHCI Controller vendor: Intel Corporation physical id: 14 bus info: pci@:00:14.0 version: 21 width: 64 bits clock: 33MHz capabilities: xhci bus_master cap_list configuration: driver=xhci_hcd latency=0 resources: irq:125 memory:d221-d221 *-generic:1 description: Signal processing controller product: Sunrise Point-LP Thermal subsystem vendor: Intel Corporation physical id: 14.2 bus info: pci@:00:14.2 version: 21 width: 64 bits clock: 33MHz capabilities: cap_list configuration: driver=intel_pch_thermal latency=0 resources: irq:18 memory:d2238000-d2238fff *-generic:2 description: Signal processing controller product: Sunrise Point-LP Serial IO I2C Controller #0 vendor: Intel Corporation physical id: 15 bus info: pci@:00:15.0 version: 21 width: 64 bits clock: 33MHz capabilities: bus_master cap_list configuration: driver=intel-lpss latency=0 resources: irq:16 memory:d2237000-d2237fff *-generic:3 description: Signal processing controller product: Sunrise Point-LP Serial IO I2C Controller #1 vendor: Intel Corporation physical id: 15.1 bus info: pci@:00:15.1 version: 21 width: 64 bits clock: 33MHz capabilities: bus_master cap_list configuration: driver=intel-lpss latency=0 resources: irq:17 memory:d2236000-d2236fff *-communication description: Communication controller product: Sunrise Point-LP CSME HECI #1 vendor: Intel Corporation physical id: 16 bus info: pci@:00:16.0 version: 21 width: 64 bits clock: 33MHz capabilities: bus_master cap_list configuration: driver=mei_me latency=0 resources: irq:282 memory:d2235000-d2235fff *-storage description: SATA controller product: Sunrise Point-LP SATA Controller [AHCI mode] vendor: Intel C
Re: [sage-devel] bug in cos ?!
Problem solved by upgrading, thanks. Mickaël -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Re: Huma
How does raw "exec" behaves with your large file ? sage: with open('your_file.txt') as f: : exec(preparse(f.read())) Ciao, Thierry On Sat, Sep 16, 2017 at 12:01:57PM +, Simon King wrote: > On 2017-09-16, Thierry wrote: > > Do you have it in the Python/Sage format ? > > K = GF(8,'x') > x = K.gen() > D = { > "group": "A5", > "generators": [ "1a", "1b", "1a1b1", "1b1a1" ], > "npims": 2, > "pimnames": [ "1a", "1b" ], > "cartan": [ [ 2, 1 ], [ 1, 2 ] ], > "dim": [ 3, 3 ], > "adjmat": [ [ 0, 1 ], [ 1, 0 ] ], > "1a": { > "start": 1, > "ende": 1, > "name": "id1a", > "mat": MatrixSpace(K,3,3)([ [ x^0, 0*x, 0*x ], [ 0*x, x^0, 0*x ], > [ 0*x, 0*x, x^0 ] ]) }, > "1b": { > "start": 2, > "ende": 2, > "name": "id1b", > "mat": MatrixSpace(K,3,3)([ [ x^0, 0*x, 0*x ], [ 0*x, x^0, 0*x ], > [ 0*x, 0*x, x^0 ] ]) }, > "1a1b1": { > "start": 2, > "ende": 1, > "name": "1a1b1", > "mat": MatrixSpace(K,3,3)([ [ x^0, x^0, x^0 ], [ x, x^0, 0*x ], > [ x^0, x, 0*x ] ]) }, > "1b1a1": { > "start": 1, > "ende": 2, > "name": "1b1a1", > "mat": MatrixSpace(K,3,3)([ [ x, x^0, 0*x ], [ x, 0*x, x ], > [ x, x^0, 0*x ] ]) }, > "matrices": { > "pim1a": { > 1: [ [ 1, 1, x^0 ], [ 2, 2, x^0 ] ], > 2: [ [ 3, 3, x^0 ] ], > 3: [ [ 3, 2, x^0 ] ], > 4: [ [ 1, 3, x^0 ] ], > "perm": [ 1, 3, 2 ], > "spinningtree": [ { > "ende": 1, > "name": [ ], > "tree": [ ] }, { > "ende": 1, > "name": [ "1b1a1", "1a1b1" ], > "tree": [ 3, 3 ] }, { > "ende": 2, > "name": [ "1b1a1" ], > "tree": [ 1, 4 ] } ] }, > "pim1b": { > 1: [ [ 1, 1, x^0 ] ], > 2: [ [ 2, 2, x^0 ], [ 3, 3, x^0 ] ], > 3: [ [ 2, 1, x^0 ] ], > 4: [ [ 1, 3, x^0 ] ], > "perm": [ 2, 1, 3 ], > "spinningtree": [ { > "ende": 1, > "name": [ "1a1b1" ], > "tree": [ 2, 3 ] }, { > "ende": 2, > "name": [ ], > "tree": [ ] }, { > "ende": 2, > "name": [ "1a1b1", "1b1a1" ], > "tree": [ 1, 4 ] } ] } } } > > Note that the routine I wrote for transforming libgap data > into sage data takes longer than reading the data into libgap. > Probably I didn't do it well. > > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] error building sage
Also did you install all the prerequisites for building sage in your system? The webpage http://doc.sagemath.org/html/en/installation/source.html Shows more detailed instructions how to build sage -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] bug in cos ?!
Thanks, I'll try that, and come back if I have still this issue with the 8.0. Still, big problem in the 7.2 ?! Or could it be related to other libraries ? Mickaël -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] error building sage
Could you give a detailed explanation of the machine you tried to build it on. Including at least your operating system and version and type of prosecor? -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] bug in cos ?!
Hello, you might have missed the minus sign and the "it should be positive" in my post. Best regards, Mickaël On Saturday, September 16, 2017 at 1:33:47 PM UTC+2, David Joyner wrote: > > On Sat, Sep 16, 2017 at 7:27 AM, Mickael Pechaud > > wrote: > > Hello, > > > > I'm running SageMath 7.2, on a 64bits laptop with a Ubuntu 16.04.2 LTS > > (xenial). I got a wrong answer from cos : > > > > sage: float(cos(14*pi/9)) > > -0.17364817766693041 > > > > FYI, cocalc.com returns > > 0.17364817766693041 > > > It should be positive - and it's inconsistent with the following lines : > > > > sage: float(cos(14*pi/9-2*pi)) > > 0.17364817766693041 > > > > > > sage: float(14*pi/9) > > 4.886921905584122 > > > > sage: float(cos(4.886921905584122)) > > 0.17364817766692953 > > > > Am I missing something, or is there an actual problem here ? > > > > Thanks in advance, > > > > Mickaël > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "sage-devel" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to sage-devel+...@googlegroups.com . > > To post to this group, send email to sage-...@googlegroups.com > . > > Visit this group at https://groups.google.com/group/sage-devel. > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Huma
On 2017-09-16, Thierry wrote: > Do you have it in the Python/Sage format ? K = GF(8,'x') x = K.gen() D = { "group": "A5", "generators": [ "1a", "1b", "1a1b1", "1b1a1" ], "npims": 2, "pimnames": [ "1a", "1b" ], "cartan": [ [ 2, 1 ], [ 1, 2 ] ], "dim": [ 3, 3 ], "adjmat": [ [ 0, 1 ], [ 1, 0 ] ], "1a": { "start": 1, "ende": 1, "name": "id1a", "mat": MatrixSpace(K,3,3)([ [ x^0, 0*x, 0*x ], [ 0*x, x^0, 0*x ], [ 0*x, 0*x, x^0 ] ]) }, "1b": { "start": 2, "ende": 2, "name": "id1b", "mat": MatrixSpace(K,3,3)([ [ x^0, 0*x, 0*x ], [ 0*x, x^0, 0*x ], [ 0*x, 0*x, x^0 ] ]) }, "1a1b1": { "start": 2, "ende": 1, "name": "1a1b1", "mat": MatrixSpace(K,3,3)([ [ x^0, x^0, x^0 ], [ x, x^0, 0*x ], [ x^0, x, 0*x ] ]) }, "1b1a1": { "start": 1, "ende": 2, "name": "1b1a1", "mat": MatrixSpace(K,3,3)([ [ x, x^0, 0*x ], [ x, 0*x, x ], [ x, x^0, 0*x ] ]) }, "matrices": { "pim1a": { 1: [ [ 1, 1, x^0 ], [ 2, 2, x^0 ] ], 2: [ [ 3, 3, x^0 ] ], 3: [ [ 3, 2, x^0 ] ], 4: [ [ 1, 3, x^0 ] ], "perm": [ 1, 3, 2 ], "spinningtree": [ { "ende": 1, "name": [ ], "tree": [ ] }, { "ende": 1, "name": [ "1b1a1", "1a1b1" ], "tree": [ 3, 3 ] }, { "ende": 2, "name": [ "1b1a1" ], "tree": [ 1, 4 ] } ] }, "pim1b": { 1: [ [ 1, 1, x^0 ] ], 2: [ [ 2, 2, x^0 ], [ 3, 3, x^0 ] ], 3: [ [ 2, 1, x^0 ] ], 4: [ [ 1, 3, x^0 ] ], "perm": [ 2, 1, 3 ], "spinningtree": [ { "ende": 1, "name": [ "1a1b1" ], "tree": [ 2, 3 ] }, { "ende": 2, "name": [ ], "tree": [ ] }, { "ende": 2, "name": [ "1a1b1", "1b1a1" ], "tree": [ 1, 4 ] } ] } } } Note that the routine I wrote for transforming libgap data into sage data takes longer than reading the data into libgap. Probably I didn't do it well. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Huma
Do you have it in the Python/Sage format ? On Sat, Sep 16, 2017 at 10:37:36AM +, Simon King wrote: > Hi Thierry, > > On 2017-09-16, Thierry wrote: > > could you please give us access to the file (or a sample of it), so that > > we understand how it looke like ? > > Here is my smallest example (in gap-readable format): > > basicalg:=rec( > group := "A5", > generators := [ "1a", "1b", "1a1b1", "1b1a1" ], > npims := 2, > pimnames := [ "1a", "1b" ], > cartan := [ [ 2, 1 ], [ 1, 2 ] ], > field := GF(3), > dim := [ 3, 3 ], > adjmat := [ [ 0, 1 ], [ 1, 0 ] ], > 1a := rec( > start := 1, > ende := 1, > name := "id1a", > mat := [ [ Z(3)^0, 0*Z(3), 0*Z(3) ], [ 0*Z(3), Z(3)^0, 0*Z(3) ], > [ 0*Z(3), 0*Z(3), Z(3)^0 ] ] ), > 1b := rec( > start := 2, > ende := 2, > name := "id1b", > mat := [ [ Z(3)^0, 0*Z(3), 0*Z(3) ], [ 0*Z(3), Z(3)^0, 0*Z(3) ], > [ 0*Z(3), 0*Z(3), Z(3)^0 ] ] ), > 1a1b1 := rec( > start := 2, > ende := 1, > name := "1a1b1", > mat := [ [ Z(3)^0, Z(3)^0, Z(3)^0 ], [ Z(3), Z(3)^0, 0*Z(3) ], > [ Z(3)^0, Z(3), 0*Z(3) ] ] ), > 1b1a1 := rec( > start := 1, > ende := 2, > name := "1b1a1", > mat := [ [ Z(3), Z(3)^0, 0*Z(3) ], [ Z(3), 0*Z(3), Z(3) ], > [ Z(3), Z(3)^0, 0*Z(3) ] ] ), > matrices := rec( > pim1a := rec( > 1 := [ [ 1, 1, Z(3)^0 ], [ 2, 2, Z(3)^0 ] ], > 2 := [ [ 3, 3, Z(3)^0 ] ], > 3 := [ [ 3, 2, Z(3)^0 ] ], > 4 := [ [ 1, 3, Z(3)^0 ] ], > perm := [ 1, 3, 2 ], > spinningtree := [ rec( > ende := 1, > name := [ ], > tree := [ ] ), rec( > ende := 1, > name := [ "1b1a1", "1a1b1" ], > tree := [ 3, 3 ] ), rec( > ende := 2, > name := [ "1b1a1" ], > tree := [ 1, 4 ] ) ] ), > pim1b := rec( > 1 := [ [ 1, 1, Z(3)^0 ] ], > 2 := [ [ 2, 2, Z(3)^0 ], [ 3, 3, Z(3)^0 ] ], > 3 := [ [ 2, 1, Z(3)^0 ] ], > 4 := [ [ 1, 3, Z(3)^0 ] ], > perm := [ 2, 1, 3 ], > spinningtree := [ rec( > ende := 1, > name := [ "1a1b1" ], > tree := [ 2, 3 ] ), rec( > ende := 2, > name := [ ], > tree := [ ] ), rec( > ende := 2, > name := [ "1a1b1", "1b1a1" ], > tree := [ 1, 4 ] ) ] ) ) ); > > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] bug in cos ?!
You should upgrade to a more recent version: ┌┐ │ SageMath version 8.0, Release Date: 2017-07-21 │ │ Type "notebook()" for the browser-based notebook interface.│ │ Type "help()" for help.│ └┘ sage: float(cos(14*pi/9)) 0.17364817766693041 On 16 September 2017 at 12:27, Mickael Pechaud wrote: > Hello, > > I'm running SageMath 7.2, on a 64bits laptop with a Ubuntu 16.04.2 LTS > (xenial). I got a wrong answer from cos : > > sage: float(cos(14*pi/9)) > -0.17364817766693041 > > It should be positive - and it's inconsistent with the following lines : > > sage: float(cos(14*pi/9-2*pi)) > 0.17364817766693041 > > > sage: float(14*pi/9) > 4.886921905584122 > > sage: float(cos(4.886921905584122)) > 0.17364817766692953 > > Am I missing something, or is there an actual problem here ? > > Thanks in advance, > > Mickaël > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] bug in cos ?!
On Sat, Sep 16, 2017 at 7:27 AM, Mickael Pechaud wrote: > Hello, > > I'm running SageMath 7.2, on a 64bits laptop with a Ubuntu 16.04.2 LTS > (xenial). I got a wrong answer from cos : > > sage: float(cos(14*pi/9)) > -0.17364817766693041 > FYI, cocalc.com returns 0.17364817766693041 > It should be positive - and it's inconsistent with the following lines : > > sage: float(cos(14*pi/9-2*pi)) > 0.17364817766693041 > > > sage: float(14*pi/9) > 4.886921905584122 > > sage: float(cos(4.886921905584122)) > 0.17364817766692953 > > Am I missing something, or is there an actual problem here ? > > Thanks in advance, > > Mickaël > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] bug in cos ?!
Hello, I'm running SageMath 7.2, on a 64bits laptop with a Ubuntu 16.04.2 LTS (xenial). I got a wrong answer from cos : sage: float(cos(14*pi/9)) -0.17364817766693041 It should be positive - and it's inconsistent with the following lines : sage: float(cos(14*pi/9-2*pi)) 0.17364817766693041 sage: float(14*pi/9) 4.886921905584122 sage: float(cos(4.886921905584122)) 0.17364817766692953 Am I missing something, or is there an actual problem here ? Thanks in advance, Mickaël -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Faster way to load python code
Hi John, On 2017-09-16, John Cremona wrote: > When I read in files containing a lot of data I don't format the files > to be python code but just data, then write a python function to parse > the input. I tried that, and it is of course no problem to iterate over the matrix entries defined in the data file. However, the iterator over substrings seems a lot slower than to read all data into libgap and iterate over the resulting libgap lists. I thought that Python would be at least as clever (i.e., fast) in reading matrix data than GAP. Best regards, Simon -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Faster way to load python code
Hi Thierry, On 2017-09-16, Thierry wrote: > could you please give us access to the file (or a sample of it), so that > we understand how it looke like ? Here is my smallest example (in gap-readable format): basicalg:=rec( group := "A5", generators := [ "1a", "1b", "1a1b1", "1b1a1" ], npims := 2, pimnames := [ "1a", "1b" ], cartan := [ [ 2, 1 ], [ 1, 2 ] ], field := GF(3), dim := [ 3, 3 ], adjmat := [ [ 0, 1 ], [ 1, 0 ] ], 1a := rec( start := 1, ende := 1, name := "id1a", mat := [ [ Z(3)^0, 0*Z(3), 0*Z(3) ], [ 0*Z(3), Z(3)^0, 0*Z(3) ], [ 0*Z(3), 0*Z(3), Z(3)^0 ] ] ), 1b := rec( start := 2, ende := 2, name := "id1b", mat := [ [ Z(3)^0, 0*Z(3), 0*Z(3) ], [ 0*Z(3), Z(3)^0, 0*Z(3) ], [ 0*Z(3), 0*Z(3), Z(3)^0 ] ] ), 1a1b1 := rec( start := 2, ende := 1, name := "1a1b1", mat := [ [ Z(3)^0, Z(3)^0, Z(3)^0 ], [ Z(3), Z(3)^0, 0*Z(3) ], [ Z(3)^0, Z(3), 0*Z(3) ] ] ), 1b1a1 := rec( start := 1, ende := 2, name := "1b1a1", mat := [ [ Z(3), Z(3)^0, 0*Z(3) ], [ Z(3), 0*Z(3), Z(3) ], [ Z(3), Z(3)^0, 0*Z(3) ] ] ), matrices := rec( pim1a := rec( 1 := [ [ 1, 1, Z(3)^0 ], [ 2, 2, Z(3)^0 ] ], 2 := [ [ 3, 3, Z(3)^0 ] ], 3 := [ [ 3, 2, Z(3)^0 ] ], 4 := [ [ 1, 3, Z(3)^0 ] ], perm := [ 1, 3, 2 ], spinningtree := [ rec( ende := 1, name := [ ], tree := [ ] ), rec( ende := 1, name := [ "1b1a1", "1a1b1" ], tree := [ 3, 3 ] ), rec( ende := 2, name := [ "1b1a1" ], tree := [ 1, 4 ] ) ] ), pim1b := rec( 1 := [ [ 1, 1, Z(3)^0 ] ], 2 := [ [ 2, 2, Z(3)^0 ], [ 3, 3, Z(3)^0 ] ], 3 := [ [ 2, 1, Z(3)^0 ] ], 4 := [ [ 1, 3, Z(3)^0 ] ], perm := [ 2, 1, 3 ], spinningtree := [ rec( ende := 1, name := [ "1a1b1" ], tree := [ 2, 3 ] ), rec( ende := 2, name := [ ], tree := [ ] ), rec( ende := 2, name := [ "1a1b1", "1b1a1" ], tree := [ 1, 4 ] ) ] ) ) ); -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Re: Updating supported platform webpage to mach the current buildbots
On Friday, September 15, 2017 at 7:45:48 PM UTC+2, Maarten Derickx wrote: > > > > On Friday, 15 September 2017 18:55:57 UTC+2, Volker Braun wrote: >> >> >> I haven't used it in a while as buildbot, it possibly still has the old >> domain name configured. But it basically never succeded in building; 32-bit >> is just too small to build docs and 2+ patchbots in the background. >> >> I just restarted sagebd09_32s02 >> > > Hi Volker, > > Thanks for the reply, does you not saying anything about the following > machines > >dehaye >mod >moufang-1 >redhawk > > mean that you do not intend to use them, or does this mean that the status > of these bots depends on the answers of their owners? > I'm pretty sure the moufang-1 and dehaye buildbots are not coming back. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Faster way to load python code
Hi Simon, could you please give us access to the file (or a sample of it), so that we understand how it looke like ? Ciao, Thierry On Sat, Sep 16, 2017 at 09:13:38AM +, Simon King wrote: > Hi! > > I have a large file (2.7*10^6 lines, 204.5*10^6 bytes) of code > that defines a python dict, some dict values are matrices > of dimension roughly 800x1200 over GF(8), some dict values are > other dicts. > > Problem: When I try to load the file with sage.repl.load.load, > my laptop very soon starts swapping. > > The data file is a Python readable translation of a libgap > readable data file. libgap only needs 30 seconds to read the > corresponding data. Thus, it *is* possible to read the data in > reasonable time. > > Is there a faster way to read and evaluate a large python code > block than sage.repl.load.load? > > Best regards, > Simon > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Faster way to load python code
When I read in files containing a lot of data I don't format the files to be python code but just data, then write a python function to parse the input. Mostly my data files are not so large as yours, but I have processed larger ones such as the ones at https://math.dartmouth.edu/~jvoight/hmf.html which are in fact files designed to be read in by Magma (just as yours for GAP), but we have Sage/python code to read it in line by line with no problem. For example the file data_6_01997632 there is this big: $ wc data_6_01997632 91426892 141419775 data_6_01997632 (i.e. 140MB) and reading it in is instantaneous (before doing any processing): sage: f = open("data_6_01997632") sage: %time for L in f.readlines(): n=len(L) CPU times: user 28 ms, sys: 48 ms, total: 76 ms Wall time: 72.9 ms Your job would then be to write your data in a way which makes parsing the input relatively easy. John On 16 September 2017 at 10:13, Simon King wrote: > Hi! > > I have a large file (2.7*10^6 lines, 204.5*10^6 bytes) of code > that defines a python dict, some dict values are matrices > of dimension roughly 800x1200 over GF(8), some dict values are > other dicts. > > Problem: When I try to load the file with sage.repl.load.load, > my laptop very soon starts swapping. > > The data file is a Python readable translation of a libgap > readable data file. libgap only needs 30 seconds to read the > corresponding data. Thus, it *is* possible to read the data in > reasonable time. > > Is there a faster way to read and evaluate a large python code > block than sage.repl.load.load? > > Best regards, > Simon > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] Faster way to load python code
Hi! I have a large file (2.7*10^6 lines, 204.5*10^6 bytes) of code that defines a python dict, some dict values are matrices of dimension roughly 800x1200 over GF(8), some dict values are other dicts. Problem: When I try to load the file with sage.repl.load.load, my laptop very soon starts swapping. The data file is a Python readable translation of a libgap readable data file. libgap only needs 30 seconds to read the corresponding data. Thus, it *is* possible to read the data in reasonable time. Is there a faster way to read and evaluate a large python code block than sage.repl.load.load? Best regards, Simon -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
[sage-devel] error building sage
The following package(s) may have failed to build (not necessarily during this run of 'make all'): * package: openblas-0.2.19.p0 log file: /home/shivam/sage/logs/pkgs/openblas-0.2.19.p0.log build directory: /home/shivam/sage/local/var/tmp/sage/build/openblas-0.2.19.p0 what should be done?? -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.