Skip to content

Commit

Permalink
Removed unnecessary save_data_as_hdf method from CalibrateDisplayShape
Browse files Browse the repository at this point in the history
  • Loading branch information
braden6521 committed Mar 29, 2024
1 parent f11738c commit 358ed5a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions opencsp/app/sofast/lib/CalibrateDisplayShape.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,17 +350,6 @@ def as_DisplayShape(self, name: str) -> DisplayShape:
grid_data.update({'screen_model': 'distorted3D'})
return DisplayShape(grid_data, name)

def save_data_as_hdf(self, file: str) -> None:
"""Saves distortion data to given HDF file"""
# Get data
data = self.get_data()

# Save distortion data
with h5py.File(file, 'w') as f:
f.create_dataset('xy_screen_fraction', data=data['xy_screen_fraction'].data)
f.create_dataset('xyz_screen_coords', data=data['xyz_screen_coords'].data)
print(f'Saved distortion data to: {os.path.abspath(file):s}')

def visualize_located_cameras(self) -> None:
"""Plots cameras and alignment points"""
# Visualize located cameras
Expand Down

0 comments on commit 358ed5a

Please sign in to comment.