cbehan / pycftboot

A free frontend for the conformal bootstrap
MIT License
19 stars 10 forks source link

'symengine.lib.symengine_wrapper.DenseMatrix' object has no attribute 'submatrix' #2

Closed lk11235 closed 8 years ago

lk11235 commented 8 years ago

Hi I installed the current symengine.py with a compatible commit of symengine (b25a8be8b05a0e6469dd58ef6ef28955912c706d). The pycftboot tutorial.py initiates properly displaying the following:

Welcome to the PyCFTBoot tutorial! Please read the comments and watch for coloured text. Which theory would you like to study? These take increasingly long amounts of time.

  1. 3D Ising model (even sector only).
  2. 3D O(3) model.
  3. 3D Ising model (odd sector as well).
  4. 4D N = 1 supersymmetric model. Choice:

However, upon choosing any of these options, I consistently get this output and error:

Finding basic bound at external dimension 0.518... Traceback (most recent call last): File "tutorial.py", line 44, in table1 = bootstrap.ConformalBlockTable(dim, k_max, l_max, m_max, n_max) File "/home/icarus/Downloads/pycftboot-master/bootstrap.py", line 698, in init small_table = ConformalBlockTableSeed(dim, k_max, l_max, min(m_max + 2 * n_max, 3), 0, delta_12, delta_34, odd_spins) File "/home/icarus/Downloads/pycftboot-master/bootstrap.py", line 358, in init r_sub = r_powers[pol_list[l][i][0]].submatrix(0, derivative_order - j, 0, derivative_order - j) AttributeError: 'symengine.lib.symengine_wrapper.DenseMatrix' object has no attribute 'submatrix'

I've attempted to try running previous commits of the tutorial/bootstrap to no avail. How can I fix bootstrap.py so that the ConformalBlockTableSeed function doesn't fault at the line requiring a submatrix?

isuruf commented 8 years ago

Ah, I didn't think anyone was using the submatrix method. New way to do this is, r_sub = r_powers[pol_list[l][i][0]][0:derivative_order - j+1, 0:derivative_order - j+1] instead of, r_sub = r_powers[pol_list[l][i][0]].submatrix(0, derivative_order - j, 0, derivative_order - j)

lk11235 commented 8 years ago

Thank you -- I was able to get the bootstrap.py functions to compile and run!

cbehan commented 8 years ago

Fixed by commit c7fe2a5eaa0aa656e3e4401fe9b43e0f7012a22f.

cbehan commented 8 years ago

Fixed by commit c7fe2a5eaa0aa656e3e4401fe9b43e0f7012a22f. Thanks!