fixed relative import
This commit is contained in:
parent
2c1b5a7ef5
commit
3a25ad98a6
1 changed files with 14 additions and 6 deletions
20
jepl/jepl.py
20
jepl/jepl.py
|
|
@ -4,11 +4,19 @@ by: Jeff MacKinnon
|
|||
|
||||
email: jeff@jmkengineering.com
|
||||
'''
|
||||
|
||||
import pandas as pd
|
||||
import numpy as np
|
||||
import math
|
||||
import tables as tables
|
||||
|
||||
def Test():
|
||||
print( "JMK Python Module works! !")
|
||||
|
||||
|
||||
def voltage_drop(nominal_voltage, current, material ='cu', code = 'CEC'):
|
||||
print(test)
|
||||
|
||||
|
||||
from .tables import *
|
||||
def conductor_size(current, temp = 75, material = 'cu', code = 'CEC', raceway = True, ambient = 30, max = 500):
|
||||
|
||||
'''
|
||||
|
|
@ -40,13 +48,13 @@ def conductor_size(current, temp = 75, material = 'cu', code = 'CEC', raceway =
|
|||
|
||||
# select the correct code table
|
||||
if (code == 'CEC') & (material == 'CU') & (raceway == False):
|
||||
code_table = tables.CEC_table1
|
||||
code_table = CEC_table1
|
||||
elif (code == 'CEC') & (material == 'CU') & (raceway == True):
|
||||
code_table = tables.CEC_table2
|
||||
code_table = CEC_table2
|
||||
elif (code =='CEC') & (material =='AL') & (raceway == False):
|
||||
code_table = tables.CEC_table3
|
||||
code_table = CEC_table3
|
||||
elif (code =='CEC') & (material =='AL') & (raceway == True):
|
||||
code_table = tables.CEC_table4
|
||||
code_table = CEC_table4
|
||||
elif (code =='NEC') & (material =='CU'):
|
||||
return (' I haven\'t created this table yet')
|
||||
elif (code =='NEC') & (material =='AL'):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue