Posts

Showing posts from January 19, 2019

Error in Spyder: States variable is undefined, program still runs

Image
0 $begingroup$ I recently received the following code to work with: import seawater as sw import matplotlib.pyplot as plt def getPlotVars(): print("how many plots do you want to make?") numPlots = input() varName = for i in range(int(numPlots)): print("what variable do you want to plot against depth (Choose from: s, t, p, d) for plot number " + str(i+1) + "?") varName.append(input()) return varName #return saves the result of the function to be utilized elsewhere def plotVar(var, depths, figNum, xlabel): plt.xlabel(xlabel, fontsize=15) plt.ylabel("Depth (m)", fontsize=15) plt.title(str(xlabel)+"vs Depth (m)", fontsize=20) plt.gca().invert_yaxis() plt.plot(var,z) plt.show() def main(...

Should I bond pipes to ground in detached building subpanel?

Image
1 In California. My subpanel has a dedicated ground conductor run to it (ground and neutral bonded only at the main panel). The subpanel is in a building with its own plumbing, not connected to pipes where the main panel is located. I know that I should not bond ground to neutral redundantly in the subpanel, but should I bond ground to plumbing independently from the subpanel? My concern is that this will create an alternate path to ground. electrical grounding-and-bonding share | improve this question asked 4 hours ago Matthew Matthew 5,037 14 36 61 ...