Skip to content

Commit 9516a35

Browse files
committed
rename package from maskastrometry to mascado
1 parent fa385f6 commit 9516a35

19 files changed

+35
-31
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
.cache/
33
__pycache__/
44
docs/build/
5-
docs/source/maskastrometry*
5+
docs/source/mascado*

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ test:
33
python -m unittest discover --start-directory tests
44

55
docupdate:
6-
rm -r docs/source/maskastrometry.*
6+
rm -rf docs/source/mascado.*
77
cd docs; \
8-
sphinx-apidoc -MeT -o source/ ../maskastrometry
8+
sphinx-apidoc -MeT -o source/ ../mascado
99

1010
docbuild:
1111
cd docs; \

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11

2-
# maskastrometry
2+
# MASCADO
33

4-
Package for analyzing geometric distortions of optical systems.
4+
Package for analyzing geometric distortions of optical systems. This
5+
software is meant for quick-look inspection of distortion data sets.
56

6-
To build the documentation get Sphinx and run
7+
The documentation is available at https://tychons.net/mascado/
8+
If you want to build it yourself, get Sphinx and run
79

810
$ make docupdate
911
$ make docbuild

docs/source/conf.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
# -- Options for HTMLHelp output ---------------------------------------------
109109

110110
# Output file base name for HTML help builder.
111-
htmlhelp_basename = 'maskastrometrydoc'
111+
htmlhelp_basename = 'mascadodoc'
112112

113113

114114
# -- Options for LaTeX output ------------------------------------------------
@@ -135,7 +135,7 @@
135135
# (source start file, target name, title,
136136
# author, documentclass [howto, manual, or own class]).
137137
latex_documents = [
138-
(master_doc, 'maskastrometry.tex', 'maskastrometry Documentation',
138+
(master_doc, 'mascado.tex', 'MASCADO Documentation',
139139
'Hannes Riechert', 'manual'),
140140
]
141141

@@ -145,7 +145,7 @@
145145
# One entry per manual page. List of tuples
146146
# (source start file, name, description, authors, manual section).
147147
man_pages = [
148-
(master_doc, 'maskastrometry', 'maskastrometry Documentation',
148+
(master_doc, 'mascado', 'MASCADO Documentation',
149149
[author], 1)
150150
]
151151

@@ -156,8 +156,8 @@
156156
# (source start file, target name, title, author,
157157
# dir menu entry, description, category)
158158
texinfo_documents = [
159-
(master_doc, 'maskastrometry', 'maskastrometry Documentation',
160-
author, 'maskastrometry', 'One line description of project.',
159+
(master_doc, 'mascado', 'MASCADO Documentation',
160+
author, 'mascado', 'One line description of project.',
161161
'Miscellaneous'),
162162
]
163163

docs/source/index.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ Welcome to the MASCADO project documentation!
44

55
The delicious inspection tool for Mask AStrometry for MICADO.
66

7+
Project is on Github at `<https://github.com/tychon/mascado>`_.
8+
79
.. toctree::
810
:maxdepth: 4
911
:caption: Contents:
1012

1113
scripts
12-
maskastrometry.distortions
13-
maskastrometry.utility
14+
mascado.distortions
15+
mascado.utility
1416

1517

1618
License

docs/source/scripts.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ User Scripts
33
============
44

55
In the ``./scripts`` directory of the repository you can find several
6-
scripts for various tasks. Since they are using the
7-
``maskastrometry`` module, you have to make that available in your
8-
python path, or run the scripts from the repository root using::
6+
scripts for various tasks. Since they are using the ``mascado``
7+
module, you have to make that available in your python path, or run
8+
the scripts from the repository root using::
99

1010
$ python3 -m scripts.SCRIPTNAME ARGS...
1111

File renamed without changes.
File renamed without changes.

maskastrometry/distortions/polyfit.py mascado/distortions/polyfit.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Examples
1515
--------
1616
17-
>>> from maskastrometry.distortions.polynomials import (
17+
>>> from mascado.distortions.polynomials import (
1818
... PolyVectorField, Legendre)
1919
>>> vf = PolyVectorField(Legendre(3))
2020
>>> grid = np.array([[0, 0], [1, 1], [0, 1], [1, 0], [0.5, 0.5]])
@@ -43,7 +43,7 @@ def polyfit_svd(vf, positions, vectors, sigmas=None,
4343
4444
Parameters
4545
----------
46-
vf : :class:`maskastrometry.distortions.polynomials.PolyVectorField`
46+
vf : :class:`mascado.distortions.polynomials.PolyVectorField`
4747
Model of vector field providing the Vandermonde matrix.
4848
positions : (N,2)-shaped array
4949
x,y positions of data points.
@@ -206,7 +206,7 @@ def polyfit_svd_iterative(vf, positions, vectors, sigmas, maxoutliers,
206206
207207
Parameters
208208
----------
209-
vf : :class:`maskastrometry.distortions.polynomials.PolyVectorField`
209+
vf : :class:`mascado.distortions.polynomials.PolyVectorField`
210210
2D vector field. Internal parameters are neither used nor changed.
211211
positions : (N, 2)-shaped array
212212
vectors : (N, 2)-shaped array
File renamed without changes.
File renamed without changes.
File renamed without changes.

maskastrometry/utility/plotting.py mascado/utility/plotting.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
from matplotlib.gridspec import GridSpec
1212
from matplotlib.ticker import MaxNLocator
1313

14-
from maskastrometry.distortions.polynomials import PolyVectorField, Legendre
15-
from maskastrometry.distortions.polyfit import polyfit_svd
14+
from mascado.distortions.polynomials import PolyVectorField, Legendre
15+
from mascado.distortions.polyfit import polyfit_svd
1616

1717

1818
def set_fontsize(small=8, medium=10, bigger=12):
File renamed without changes.

scripts/analyze_grid.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import numpy as np
99
import matplotlib.pyplot as plt
1010

11-
import maskastrometry.utility.affine as affine
12-
import maskastrometry.utility.zemax as zemax
13-
import maskastrometry.utility.plotting as plotting
11+
import mascado.utility.affine as affine
12+
import mascado.utility.zemax as zemax
13+
import mascado.utility.plotting as plotting
1414

1515

1616
def main():

scripts/compare_grids.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
import numpy as np
1010
import matplotlib.pyplot as plt
1111

12-
import maskastrometry.utility.affine as affine
13-
import maskastrometry.utility.zemax as zemax
14-
import maskastrometry.utility.plotting as plotting
12+
import mascado.utility.affine as affine
13+
import mascado.utility.zemax as zemax
14+
import mascado.utility.plotting as plotting
1515

1616

1717
def main():

tests/test_polyfit.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from unittest import TestCase
77

88
import numpy as np
9-
from maskastrometry.distortions.polynomials import PolyVectorField, Legendre
10-
from maskastrometry.distortions.polyfit import (
9+
from mascado.distortions.polynomials import PolyVectorField, Legendre
10+
from mascado.distortions.polyfit import (
1111
polyfit_svd, polyfit_svd_iterative)
1212

1313

tests/test_polynomials.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import numpy as np
99

10-
from maskastrometry.distortions.polynomials import (
10+
from mascado.distortions.polynomials import (
1111
Cartesian, Legendre, Chebyshev, Zernike,
1212
PolyVectorField)
1313

tests/test_utilities.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import numpy as np
99
import pandas as pd
1010

11-
from maskastrometry.utility import affine
11+
from mascado.utility import affine
1212

1313

1414
class AffineTestCase (TestCase):

0 commit comments

Comments
 (0)