Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Andrey Popp andreypopp

🏠
Working from home
View GitHub Profile
View gist:9c9953d521de6cae91e463efe3c5c9ca
diff --git a/workflows-emodel/print-rel.test.ts b/workflows-emodel/print-rel.test.ts
index d746afe..4901e56 100644
--- a/workflows-emodel/print-rel.test.ts
+++ b/workflows-emodel/print-rel.test.ts
@@ -4,56 +4,104 @@ testReprint("query from table", (code) => {
expect(code).toMatchInlineSnapshot(`"query from table"`);
});
+testReprint("query from ??", (code) => {
+ expect(code).toMatchInlineSnapshot(`"query from ??"`);
View gist:7acf111cc0007117ee1197a05885e02b
diff --git a/src/rex.tabular_import/src/rex/tabular_import/ctl.py b/src/rex.tabular_import/src/rex/tabular_import/ctl.py
index 9bd58acf8..4e03d0a39 100644
--- a/src/rex.tabular_import/src/rex/tabular_import/ctl.py
+++ b/src/rex.tabular_import/src/rex/tabular_import/ctl.py
@@ -142,7 +142,7 @@ class TabularImportTask(RexTask):
update_bool=self.update,
)
except Exception as exc:
- raise Error(str(exc)) from None
+ raise Error("Error during tabular data import") from exc
View rel.ml
open Import
(** Database catalogue. *)
module Catalog = struct
type schema = string
and table = {
schema: schema;
name: string;
columns: column list;
View rel.ml
open Import
(** Database catalogue. *)
module Catalog = struct
type schema = string
and table = {
schema: schema;
name: string;
columns: column list;
View rel.ml
open Import
(** Database catalogue. *)
module Catalog = struct
type schema = string
and table = {
schema: schema;
name: string;
columns: column list;
View rel.ml
open Import
(** Database catalogue. *)
module Catalog = struct
type schema = string
and table = {
schema: schema;
name: string;
columns: column list;
View gist:e8f454d1bc35093eb7d7adf49835ae21
diff --git a/src/rex.instrument_api/src/rex/instrument_api/resources/assessment.py b/src/rex.instrument_api/src/rex/instrument_api/resources/assessment.py
index c1c580fbe..e789828ec 100644
--- a/src/rex.instrument_api/src/rex/instrument_api/resources/assessment.py
+++ b/src/rex.instrument_api/src/rex/instrument_api/resources/assessment.py
@@ -8,7 +8,7 @@ from webob.exc import HTTPBadRequest, HTTPInternalServerError
from rex.core import StrVal, RecordVal, MapVal, Error
from rex.instrument import InstrumentError, ValidationError
from rex.instrument.util import get_implementation
-from rex.restful import RestfulLocation, DateVal
+from rex.restful import SimpleResource, RestfulLocation, DateVal
View codeedit.jl
struct WithLoc{T}
expr::CSTParser.EXPR
value::T
end
"""Concept Expression referenced from another location."""
struct ReferencedConceptExpression <: FunOHDSI.ConceptExpression
name::Symbol
end
REPL.derive_tojs(ReferencedConceptExpression)
View OHDSI.jl
module OHDSI
import Tables
import LibPQ
import JSON
import Dates
db = LibPQ.Connection("")
sql(query, args...) =
View main.rs
use colored::*;
use exec;
use std::env;
use std::fs;
use std::io::{BufRead, BufReader};
use std::path;
use std::process;
use std::process::{Command, Stdio};
use std::sync::{Arc, Mutex};
use std::thread;