Skip to content

Commit

Permalink
WIP:DEV
Browse files Browse the repository at this point in the history
  • Loading branch information
Brianna Major committed Sep 6, 2024
1 parent 654d61c commit 4033a97
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hexrdgui/hexrd_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,7 @@ def read_yaml():
conf = yaml.load(f, Loader=NumPyIncludeLoader)

instr = HEDMInstrument(conf, tilt_calibration_mapping=rme)
print(dir(instr))
return utils.instr_to_internal_dict(instr)

def read_hexrd():
Expand All @@ -1074,7 +1075,7 @@ def read_file(f):
else:
with h5py.File(path, 'r') as f:
instr = read_file(f)

print(dir(instr), dir(instr.detectors))
return utils.instr_to_internal_dict(instr)

formats = {
Expand All @@ -1092,6 +1093,7 @@ def read_file(f):
raise Exception(f'Unknown extension: {ext}')

self.config['instrument'] = formats[ext]()
# print(self.config['instrument'])

# Set any required keys that might be missing to prevent key errors
self.set_defaults_if_missing()
Expand Down
10 changes: 10 additions & 0 deletions hexrdgui/physics_package_manager_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
from hexrd.material import _angstroms, _kev, Material


''' TODO
- Get absoprtion_length for RyggPinholeDistortion from physics package (only param left may be num_phi_elements)
- Add sample and window materials files (like the pinhole materials h5 file)
- Apply pinhole corrections by default if physics package has pinhole - doesn't it always have this??
- Set absorbtion on detector
- Add absorption correction as read-only value in dialog
- Make sure state files are backwards compatible (look in overlay class - sample correction will have everything, pinhole will be missing info)
- Check out calibration stuff for more places things may need to be updated
'''

class PhysicsPackageManagerDialog:

def __init__(self, parent=None):
Expand Down

0 comments on commit 4033a97

Please sign in to comment.