Skip to content

Commit 48b2864

Browse files
author
GitHub Actions
committed
Updated source files for modified notebooks
1 parent 4db56bb commit 48b2864

1 file changed

Lines changed: 9 additions & 16 deletions

File tree

src/templates/eds-sample-analysis.md

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@ jupyter:
1414
<a href="https://colab.research.google.com/github/project-ida/arpa-e-experiments/blob/main/templates/eds-sample-analysis.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://nbviewer.org/github/project-ida/arpa-e-experiments/blob/main/templates/eds-sample-analysis.ipynb" target="_parent"><img src="https://nbviewer.org/static/img/nav_logo.svg" alt="Open In nbviewer" width="100"/></a>
1515

1616
<!-- #region id="7f188c81" -->
17-
*Overview: This cell explains the notebook purpose and basic usage.*
18-
19-
# EDS Spectrum template
17+
# EDS Analysis template
2018

2119
This notebook provides a quick, end-to-end demo for ROI-based EDS analysis:
22-
it pulls a saved ROI set from the Surface Viewer API, builds a table of selected tiles,
23-
loads the corresponding spectra, aggregates them, and runs a simple first-pass peak analysis.
20+
it pulls saved regions from the Surface Viewer API, builds a table of selected cells, loads the corresponding spectra, aggregates them, and runs a simple first-pass peak analysis.
2421

2522
## How to use
2623

@@ -576,11 +573,11 @@ display(range_suggestions_df)
576573
# Choose the display range to apply when creating the overlay heatmap.
577574

578575
# Pick one of the suggested ranges from range_suggestions_df above, then edit if desired.
579-
VMIN = 3
580-
VMAX = 9039
576+
VMIN = 0
577+
VMAX = 11262
581578
```
582579

583-
```python colab={"base_uri": "https://localhost:8080/", "height": 507} id="5tVt5_NzI30V" outputId="d7b93941-ae7c-4e80-e63a-f12aec7e3ed1"
580+
```python colab={"base_uri": "https://localhost:8080/", "height": 507} id="5tVt5_NzI30V" outputId="90ea44ac-ddd2-4ee9-988e-0ade4e4f679e"
584581
# Preview the chosen overlay range on the combined log-scale band-sum histogram.
585582

586583
plt.figure(figsize=(10, 5))
@@ -600,7 +597,7 @@ plt.tight_layout()
600597
plt.show()
601598
```
602599

603-
```python id="33caf51e"
600+
```python colab={"base_uri": "https://localhost:8080/"} id="33caf51e" outputId="cee77577-ae65-4245-e8c7-8f539db0e2af"
604601
# Authenticate to the overlay API and extract dataset metadata from the ROI URL.
605602

606603
auth = get_api_auth()
@@ -613,7 +610,7 @@ print("Input folder:", input_folder)
613610
print(f"Using resolved band: {band_start_ch}{band_end_ch} channels")
614611
```
615612

616-
```python id="599dffb5"
613+
```python colab={"base_uri": "https://localhost:8080/"} id="599dffb5" outputId="bd49793e-f1c4-4ce9-d160-c70025fefb6c"
617614
# Create the overlay heatmap and print both the overlay URL and the sample viewer link.
618615

619616
resp_create = create_overlay(
@@ -645,10 +642,10 @@ overlay_file
645642
```python id="36jZsLOhHfvW"
646643
# Specify an overlay filename if you want to delete an existing overlay.
647644

648-
overlay_file_to_be_deleted = "overlays/heatmap_ch400-700_rng3-9039.json" # replace with the file you want to delete
645+
overlay_file_to_be_deleted = "overlays/heatmap_ch500-1000_rng9000-12000.json" # replace with the file you want to delete
649646
```
650647

651-
```python id="28976f42"
648+
```python colab={"base_uri": "https://localhost:8080/"} id="28976f42" outputId="359e75eb-9ce9-4680-e5f3-fc190f92a8de"
652649
# # Delete the selected overlay heatmap file from the server.
653650

654651
# resp_delete = delete_overlay(
@@ -657,7 +654,3 @@ overlay_file_to_be_deleted = "overlays/heatmap_ch400-700_rng3-9039.json" # repl
657654
# overlay_file=overlay_file_to_be_deleted,
658655
# )
659656
```
660-
661-
```python id="eRsaOwHggVev"
662-
663-
```

0 commit comments

Comments
 (0)