From 3a25ad98a6cc436dd343b4033d1b32f7326c2ed7 Mon Sep 17 00:00:00 2001 From: Jeff MacKinnon Date: Thu, 12 Dec 2024 17:41:15 -0400 Subject: [PATCH] fixed relative import --- jepl/jepl.py | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/jepl/jepl.py b/jepl/jepl.py index 1f81231..62c0aed 100644 --- a/jepl/jepl.py +++ b/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'):