Skip to content

Commit b17b739

Browse files
committed
consistent naming
1 parent 31d5916 commit b17b739

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

tests/conftest.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,16 @@ def coordinates_transform_tutorial() -> HtmlTestData:
4848
"""The Coordinates-Transform.html tutorial page."""
4949
return HtmlTestData.from_test_path(
5050
path="tutorials/Coordinates-Transform.html",
51-
url="http://learn.astropy.org/rst-tutorials/"
52-
"Coordinates-Transform.html",
51+
url="http://learn.astropy.org/rst-tutorials/Coordinates-Transform.html",
5352
)
5453

5554

5655
@pytest.fixture(scope="session")
5756
def nbcollection_coordinates_transform_tutorial() -> HtmlTestData:
5857
"""The nbcollection-generated Coordinates-Transform.html tutorial page."""
5958
return HtmlTestData.from_test_path(
60-
path="nbcollection-tutorials/2-Coordinates-Transforms.html",
61-
url="http://learn.astropy.org/tutorials/2-Coordinates-Transforms.html",
59+
path="nbcollection-tutorials/2_Coordinates-Transforms.html",
60+
url="http://learn.astropy.org/tutorials/2_Coordinates-Transforms.html",
6261
)
6362

6463

@@ -68,8 +67,8 @@ def nbcollection_coordinates_transform_tutorial_2022_03() -> HtmlTestData:
6867
newly reformatted as of 2022-03.
6968
"""
7069
return HtmlTestData.from_test_path(
71-
path="nbcollection-tutorials/2-Coordinates-Transforms-2022-03.html",
72-
url="http://learn.astropy.org/tutorials/2-Coordinates-Transforms.html",
70+
path="nbcollection-tutorials/2_Coordinates-Transforms-2022-03.html",
71+
url="http://learn.astropy.org/tutorials/2_Coordinates-Transforms.html",
7372
)
7473

7574

@@ -82,8 +81,7 @@ def ccd_guide_index() -> HtmlTestData:
8281
"""
8382
return HtmlTestData.from_test_path(
8483
path="ccd-guide/index.html",
85-
url="http://www.astropy.org/ccd-reduction-and-photometry-guide/"
86-
"index.html",
84+
url="http://www.astropy.org/ccd-reduction-and-photometry-guide/index.html",
8785
)
8886

8987

tests/data/nbcollection-tutorials/2-Coordinates-Transforms-2022-03.html renamed to tests/data/nbcollection-tutorials/2_Coordinates-Transforms-2022-03.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head><meta charset="utf-8" />
44
<meta name="viewport" content="width=device-width, initial-scale=1.0">
55

6-
<title>2-Coordinates-Transforms</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
6+
<title>2_Coordinates-Transforms</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
77

88

99

@@ -14590,8 +14590,8 @@ <h2 id="Summary">Summary<a class="anchor-link" href="#Summary">&#182;</a></h2><p
1459014590
<p>In this tutorial, we will explore how the <code>astropy.coordinates</code> package can be used to transform astronomical coordinates between different coordinate systems or frames. You may find it helpful to keep <a href="http://docs.astropy.org/en/stable/coordinates/index.html">the Astropy documentation for the coordinates package</a> open alongside this tutorial for reference or additional reading. In the text below, you may also see some links that look like (<a href="http://docs.astropy.org/en/stable/coordinates/index.html">docs</a>). These links will take you to parts of the documentation that are directly relevant to the cells from which they link.</p>
1459114591
<p><em>Note: This is the 2nd tutorial in a series of tutorials about astropy.coordinates. If you are new to astropy.coordinates, you may want to start from the beginning or an earlier tutorial.</em></p>
1459214592
<ul>
14593-
<li><a href="1-Coordinates-Intro">Previous tutorial: Astronomical Coordinates 1 - Getting Started</a></li>
14594-
<li><a href="3-Coordinates-Velocities">Next tutorial: Astronomical Coordinates 3 - Working with Velocity Data</a></li>
14593+
<li><a href="1_Coordinates-Intro">Previous tutorial: Astronomical Coordinates 1 - Getting Started</a></li>
14594+
<li><a href="3_Coordinates-Velocities">Next tutorial: Astronomical Coordinates 3 - Working with Velocity Data</a></li>
1459514595
</ul>
1459614596

1459714597
</div>
@@ -14701,7 +14701,7 @@ <h2 id="Coordinate-Component-Formats">Coordinate Component Formats<a class="anch
1470114701
</div>
1470214702
<div class="jp-InputArea jp-Cell-inputArea"><div class="jp-InputPrompt jp-InputArea-prompt">
1470314703
</div><div class="jp-RenderedHTMLCommon jp-RenderedMarkdown jp-MarkdownOutput " data-mime-type="text/markdown">
14704-
<p>See the previous tutorial <a href="1-Coordinates-Intro">Astronomical Coordinates 1 - Getting Started</a> for more examples of this.</p>
14704+
<p>See the previous tutorial <a href="1_Coordinates-Intro">Astronomical Coordinates 1 - Getting Started</a> for more examples of this.</p>
1470514705
<h2 id="Coordinate-Representations">Coordinate Representations<a class="anchor-link" href="#Coordinate-Representations">&#182;</a></h2><p>In the previous tutorial, we only worked with coordinate data in spherical representations (longitude/latitude), but <code>astropy.coordinates</code> also supports other coordinate representations like Cartesian, cylindrical, etc. (<a href="https://docs.astropy.org/en/stable/coordinates/skycoord.html#astropy-skycoord-representations">docs</a>). To retrieve the coordinate data in a different representation, we can use the <code>SkyCoord.represent_as()</code> method. This method either takes a string name of the desired representation, for example:</p>
1470614706

1470714707
</div>

0 commit comments

Comments
 (0)