generate_plots_MKGF: pre filter data to exclude data without periods
This commit is contained in:
@@ -55,6 +55,21 @@ folderPath = f"../{date}/"
|
|||||||
#folderPath = f"G:/Meine Ablage/Masterthesis/{date}/"
|
#folderPath = f"G:/Meine Ablage/Masterthesis/{date}/"
|
||||||
mkdir_p(folderPath)
|
mkdir_p(folderPath)
|
||||||
|
|
||||||
|
# remove any data that has no period
|
||||||
|
data = data[(data["FitType"] == "sine") | (data["FitType"] == "poly")]
|
||||||
|
|
||||||
|
# remove data with multiple minima/maxima present
|
||||||
|
filterArray = []
|
||||||
|
for ind, row in data.reset_index().iterrows():
|
||||||
|
if(len(row["pdcsapPeriodMinima"]) == len(row["pdcsapPeriodMaxima"]) and
|
||||||
|
len(row["pdcsapPeriodMinima"]) == 1):
|
||||||
|
filterArray.append(True)
|
||||||
|
else:
|
||||||
|
filterArray.append(False)
|
||||||
|
|
||||||
|
filterArray = np.array(filterArray)
|
||||||
|
data = data[filterArray]
|
||||||
|
|
||||||
for comboLength in range(1, len(spType) + 1):
|
for comboLength in range(1, len(spType) + 1):
|
||||||
for combo in itertools.combinations(spType, comboLength):
|
for combo in itertools.combinations(spType, comboLength):
|
||||||
for maxFlarePeak in [1.01, 1.05, 1.1, 1.25, 1.5]:
|
for maxFlarePeak in [1.01, 1.05, 1.1, 1.25, 1.5]:
|
||||||
|
|||||||
Reference in New Issue
Block a user