Skip to content

Instantly share code, notes, and snippets.

View sebbacon's full-sized avatar

Seb Bacon sebbacon

View GitHub Profile
@sebbacon
sebbacon / a
Last active December 11, 2020 16:13
1
hello@largeweb2:~$ cd /webapps/openprescribing/openprescribing/
hello@largeweb2:/webapps/openprescribing/openprescribing$ . ../.venv/bin/activate
(.venv35) hello@largeweb2:/webapps/openprescribing/openprescribing$ ./manage.py send_monthly_alerts --max_errors 500
/webapps/openprescribing/openprescribing/frontend/views/bookmark_utils.py:205: RuntimeWarning: Mean of empty slice
self.target_means.append(np.nanmean(window))
/webapps/openprescribing/.venv35/lib/python3.5/site-packages/numpy/lib/nanfunctions.py:1667: RuntimeWarning: Degrees of freedom <= 0 for slice
.
keepdims=keepdims)
console: [opttick] - GTM-5PX77GZ: exception: TypeError: undefined is not a function (evaluating 'p.getEntriesByName(b)')
# packages in environment at /home/seb/anaconda3:
#
# Name Version Build Channel
_ipyw_jlab_nb_ext_conf 0.1.0 py38_0
_libgcc_mutex 0.1 main
alabaster 0.7.12 py_0
anaconda 2020.07 py38_0
anaconda-client 1.7.2 py38_0
anaconda-navigator 1.9.12 py38_0
anaconda-project 0.8.4 py_0
digraph finite_state_machine {
#rankdir=LR;
size="8,5"
node [shape = doublecircle]; start; succeeded; failed_missing_outputs; failed_dependencies; failed_action; failed_validation; zombie;failed_clone;
node [shape = circle, width = "2", color="black"];
start -> pending[ label = "" ];
pending -> acked;
acked -> cloning_repo[label = "clone repo"];
cloning_repo -> failed_clone[label = ""];
digraph finite_state_machine_group {
#rankdir=LR;
size="8,5"
node [shape = doublecircle]; start; failed; succeeded;
node [shape = circle, width = "2", color="black"];
start -> pending[ label = "ack" ];
pending -> running[ label = "any subjobs running"]
running -> running_with_failures[ label = "any subjobs failed"];
running -> succeeded[ label = "all subjobs finished"];
diff --git a/make_project_yaml.py b/make_project_yaml.py
index 559be86..0ddf953 100755
--- a/make_project_yaml.py
+++ b/make_project_yaml.py
@@ -137,7 +137,7 @@ for outcome in outcomes:
logfile=f"log/07a_an_multivariable_cox_models_{outcome}.log",
)
add_action(
- "07b_an_multivariable_cox_models_FULL",
+ "07d_an_multivariable_cox_models_FULL",
docker run --privileged -it -v /var/run/docker.sock:/var/run/docker.sock jongallant/ubuntu-docker-client
docker run --net=host --ipc=host --uts=host --pid=host -it --security-opt=seccomp=unconfined --privileged --rm -v /:/host alpine /bin/sh
import subprocess
import re
import sys
import json
output = subprocess.check_output(
["docker", "logs", "job-runner_job-runner_1"],
encoding="utf-8",
stderr=subprocess.STDOUT,
)
CREATE TABLE #codelist_2_flu_vaccine_clinical_current (
-- Because some code systems are case-sensitive we need to
-- use a case-sensitive collation here
code VARCHAR(5) COLLATE Latin1_General_BIN,
category VARCHAR(MAX)
)