Skip to content

Commit

Permalink
Merge pull request #71 from andrewpaulreeves/master
Browse files Browse the repository at this point in the history
Move to setuptools to fix installation issues
  • Loading branch information
matthewtownson authored Apr 18, 2017
2 parents 4dbcc0f + fdf28b3 commit 1bdc02c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
15 changes: 2 additions & 13 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from distutils.core import setup
from setuptools import setup, find_packages
import versioneer


Expand All @@ -15,18 +15,7 @@
cmdclass=versioneer.get_cmdclass(),
author='Andrew Reeves',
author_email='[email protected]',
packages=[ 'soapy',
'soapy.wfs',
'soapy.aotools',
'soapy.aotools.centroiders',
'soapy.aotools.circle',
'soapy.aotools.interp',
'soapy.aotools.phasescreen',
'soapy.aotools.turbulence',
'soapy.aotools.wfs',
'soapy.aotools.fft',
'soapy.pyqtgraph'
],
packages=find_packages(),
scripts=['bin/soapy'],
description='A tomographic astronomical adaptive optics simulation with realistic laser guide star propagation.',
long_description=open('README.md').read(),
Expand Down
2 changes: 1 addition & 1 deletion soapy/DM.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def makeIMatShapes(self):
self.acts, self.simConfig.pupilSize, self.simConfig.pupilSize))

actSpacing = self.simConfig.pupilSize/(self.dmConfig.nxActuators-1)
width = actSpacing/2.
width = actSpacing * self.dmConfig.gauss_width

for i in xrange(self.acts):
x,y = self.activeActs[i]*actSpacing
Expand Down
8 changes: 6 additions & 2 deletions soapy/confParse.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,10 @@ class in the ``DM`` module.
optically conjugated. ``0``
``diameter`` float: Diameter covered by DM in
metres. If ``None`` if telescope
diameter. ``None``
diameter. ``None``
``gauss_width`` float: Width of gaussian influence
functions in units of actuator
spacing. ``1``
==================== ================================= ===========
"""

Expand All @@ -944,7 +947,8 @@ class in the ``DM`` module.
("interpOrder", 2),
("gaussWidth", 0.5),
("altitude", 0.),
("diameter", None)
("diameter", None),
("gauss_width", 0.7),
]

calculatedParams = [
Expand Down

0 comments on commit 1bdc02c

Please sign in to comment.