Skip to content

Commit 3af4db4

Browse files
authored
Merge pull request FABLE-3DXRD#466 from jadball/master
Small bugfixes with unitcell Phases class and 7_stack_layers notebook
2 parents bebf99a + a4c7f04 commit 3af4db4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ImageD11/nbGui/S3DXRD/7_stack_layers.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
" elif stack_combined:\n",
161161
" ds.tensor_map = TensorMap.from_h5(os.path.join(ds.analysispath, f'{ds.sample}_{ds.dset}_tmap_combined.h5'))\n",
162162
" elif stack_refined:\n",
163-
" ds.tensor_map = TensorMap.from_h5(os.path.join(ds.analysispath, f'{ds.sample}_{ds.dset}_refiend_tmap_{phase_str}.h5'))\n",
163+
" ds.tensor_map = TensorMap.from_h5(os.path.join(ds.analysispath, f'{ds.sample}_{ds.dset}_refined_tmap_{phase_str}.h5'))\n",
164164
" else:\n",
165165
" ds.tensor_map = TensorMap.from_h5(os.path.join(ds.analysispath, f'{ds.sample}_{ds.dset}_tmap_{phase_str}.h5'))\n",
166166
"\n",

ImageD11/unitcell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ class Phases(AnalysisSchema):
166166
Reads analysis parameters from file
167167
Contains self.unitcells which is a dict of unitcell objects
168168
"""
169-
def __init__(self, filename):
170-
super(Phases, self).__init__(filename)
169+
def __init__(self, filename=None):
170+
super(Phases, self).__init__(filename=filename)
171171
self.unitcells = {}
172172
if filename is not None:
173173
self.get_unitcells()

0 commit comments

Comments
 (0)