Skip to content

Commit 3c8eb3f

Browse files
committed
fixed \ sanitization to handle array event
1 parent a0611e4 commit 3c8eb3f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

GuPPy/visualizePlot.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ def remove_cols(cols):
9696
# helper function to create plots
9797
def helper_plots(filepath, event, name, inputParameters):
9898

99-
event = event.replace("\\","_")
100-
event = event.replace("/","_")
101-
10299
basename = os.path.basename(filepath)
103100
visualize_zscore_or_dff = inputParameters['visualize_zscore_or_dff']
104101

@@ -616,9 +613,10 @@ def heatmap(self):
616613
# function to combine all the output folders together and preprocess them to use them in helper_plots function
617614
def createPlots(filepath, event, inputParameters):
618615

619-
event = event.replace("\\","_")
620-
event = event.replace("/","_")
621-
616+
for i in range(len(event)):
617+
event[i] = event[i].replace("\\","_")
618+
event[i] = event[i].replace("/","_")
619+
622620
average = inputParameters['visualizeAverageResults']
623621
visualize_zscore_or_dff = inputParameters['visualize_zscore_or_dff']
624622

0 commit comments

Comments
 (0)