fix broken repo

This commit is contained in:
weygoldt 2023-04-26 18:18:22 +02:00
parent 4f3f2f071b
commit b098e5083a
No known key found for this signature in database
5 changed files with 98 additions and 103 deletions

1
.gitignore vendored
View File

@ -6,6 +6,7 @@ data
env env
output output
trash trash
.vscode
# Mac Stuff # Mac Stuff
*.DS_Store *.DS_Store

View File

@ -1,6 +0,0 @@
{
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
},
"python.formatting.provider": "none"
}

View File

@ -726,8 +726,8 @@ def chirpdetection(datapath: str, plot: str, debug: str = "false") -> None:
raw_time = np.arange(data.raw.shape[0]) / data.raw_rate raw_time = np.arange(data.raw.shape[0]) / data.raw_rate
# good chirp times for data: 2022-06-02-10_00 # good chirp times for data: 2022-06-02-10_00
# window_start_index = (3 * 60 * 60 + 6 * 60 + 43.5) * data.raw_rate window_start_index = (3 * 60 * 60 + 6 * 60 + 43.5) * data.raw_rate
# window_duration_index = 60 * data.raw_rate window_duration_index = 60 * data.raw_rate
# t0 = 0 # t0 = 0
# dt = data.raw.shape[0] # dt = data.raw.shape[0]
@ -1185,4 +1185,4 @@ if __name__ == "__main__":
# datapath = "/home/weygoldt/Data/uni/efishdata/2016-colombia/fishgrid/2016-04-09-22_25/" # datapath = "/home/weygoldt/Data/uni/efishdata/2016-colombia/fishgrid/2016-04-09-22_25/"
# datapath = "/home/weygoldt/Data/uni/chirpdetection/GP2023_chirp_detection/data/mount_data/2020-03-13-10_00/" # datapath = "/home/weygoldt/Data/uni/chirpdetection/GP2023_chirp_detection/data/mount_data/2020-03-13-10_00/"
datapath = "../data/2022-06-02-10_00/" datapath = "../data/2022-06-02-10_00/"
chirpdetection(datapath, plot="show", debug="false") chirpdetection(datapath, plot="save", debug="false")

View File

@ -15,8 +15,8 @@ def PlotStyle() -> None:
# colors # colors
black = "#111116" black = "#111116"
white = "#111116" white = "#e0e4f7"
gray = "#111116" gray = "#6c6e7d"
blue = "#89b4fa" blue = "#89b4fa"
sapphire = "#74c7ec" sapphire = "#74c7ec"
sky = "#89dceb" sky = "#89dceb"
@ -217,10 +217,10 @@ def PlotStyle() -> None:
SMALL_SIZE = 12 SMALL_SIZE = 12
MEDIUM_SIZE = 14 MEDIUM_SIZE = 14
BIGGER_SIZE = 16 BIGGER_SIZE = 16
black = "#e0e4f7" black = "#111116"
white = "#111116" white = "#e0e4f7"
# gray = "#6c6e7d" gray = "#6c6e7d"
# dark_gray = "#2a2a32" dark_gray = "#2a2a32"
# rcparams # rcparams
plt.rc("font", size=MEDIUM_SIZE) # controls default text sizes plt.rc("font", size=MEDIUM_SIZE) # controls default text sizes
@ -231,7 +231,7 @@ def PlotStyle() -> None:
plt.rc("legend", fontsize=SMALL_SIZE) # legend fontsize plt.rc("legend", fontsize=SMALL_SIZE) # legend fontsize
plt.rc("figure", titlesize=BIGGER_SIZE) # fontsize of the figure title plt.rc("figure", titlesize=BIGGER_SIZE) # fontsize of the figure title
plt.rcParams["image.cmap"] = "cmo.haline" plt.rcParams["image.cmap"] = "cmo.thermal"
plt.rcParams["axes.xmargin"] = 0.05 plt.rcParams["axes.xmargin"] = 0.05
plt.rcParams["axes.ymargin"] = 0.1 plt.rcParams["axes.ymargin"] = 0.1
plt.rcParams["axes.titlelocation"] = "left" plt.rcParams["axes.titlelocation"] = "left"
@ -251,46 +251,46 @@ def PlotStyle() -> None:
# plt.rcParams["font.sans-serif"] = "Helvetica Now Text" # plt.rcParams["font.sans-serif"] = "Helvetica Now Text"
# dark mode modifications # dark mode modifications
# plt.rcParams["boxplot.flierprops.color"] = white plt.rcParams["boxplot.flierprops.color"] = white
# plt.rcParams["boxplot.flierprops.markeredgecolor"] = gray plt.rcParams["boxplot.flierprops.markeredgecolor"] = gray
# plt.rcParams["boxplot.boxprops.color"] = gray plt.rcParams["boxplot.boxprops.color"] = gray
# plt.rcParams["boxplot.whiskerprops.color"] = gray plt.rcParams["boxplot.whiskerprops.color"] = gray
# plt.rcParams["boxplot.capprops.color"] = gray plt.rcParams["boxplot.capprops.color"] = gray
# plt.rcParams["boxplot.medianprops.color"] = black plt.rcParams["boxplot.medianprops.color"] = black
# plt.rcParams["text.color"] = white plt.rcParams["text.color"] = white
# plt.rcParams["axes.facecolor"] = black # axes background color plt.rcParams["axes.facecolor"] = black # axes background color
# plt.rcParams["axes.edgecolor"] = white # axes edge color plt.rcParams["axes.edgecolor"] = white # axes edge color
# # plt.rcParams["axes.grid"] = True # display grid or not # plt.rcParams["axes.grid"] = True # display grid or not
# # plt.rcParams["axes.grid.axis"] = "y" # which axis the grid is applied to # plt.rcParams["axes.grid.axis"] = "y" # which axis the grid is applied to
# plt.rcParams["axes.labelcolor"] = white plt.rcParams["axes.labelcolor"] = white
# plt.rcParams["axes.axisbelow"] = True # draw axis gridlines and ticks: plt.rcParams["axes.axisbelow"] = True # draw axis gridlines and ticks:
# plt.rcParams["axes.spines.left"] = True # display axis spines plt.rcParams["axes.spines.left"] = True # display axis spines
# plt.rcParams["axes.spines.bottom"] = True plt.rcParams["axes.spines.bottom"] = True
# plt.rcParams["axes.spines.top"] = False plt.rcParams["axes.spines.top"] = False
# plt.rcParams["axes.spines.right"] = False plt.rcParams["axes.spines.right"] = False
# plt.rcParams["axes.prop_cycle"] = cycler( plt.rcParams["axes.prop_cycle"] = cycler(
# "color", "color",
# [ [
# "#b4befe", "#b4befe",
# "#89b4fa", "#89b4fa",
# "#74c7ec", "#74c7ec",
# "#89dceb", "#89dceb",
# "#94e2d5", "#94e2d5",
# "#a6e3a1", "#a6e3a1",
# "#f9e2af", "#f9e2af",
# "#fab387", "#fab387",
# "#eba0ac", "#eba0ac",
# "#f38ba8", "#f38ba8",
# "#cba6f7", "#cba6f7",
# "#f5c2e7", "#f5c2e7",
# ], ],
# ) )
# plt.rcParams["xtick.color"] = white # color of the ticks plt.rcParams["xtick.color"] = white # color of the ticks
# plt.rcParams["ytick.color"] = white # color of the ticks plt.rcParams["ytick.color"] = white # color of the ticks
# plt.rcParams["grid.color"] = white # grid color plt.rcParams["grid.color"] = white # grid color
# plt.rcParams["figure.facecolor"] = black # figure face color plt.rcParams["figure.facecolor"] = black # figure face color
# plt.rcParams["figure.edgecolor"] = black # figure edge color plt.rcParams["figure.edgecolor"] = black # figure edge color
# plt.rcParams["savefig.facecolor"] = black # figure face color when saving plt.rcParams["savefig.facecolor"] = black # figure face color when saving
return style return style

View File

@ -15,8 +15,8 @@ def PlotStyle() -> None:
# colors # colors
black = "#111116" black = "#111116"
white = "#e0e4f7" white = "#111116"
gray = "#6c6e7d" gray = "#111116"
blue = "#89b4fa" blue = "#89b4fa"
sapphire = "#74c7ec" sapphire = "#74c7ec"
sky = "#89dceb" sky = "#89dceb"
@ -217,10 +217,10 @@ def PlotStyle() -> None:
SMALL_SIZE = 12 SMALL_SIZE = 12
MEDIUM_SIZE = 14 MEDIUM_SIZE = 14
BIGGER_SIZE = 16 BIGGER_SIZE = 16
black = "#111116" black = "#e0e4f7"
white = "#e0e4f7" white = "#111116"
gray = "#6c6e7d" # gray = "#6c6e7d"
dark_gray = "#2a2a32" # dark_gray = "#2a2a32"
# rcparams # rcparams
plt.rc("font", size=MEDIUM_SIZE) # controls default text sizes plt.rc("font", size=MEDIUM_SIZE) # controls default text sizes
@ -231,7 +231,7 @@ def PlotStyle() -> None:
plt.rc("legend", fontsize=SMALL_SIZE) # legend fontsize plt.rc("legend", fontsize=SMALL_SIZE) # legend fontsize
plt.rc("figure", titlesize=BIGGER_SIZE) # fontsize of the figure title plt.rc("figure", titlesize=BIGGER_SIZE) # fontsize of the figure title
plt.rcParams["image.cmap"] = "cmo.thermal" plt.rcParams["image.cmap"] = "cmo.haline"
plt.rcParams["axes.xmargin"] = 0.05 plt.rcParams["axes.xmargin"] = 0.05
plt.rcParams["axes.ymargin"] = 0.1 plt.rcParams["axes.ymargin"] = 0.1
plt.rcParams["axes.titlelocation"] = "left" plt.rcParams["axes.titlelocation"] = "left"
@ -251,46 +251,46 @@ def PlotStyle() -> None:
# plt.rcParams["font.sans-serif"] = "Helvetica Now Text" # plt.rcParams["font.sans-serif"] = "Helvetica Now Text"
# dark mode modifications # dark mode modifications
plt.rcParams["boxplot.flierprops.color"] = white # plt.rcParams["boxplot.flierprops.color"] = white
plt.rcParams["boxplot.flierprops.markeredgecolor"] = gray # plt.rcParams["boxplot.flierprops.markeredgecolor"] = gray
plt.rcParams["boxplot.boxprops.color"] = gray # plt.rcParams["boxplot.boxprops.color"] = gray
plt.rcParams["boxplot.whiskerprops.color"] = gray # plt.rcParams["boxplot.whiskerprops.color"] = gray
plt.rcParams["boxplot.capprops.color"] = gray # plt.rcParams["boxplot.capprops.color"] = gray
plt.rcParams["boxplot.medianprops.color"] = black # plt.rcParams["boxplot.medianprops.color"] = black
plt.rcParams["text.color"] = white # plt.rcParams["text.color"] = white
plt.rcParams["axes.facecolor"] = black # axes background color # plt.rcParams["axes.facecolor"] = black # axes background color
plt.rcParams["axes.edgecolor"] = white # axes edge color # plt.rcParams["axes.edgecolor"] = white # axes edge color
# plt.rcParams["axes.grid"] = True # display grid or not # # plt.rcParams["axes.grid"] = True # display grid or not
# plt.rcParams["axes.grid.axis"] = "y" # which axis the grid is applied to # # plt.rcParams["axes.grid.axis"] = "y" # which axis the grid is applied to
plt.rcParams["axes.labelcolor"] = white # plt.rcParams["axes.labelcolor"] = white
plt.rcParams["axes.axisbelow"] = True # draw axis gridlines and ticks: # plt.rcParams["axes.axisbelow"] = True # draw axis gridlines and ticks:
plt.rcParams["axes.spines.left"] = True # display axis spines # plt.rcParams["axes.spines.left"] = True # display axis spines
plt.rcParams["axes.spines.bottom"] = True # plt.rcParams["axes.spines.bottom"] = True
plt.rcParams["axes.spines.top"] = False # plt.rcParams["axes.spines.top"] = False
plt.rcParams["axes.spines.right"] = False # plt.rcParams["axes.spines.right"] = False
plt.rcParams["axes.prop_cycle"] = cycler( # plt.rcParams["axes.prop_cycle"] = cycler(
"color", # "color",
[ # [
"#b4befe", # "#b4befe",
"#89b4fa", # "#89b4fa",
"#74c7ec", # "#74c7ec",
"#89dceb", # "#89dceb",
"#94e2d5", # "#94e2d5",
"#a6e3a1", # "#a6e3a1",
"#f9e2af", # "#f9e2af",
"#fab387", # "#fab387",
"#eba0ac", # "#eba0ac",
"#f38ba8", # "#f38ba8",
"#cba6f7", # "#cba6f7",
"#f5c2e7", # "#f5c2e7",
], # ],
) # )
plt.rcParams["xtick.color"] = white # color of the ticks # plt.rcParams["xtick.color"] = white # color of the ticks
plt.rcParams["ytick.color"] = white # color of the ticks # plt.rcParams["ytick.color"] = white # color of the ticks
plt.rcParams["grid.color"] = white # grid color # plt.rcParams["grid.color"] = white # grid color
plt.rcParams["figure.facecolor"] = black # figure face color # plt.rcParams["figure.facecolor"] = black # figure face color
plt.rcParams["figure.edgecolor"] = black # figure edge color # plt.rcParams["figure.edgecolor"] = black # figure edge color
plt.rcParams["savefig.facecolor"] = black # figure face color when saving # plt.rcParams["savefig.facecolor"] = black # figure face color when saving
return style return style