fixed relative import

This commit is contained in:
Jeff MacKinnon 2024-12-12 17:41:15 -04:00
parent 2c1b5a7ef5
commit 3a25ad98a6

View file

@ -4,11 +4,19 @@ by: Jeff MacKinnon
email: jeff@jmkengineering.com email: jeff@jmkengineering.com
''' '''
import pandas as pd
import numpy as np
import math 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): 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 # select the correct code table
if (code == 'CEC') & (material == 'CU') & (raceway == False): if (code == 'CEC') & (material == 'CU') & (raceway == False):
code_table = tables.CEC_table1 code_table = CEC_table1
elif (code == 'CEC') & (material == 'CU') & (raceway == True): elif (code == 'CEC') & (material == 'CU') & (raceway == True):
code_table = tables.CEC_table2 code_table = CEC_table2
elif (code =='CEC') & (material =='AL') & (raceway == False): elif (code =='CEC') & (material =='AL') & (raceway == False):
code_table = tables.CEC_table3 code_table = CEC_table3
elif (code =='CEC') & (material =='AL') & (raceway == True): elif (code =='CEC') & (material =='AL') & (raceway == True):
code_table = tables.CEC_table4 code_table = CEC_table4
elif (code =='NEC') & (material =='CU'): elif (code =='NEC') & (material =='CU'):
return (' I haven\'t created this table yet') return (' I haven\'t created this table yet')
elif (code =='NEC') & (material =='AL'): elif (code =='NEC') & (material =='AL'):