Add unit_tables to xanes-module
This commit is contained in:
parent
1461d71b99
commit
0e5f7dba55
1 changed files with 11 additions and 0 deletions
11
nafuma/xanes/unit_tables.py
Normal file
11
nafuma/xanes/unit_tables.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import pandas as pd
|
||||
|
||||
def time():
|
||||
# Define matrix for unit conversion for time
|
||||
time = {'h': [1, 60, 3600, 3600000], 'min': [1/60, 1, 60, 60000], 's': [1/3600, 1/60, 1, 1000], 'ms': [1/3600000, 1/60000, 1/1000, 1]}
|
||||
time = pd.DataFrame(time)
|
||||
time.index = ['h', 'min', 's', 'ms']
|
||||
|
||||
return time
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue