Skip to content

Commit e55949c

Browse files
committed
differences for PR #264
1 parent 0696d06 commit e55949c

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

07-photo.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -468,9 +468,7 @@ defined, to verify that the results are as expected.
468468
```python
469469
test_points = [(0.4, 20),
470470
(0.4, 16)]
471-
```
472471

473-
```python
474472
test_inside_mask = polygon.contains_points(test_points)
475473
test_inside_mask
476474
```
@@ -511,7 +509,7 @@ Here is how we can save it in an HDF5 file.
511509

512510
```python
513511
filename = 'gd1_data.hdf'
514-
loop_df.to_hdf(filename, 'loop_df')
512+
loop_df.to_hdf(filename, key='loop_df')
515513
```
516514

517515
## Selecting based on photometry
@@ -568,7 +566,7 @@ inside_mask.sum()
568566
```
569567

570568
```output
571-
486
569+
np.int64(486)
572570
```
573571

574572
:::::::::::::::::::::::::
@@ -612,8 +610,8 @@ x = winner_df['phi1']
612610
y = winner_df['phi2']
613611
plt.plot(x, y, 'ko', markersize=0.7, alpha=0.9)
614612

615-
plt.xlabel('$\phi_1$ [deg]')
616-
plt.ylabel('$\phi_2$ [deg]')
613+
plt.xlabel(r'$\phi_1$ [deg]')
614+
plt.ylabel(r'$\phi_2$ [deg]')
617615
plt.title('Proper motion + photometry selection', fontsize='medium')
618616

619617
plt.axis('equal');
@@ -650,8 +648,8 @@ def plot_cmd_selection(df):
650648

651649
plt.plot(x, y, 'ko', markersize=0.7, alpha=0.9)
652650

653-
plt.xlabel('$\phi_1$ [deg]')
654-
plt.ylabel('$\phi_2$ [deg]')
651+
plt.xlabel(r'$\phi_1$ [deg]')
652+
plt.ylabel(r'$\phi_2$ [deg]')
655653
plt.title('Proper motion + photometry selection', fontsize='medium')
656654

657655
plt.axis('equal')
@@ -676,7 +674,7 @@ Finally, we will write the selected stars to a file.
676674

677675
```python
678676
filename = 'gd1_data.hdf'
679-
winner_df.to_hdf(filename, 'winner_df')
677+
winner_df.to_hdf(filename, key='winner_df')
680678
```
681679

682680
```python

md5sum.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"episodes/04-motion.md" "45ae38d6fdf58d23845a45c7e003eb10" "site/built/04-motion.md" "2025-12-09"
1010
"episodes/05-select.md" "ddb28c6b618fccdb978b3f10603456c3" "site/built/05-select.md" "2025-12-09"
1111
"episodes/06-join.md" "727db2dc018477415c5278714483a0f3" "site/built/06-join.md" "2025-12-09"
12-
"episodes/07-photo.md" "34fdbecffbc6fda5e8a549b38b28e50b" "site/built/07-photo.md" "2025-12-09"
12+
"episodes/07-photo.md" "04517b3fd1615088f7911393c7ce0fde" "site/built/07-photo.md" "2025-12-11"
1313
"episodes/08-plot.md" "6b5f660b64a3426a2bef409d22fe7d82" "site/built/08-plot.md" "2025-12-10"
1414
"instructors/calculating_MIST_isochrone.md" "3201f3ca13dc11bbef74a7d24a433362" "site/built/calculating_MIST_isochrone.md" "2023-05-15"
1515
"instructors/instructor-notes.md" "f989cad016e09fae5840a8520eac79fb" "site/built/instructor-notes.md" "2025-09-30"

0 commit comments

Comments
 (0)