Skip to content
Snippets Groups Projects
Commit f87b0138 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Merge branch 'master' of git.km3net.de:km3py/km3mon

parents e50f7533 e3a74c0e
No related branches found
No related tags found
No related merge requests found
......@@ -9,4 +9,8 @@ start:
@echo Starting supervisord
supervisord -c supervisord.conf
stop:
@echo Shutting down supervisord
supervisorctl shutdown
.PHONY: build start stop
......@@ -72,6 +72,8 @@ a group of processes. Use the ``supervisorctl help`` to find out more and
``supervisorctl help COMMAND`` to get a detailed description of the
corresponding command.
To shut down the monitoring service completely, use ``make stop``.
## Configuration file
......
......@@ -35,20 +35,24 @@ def main():
hours = 2
while True:
print("Reading data...")
df = pd.read_csv(args['TIME_RESIDUALS_FILE'])
df = df[df.timestamp > time.time() - 60 * 60 * hours]
print(f" -> number of entries: {len(df)}")
fig, axes = plt.subplots(nrows=6,
ncols=3,
figsize=(16, 10),
sharex=True,
sharey=True,
sharey=False,
constrained_layout=True)
for ax, floor in zip(axes.flatten(), range(1, 19)):
for du in np.unique(df.du):
_df = df[df.du == du]
t_res = _df[_df.floor == floor].t_res
t_res = t_res[np.abs(t_res) < 500]
print(f" DU {du} floor {floor}: {len(t_res)} entries")
ax.hist(-t_res,
bins=100,
histtype='step',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment