Skip to content

Commit

Permalink
minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
fligt committed Jun 18, 2024
1 parent 50bdbd6 commit 57eb739
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 27 deletions.
4 changes: 2 additions & 2 deletions maxrf4u/hotmax.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# %% auto 0
__all__ = ['HotmaxAtlas', 'compute_hotmax_spectra', 'compute_hotmax_noise', 'compute_subpeaks']

# %% ../notebooks/40_hotmax.ipynb 33
# %% ../notebooks/40_hotmax.ipynb 35
import maxrf4u
import scipy.signal as ssg
import numpy as np
Expand All @@ -14,7 +14,7 @@
import scipy.interpolate as sip
from IPython.display import SVG

# %% ../notebooks/40_hotmax.ipynb 34
# %% ../notebooks/40_hotmax.ipynb 36
class HotmaxAtlas():

def __init__(self, datastack_file, prominence=0.2):
Expand Down
4 changes: 2 additions & 2 deletions maxrf4u/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
__all__ = ['DATASTACK_EXT', 'L', 'Layers', 'raw_to_datastack', 'tree', 'underscorify', 'append', 'append_list', 'repack',
'max_and_sum_spectra', 'DataStack']

# %% ../notebooks/10_storage.ipynb 25
# %% ../notebooks/10_storage.ipynb 24
import maxrf4u

import numpy as np
Expand All @@ -22,7 +22,7 @@
import scipy.signal as ssg
import time

# %% ../notebooks/10_storage.ipynb 26
# %% ../notebooks/10_storage.ipynb 25
# CONSTANTS
DATASTACK_EXT = '.datastack'

Expand Down
12 changes: 0 additions & 12 deletions notebooks/10_storage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,6 @@
"# Storage "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#|hide \n",
"%load_ext autoreload\n",
"%autoreload 2 \n",
"%matplotlib notebook"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
2 changes: 1 addition & 1 deletion notebooks/30_spatial-verus-spectral.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
"metadata": {},
"outputs": [],
"source": [
"FeKa_slice = cube[:,:,is_iron_Ka_band].compute() # load only this slice into memory (take 20 seconds)\n",
"FeKa_slice = cube[:,:,is_iron_Ka_band].compute() # load only this slice into memory (takes 21 seconds)\n",
"FeKa_map = FeKa_slice.sum(axis=2) / 60 # average over number of channels in the Fe_Ka band "
]
},
Expand Down
91 changes: 81 additions & 10 deletions notebooks/40_hotmax.ipynb

Large diffs are not rendered by default.

0 comments on commit 57eb739

Please sign in to comment.