Skip to content

Commit 1ff6a12

Browse files
committed
differences for PR #266
1 parent c86e30f commit 1ff6a12

File tree

4 files changed

+36
-9
lines changed

4 files changed

+36
-9
lines changed

02-coords.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ perpendicular to the direction of the stream (the y-axis in Figure 1).
395395
These are called the $\phi_1$ and $\phi_2$ coordinates, respectively.
396396

397397
```python
398-
from gala.coordinates import GD1Koposov10
398+
from gd1 import GD1Koposov10
399399

400400
gd1_frame = GD1Koposov10()
401401
gd1_frame
@@ -405,6 +405,21 @@ gd1_frame
405405
<GD1Koposov10 Frame>
406406
```
407407

408+
::::::::::::::::::::::::::::::::::::::::: callout
409+
410+
## GD1Koposov10 import
411+
412+
The `GD1Koposov10` reference frame is part of the `gala` package. For convience we provide
413+
the stand alone file as part of the `student_download` zip file you downloaded. If your notebook
414+
is not in your `student_download` directory, you will need to add the following before the import
415+
statement
416+
```python
417+
import sys
418+
sys.path.append(<path to student_download>)
419+
```
420+
Where `<path to student_download>` is the path to your `student_download` directory ending with `student_download`.
421+
::::::::::::::::::::::::::::::::::::::::::::::::::
422+
408423
We can use it to find the coordinates of Betelgeuse in the GD-1 frame,
409424
like this:
410425

03-transform.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,21 @@ Whether you are working from a new notebook or coming back from a checkpoint,
6363
reloading the data will save you from having to run the query again.
6464

6565
If you are starting this episode here or starting this episode in a new notebook,
66-
you will need to run the following lines of code.
66+
you will need to run the following lines of code. The last two lines of the import
67+
statements assume your notebook is being run in the `student_download` directory.
68+
If you are running it from a different directory you will need to add the path using
69+
`sys.path.append(<path to student download>)` where `<path to student_download>` is
70+
the path to your `student_download` directory ending with `student_download`.
6771

6872
This imports previously imported functions:
6973

7074
```python
7175
import astropy.units as u
7276
from astropy.coordinates import SkyCoord
73-
from gala.coordinates import GD1Koposov10
7477
from astropy.table import Table
7578

7679
from episode_functions import *
80+
from gd1 import GD1Koposov10
7781
```
7882

7983
The following code loads in the data (instructions for downloading data can be
@@ -430,10 +434,11 @@ That might seem like a strange thing to do, but here is the motivation:
430434
With this preparation, we can use `reflex_correct` from Gala
431435
([documentation
432436
here](https://gala-astro.readthedocs.io/en/latest/api/gala.coordinates.reflex_correct.html))
433-
to correct for the motion of the solar system.
437+
to correct for the motion of the solar system which we have included as a stand alone file
438+
in the `student_download`.
434439

435440
```python
436-
from gala.coordinates import reflex_correct
441+
from reflex import reflex_correct
437442

438443
skycoord_gd1 = reflex_correct(transformed)
439444
```

05-select.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,12 @@ Whether you are working from a new notebook or coming back from a checkpoint,
6464
reloading the data will save you from having to run the query again.
6565

6666
If you are starting this episode here or starting this episode in a new notebook,
67-
you will need to run the following lines of code.
67+
you will need to run the following lines of code. The last two lines of the import
68+
statements assume your notebook is being run in the `student_download` directory.
69+
If you are running it from a different directory you will need to add the path using
70+
`sys.path.append(<path to student download>)` where `<path to student_download>` is
71+
the path to your `student_download` directory ending with `student_download`.
72+
6873

6974
This imports previously imported functions:
7075

@@ -77,6 +82,8 @@ import matplotlib.pyplot as plt
7782
import pandas as pd
7883

7984
from episode_functions import *
85+
from gd1 import GD1Koposov10
86+
from reflex import reflex_correct
8087
```
8188

8289
The following code loads in the data (instructions for downloading data can be

md5sum.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"config.yaml" "0e6ae143684e18b060df625762ff29b4" "site/built/config.yaml" "2023-05-15"
55
"index.md" "f26708b73f13068fbf4c8da251f0c3de" "site/built/index.md" "2024-03-08"
66
"episodes/01-query.md" "a1f4d87ba15684c468444c4a626bec08" "site/built/01-query.md" "2025-12-12"
7-
"episodes/02-coords.md" "e09a9430b981e5bd93578ce45cd61225" "site/built/02-coords.md" "2025-12-09"
8-
"episodes/03-transform.md" "8e592b64c12491cf08ee2eb594c50830" "site/built/03-transform.md" "2025-12-12"
7+
"episodes/02-coords.md" "e104b425bc19cb6dbd55215c7426199a" "site/built/02-coords.md" "2025-12-12"
8+
"episodes/03-transform.md" "661b4c84964b3e00bf95b0897fccc4e7" "site/built/03-transform.md" "2025-12-12"
99
"episodes/04-motion.md" "ebe3073ff00da59c6e90017f9b28cfef" "site/built/04-motion.md" "2025-12-12"
10-
"episodes/05-select.md" "65a0014a842bc8d8999109187c8e7be4" "site/built/05-select.md" "2025-12-12"
10+
"episodes/05-select.md" "cd4f863cdc248b508c863be4fda0bd94" "site/built/05-select.md" "2025-12-12"
1111
"episodes/06-join.md" "bf961f98c1c7cdd40b174fb1f5007b32" "site/built/06-join.md" "2025-12-12"
1212
"episodes/07-photo.md" "04517b3fd1615088f7911393c7ce0fde" "site/built/07-photo.md" "2025-12-12"
1313
"episodes/08-plot.md" "66a98a56805813963923aea5a90fe684" "site/built/08-plot.md" "2025-12-12"

0 commit comments

Comments
 (0)