Posts

Showing posts from February, 2022

Mayavi and Spyder

 Mayavi and Spyder don't seem to get along. I am doing some mlab.points3D plotting. The Mayavi Scene keeps hanging. It works sometimes, but doesn't most of the time. But, if I run the same script from IDLE, it works fine. I'm yet to figure out what's going on.

Resolving FORTRAN 77 Errors

Cannot assign to a named constant at (1) Probably trying to assign something to an array, e.g. MYARR(I)=5.E0. The array was not declared in the DIMENSION or COMMON blocks. Just add MYARR (100) or whatever size to one of the above. The function result on the lhs of the assignment at (1) must have the pointer attribute. Seems to be the same as above, maybe for 2D arrays(?) Type mismatch in argument 'xx' at (1); passed INTEGER(4) to REAL(8) The variable, XX is an argument in some function. When you are calling the function, you are passing some variable, named say NDIME. If there's this line in your code:  IMPLICIT REAL*8(A-H,O-Z), it means all variables whose names start with letter between H and O (not included) are integers. So, either: Check whether that's the correct variable you want to pass If so, give a different name, starting with letters A-H, O-Z More actual than formal arguments in procedure call at (1) You're function has 2 arguments, but you're c...

Using plain Spyder

 I used to work with the default Python IDLE for short scripts. When I needed to manage a larger project, I installed Spyder. But, simply downloading Spyder from the website and installing has it's own difficulties. It comes with it's own Python interpreter, making installation of modules complicated. For using plain Spyder with Anaconda or anything, here is what worked for me: Install Python interpreter From cmd, do 'pip install sypder' To run spyder, just type 'spyder' That's it! Now you have Spyder without any external interpreter. All modules can be installed normally with pip install and accessed from Spyder. (this was successfully tested on Windows 10 with Python 3.9) Edit: Issues on Python 3.10: "cannot import name 'MutableMapping' from 'collections'"