Skip to content

Commit

Permalink
Merge pull request #25 from slaclab/fix_import_statements
Browse files Browse the repository at this point in the history
BUG: Fix library import statements in some suite_scripts
  • Loading branch information
nstelter-slac authored Feb 21, 2024
2 parents faf6086 + 7aaff19 commit 444f234
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions calibrationSuite/basicSuiteScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
##from mfxRixSuiteConfig import *
import h5py
from scipy.optimize import curve_fit ## here?
import calibrationSuite.fitFunctions
import calibrationSuite.ancillaryMethods
from calibrationSuite.fitFunctions import *
from calibrationSuite.ancillaryMethods import *

def sortArrayByList(a, data):
return [x for _,x in sorted(zip(a, data), key=lambda pair:pair[0])]
Expand Down
3 changes: 2 additions & 1 deletion suite_scripts/AnalyzeH5.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import h5py
import numpy as np
import calibrationSuite.fitFunctions, calibrationSuite.ancillaryMethods
from calibrationSuite.fitFunctions import *
from calibrationSuite.ancillaryMethods import *
##import seaborn as sns
import matplotlib.pyplot as plt
from matplotlib.ticker import AutoMinorLocator
Expand Down
2 changes: 1 addition & 1 deletion suite_scripts/CalcNoise.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from calibrationSuite.basicSuiteScript import *
import calibrationSuite.Stats
from calibrationSuite.Stats import *

class CalcNoise(BasicSuiteScript):
def __init__(self):
Expand Down
2 changes: 1 addition & 1 deletion suite_scripts/CalcNoiseAndMean.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from calibrationSuite.basicSuiteScript import *
import calibrationSuite.Stats
from calibrationSuite.Stats import *

class CalcNoise(BasicSuiteScript):
def __init__(self):
Expand Down
3 changes: 2 additions & 1 deletion suite_scripts/analyze_npy.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import matplotlib.pyplot as plt
import numpy as np
import calibrationSuite.fitFunctions, calibrationSuite.ancillaryMethods
from calibrationSuite.fitFunctions import *
from calibrationSuite.ancillaryMethods import *
import sys

class AnalyzeLinearity(object):
Expand Down

0 comments on commit 444f234

Please sign in to comment.