This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2021-07-06T06:22:38.2855413Z ##[section]Starting: PyTest | |
2021-07-06T06:22:38.2865170Z ============================================================================== | |
2021-07-06T06:22:38.2865487Z Task : Command line | |
2021-07-06T06:22:38.2866717Z Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows | |
2021-07-06T06:22:38.2867060Z Version : 2.182.0 | |
2021-07-06T06:22:38.2867287Z Author : Microsoft Corporation | |
2021-07-06T06:22:38.2867638Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line | |
2021-07-06T06:22:38.2868015Z ============================================================================== | |
2021-07-06T06:22:39.2961314Z Generating script. | |
2021-07-06T06:22:39.2962626Z Script contents: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scanpy as sc | |
import numpy as np | |
from matplotlib import pyplot as plt | |
from openTSNE import TSNE | |
from itertools import product | |
pbmc = sc.datasets.pbmc3k_processed() | |
RANDOM_STATE = 1291321 | |
keys = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sampling process 44517 for 3 seconds with 1 millisecond of run time between samples | |
Sampling completed, processing symbols... | |
Analysis of sampling csgo_osx64 (pid 44517) every 1 millisecond | |
Process: csgo_osx64 [44517] | |
Path: /Users/USER/Library/Application Support/Steam/*/csgo_osx64 | |
Load Address: 0x10f2e9000 | |
Identifier: csgo_osx64 | |
Version: ??? | |
Code Type: X86-64 | |
Parent Process: bash [44514] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2021-02-03T05:26:14.6653679Z ##[section]Starting: PyTest Python36 | |
2021-02-03T05:26:14.9395796Z ##[section]Starting: Initialize job | |
2021-02-03T05:26:14.9397123Z Agent name: 'Azure Pipelines 4' | |
2021-02-03T05:26:14.9397517Z Agent machine name: 'fv-az315-103' | |
2021-02-03T05:26:14.9397757Z Current agent version: '2.181.1' | |
2021-02-03T05:26:14.9441788Z ##[group]Operating System | |
2021-02-03T05:26:14.9442012Z Ubuntu | |
2021-02-03T05:26:14.9442183Z 18.04.5 | |
2021-02-03T05:26:14.9442318Z LTS | |
2021-02-03T05:26:14.9442484Z ##[endgroup] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scanpy as sc, numpy as np | |
from matplotlib import pyplot as plt | |
from sklearn.utils import sparsefuncs | |
def norm_frac(adata): | |
sparsefuncs.inplace_row_scale(adata.X, 1 / adata.X.sum(axis=1).A1) | |
return adata | |
def norm_cpm(adata): | |
sparsefuncs.inplace_row_scale(adata.X, 1_000_000 / adata.X.sum(axis=1).A1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import pandas as pd | |
def fetch_state_results(state: str) -> dict: | |
r = requests.get(f"https://static01.nyt.com/elections-assets/2020/data/api/2020-11-03/race-page/{state}/president.json") | |
return r.json()["data"] | |
def _process_records(input: "list[dict]") -> pd.DataFrame: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Computer Information: | |
Manufacturer: Apple | |
Model: MacBookPro16,1 | |
Form Factor: Laptop | |
No Touch Input Detected | |
Processor Information: | |
CPU Vendor: GenuineIntel | |
CPU Brand: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz | |
CPU Family: 0x6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
===================================================== test session starts ===================================================== | |
platform darwin -- Python 3.8.5, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 | |
rootdir: /Users/isaac/github/diffxpy | |
plugins: cov-2.10.0 | |
collected 68 items | |
diffxpy/unit_test/test_acc_glm_all_numpy_temp.py F [ 1%] | |
diffxpy/unit_test/test_backends.py .FF [ 5%] | |
diffxpy/unit_test/test_constrained.py FFF [ 10%] | |
diffxpy/unit_test/test_continuous_de.py .F [ 13%] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import image | |
import pandas as pd | |
import numpy as np | |
empty_pixel = np.array([255, 255, 255, 0]).reshape(1, 1, -1) | |
# !wget https://github.com/theislab/scanpy/raw/master/docs/_static/img/Scanpy_Logo_RGB.png | |
im = Image.open("./Scanpy_Logo_RGB.png") | |
a = np.array(im) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Simple OrderedSet implementation.""" | |
from collections import OrderedDict | |
from collections.abc import MutableSet | |
from functools import reduce | |
from itertools import repeat | |
from operator import or_, sub | |
class OrderedSet(MutableSet): |