Skip to content

Instantly share code, notes, and snippets.

@harshadsurdi
harshadsurdi / numpy_install.txt
Created April 15, 2013 12:29
Latest Numpy / Scipy installation on windows. While installing numpy 1.7.0 I got the following errors. Guessing by the comments in the error, I suppose it is the unavailability of the LAPACK & ATLAS libraries; but the installation of these libraries on windows is not a trivial task. Some help will be greatly appreciated.
H:\Python\numpy-1.7.0\numpy-1.7.0>python setup.py
Running from numpy source directory.
========================================================================
Starting interactive session
------------------------------------------------------------------------
Tasks:
i - Show python/platform/machine information
ie - Show environment information
c - Show C compilers information
@harshadsurdi
harshadsurdi / Nelder-Mead.py
Created October 29, 2012 13:09
Optimization Problem - I need a fresh start!
#-------------------------------------------------------------------------------
# Name: Nelder-Mead
# Purpose:
#
# Author: Harshad
#
# Created: 25-10-2012
# Copyright: (c) Harshad 2012
# Licence: <your licence>
#-------------------------------------------------------------------------------
@harshadsurdi
harshadsurdi / filewrite.py
Created October 1, 2012 11:16
the name of the file that I am giving at line number 121 gives a IOError: [Errno 22] invalid mode ('w') or filename: 'E:\\Harshad\\Thz Spectroscopy\nk.txt', WHAT THE HELL!
from pylab import *
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import math
from scipy.optimize import *
import cmath as cm
import powell
from powell import *
from decimal import *
@harshadsurdi
harshadsurdi / Coutaz.py
Created September 17, 2012 07:46
The math range annoying error
##==============================================================================##
##-----------ALL IMPORTS-----------##
from pylab import *
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import math
from scipy.optimize import *