Skip to content

Commit

Permalink
fixed refractive indeces for pandas 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nai5790 committed Jan 26, 2022
1 parent 1c4939f commit 137ee67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pwspy/utility/reflection/reflectanceHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def _init():
# Interpolate so we don't have any nan values.
# df = pd.DataFrame(ser)
df = pd.concat(ser, axis='columns', keys=materialFiles.keys())
df = df.sort_index()
df = df.interpolate('index')
df = df.loc[first:last] # Crop to the first and last wavelengths that we have data for all materials.

Expand Down

0 comments on commit 137ee67

Please sign in to comment.