Skip to content

Commit

Permalink
Update _utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ZAARAOUI999 authored Dec 19, 2023
1 parent c745924 commit fc4ff8a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hypermat/_calibration/_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

####################### - بــسم الله الرحمــان الرحيــم - #####################

"""
HyperMAT
Created August 2023
Expand All @@ -24,6 +27,7 @@
import matplotlib.pyplot as plt

def init_plot():
"""Initialize plot"""
matplotlib.rcParams['font.family'] = ['Times New Roman']
plt.minorticks_on()
plt.gca().grid(which='major', color='#808080')
Expand All @@ -36,6 +40,7 @@ def read_file(file_path, **kwds):
return out[~np.isnan(out)].reshape(-1,ncols)

def to_dict(data, keys):
"""Create a dictionary with the given data and keys."""
out = dict()
for i, key in enumerate(keys):
out[key] = data[...,i]
Expand Down

0 comments on commit fc4ff8a

Please sign in to comment.