sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
8049a9541964445b3941c7eee49abd2add3dcd3c6a83004f39f2a13ec133412c | Python | 120 | 6 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from main import main
main(revisions=["issue583-base", "issue583-v1"])
|
93727f5b792fcf86c6339c9b44eba302619fcd2143e07885c1bd6d4534f40153 | Python | 120 | 5 | from itertools import chain
def flatten_params(params: list[list[int]]) -> list[int]:
return list(chain(*params))
|
97675a0a8c12d7fd7e9cb8fced7c2cb19a6bb6b0a2d7c35a127338f1f1e85b2c | Python | 120 | 6 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from main import main
main(revisions=["issue571-base", "issue571-v1"])
|
aeff80661c91bd2713e166630e0f8d7c72e8b7a8ae3659397d07212c69f92283 | Python | 120 | 7 | import numpy as np
import pytest
@pytest.fixture
def rng() -> np.random.Generator:
return np.random.default_rng()
|
bf5c05cd69dfc879ee5bc3f2215ad220df68b77cbf23df8bd373fcb50564f0f3 | Python | 120 | 6 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from main import main
main(revisions=["issue549-base", "issue549-v3"])
|
eefbefb97393c2cbec6f08542e43b4419521eb9a30a3864954aacacb93c660c0 | Python | 121 | 4 | """
Placeholder for saving/loading masks/labels (future work).
Currently unused; included to match agreed structure.
"""
|
09f5ae90e3f97a439d75927f5652d330febbb9959b0ca46ee5e7d4038cc1ed8f | Python | 122 | 6 | from cog import BaseRunner, Path
class Runner(BaseRunner):
def run(self) -> Path:
return Path("hello.webp")
|
0e2798293a88916c217ea0170e96fdd0694fddf39db0fad9436c009849557f5b | Python | 122 | 6 | # flake8: noqa
from .archs import *
from .data import *
from .models import *
from .utils import *
from .version import *
|
3e7e915910db0eb198485c7c4e555d3c7fe1ae70db0e85564642db4c115adaac | Python | 123 | 6 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from main import main
main(revisions=["issue583-base-v2", "issue583-v3"])
|
f52e421f55001ad36ca48b5fe58652579dae744bc5b1616b71da36df106b0de3 | Python | 123 | 6 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from main import main
main(revisions=["issue583-base-v3", "issue583-v5"])
|
2e33b2ab53301598d0d3ef54f3a8dbe6d1521647e45b2f13dec0ceb6081a847a | Python | 124 | 2 | from .cnn import MLP, ContrastiveLearningNetwork, VICRegNetwork
from .mil import MIL_Classifier, TransformerMIL, AdditiveMIL |
af7b22f81cfc3cee57dd0eabdfbc925b5a47a252a35ad920b302c9d4d463cd94 | Python | 124 | 6 | import json
def load_json(filename):
with open(filename,'r+') as f:
data_dic = json.load(f)
return data_dic |
aebdf270a337ce55bf41b59d7cc1c59164491fc2c7227b47a650d4ef44862515 | Python | 125 | 9 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 12 18:58:11 2020
@author: usingh
"""
version="0.0.4"
|
b617fbb4bb53e2e00fc685a1af4fea4e6918bbad43a5db9eed73346c8ff48326 | Python | 125 | 4 | from cobolt.model.coboltmodel import CoboltModel
from cobolt.model.cobolt import Cobolt
__all__ = ['CoboltModel', 'Cobolt']
|
6d0e8121441f2ed982bd73bed8a5979ffcb7dac7ecfd9778fc1578e872a94172 | Python | 126 | 2 | from .src.linear import linear_array as linear_array
from .src.linear import linear_array_pipelined as linear_array_pipelined
|
7bf18479060541f53b754f5c8f0aa29265463ae020dc4eb56689312eba699e9b | Python | 127 | 5 | __all__ = ["icdParser",
"oboParser",
"efoParser",
"reflectParser",
"snomedParser"]
|
fed484524dc6c7f880c3a95941b26c66b0cb1460d66b953aebf745bcca1ed9cf | Python | 127 | 5 | # This file exists to implement "lastdir" as a global variable available in all modules
#
lastdir = ''
ssfont = ''
monofont= '' |
54440f8397be07ce4d732d994662dfb262cedbf26b00cba7a066009dc534f616 | Python | 128 | 6 | import torch
class HardSigmoid(torch.nn.Hardsigmoid):
def __init__(self) -> None:
super().__init__(inplace=False)
|
29e91235d94e9bbf650cb2c9b79bf078741d6346e36e7547d44cc111b7801ccc | Python | 129 | 4 | from .classifier import ClassifierTrainer
from .domain_adaption import *
from .generative import *
from .self_supervised import * |
38ad606b290d6c4360e1ebd318da41d51d3ea1978335d777d0979fadf27e055d | Python | 129 | 6 | import werkzeug
class AuthException(werkzeug.exceptions.HTTPException):
code = 401
description = "Please authenticate"
|
8847f1907895e73c2cd8a134779f8d63dd6377ccf27abc4668d2d5443d924422 | Python | 129 | 2 | from .wavelets import Morlet, Paul, DOG, Ricker, Marr, Mexican_hat
from .transform import cwt, WaveletAnalysis, WaveletTransform
|
3c6bcc938de675dc2064c42c24e74db6c66c4358d230c510f3ff7d868f0ef232 | Python | 130 | 4 | import importlib.metadata
from .util import E3FPWarning, E3FPDeprecationWarning
__version__ = importlib.metadata.version("e3fp")
|
4de615e9b9f2fde11a7b56c04d3768fca2d8ef83f513d6043d9fc265946fa431 | Python | 130 | 3 | from .CSDPSynapse import CSDPSynapse
from .goodnessModCell import GoodnessModCell
from .maskedErrorCell import MaskedErrorCell
|
a8e5fa9a3af216105237e489bdffcf6dad11356549d74c950b0655884149bf47 | Python | 130 | 7 | from src.conv_onet.models import decoder
# Decoder dictionary
decoder_dict = {
'nice': decoder.NICE,
'imap':decoder.MLP
} |
3473d10a343ee232bac4cc4764b47def9c8b3ebf82ad6573bf89f9275313b652 | Python | 131 | 6 | from .flywire import *
from .hemibrain import *
from .malecns import *
from .manc import *
from .aedes import *
from .banc import * |
e6a89427c4110d7edf02be7eb5bc9780e65afb8b41a3401a175aec287a04c3f2 | Python | 131 | 5 | from dotenv import load_dotenv
import pathlib
path_env = pathlib.Path(__file__).parent.joinpath('paths.env')
load_dotenv(path_env) |
0ba520c56242e0b7ebfb31db772aef488e2f6e546a784af4a1e3b677b5a67eec | Python | 132 | 9 | """Provide the primary functions."""
if __name__ == "__main__":
# Do something if this file is invoked on its own
pass
|
57445db0812b8e9711542b3a16a09be45aa7ef19d0790415eb83315f71711b0a | Python | 132 | 7 | # -*- coding: utf-8 -*-
import sys
from niftymic.application.multiply import main
if __name__ == "__main__":
sys.exit(main())
|
592e496d59692c18ac5a9405aa294ee2a0c8625814b9670e73b5516b7ecf6a0c | Python | 132 | 4 | from .hmc import HMCDataset
from .isruc import ISRUCDataset
from .p2018 import P2018Dataset
from .sleep_edfx import SleepEDFxDataset |
5e261b941a43e8d33ec7083023aef094f97edf1b0c858122324360c03c4ae60d | Python | 132 | 6 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import common
common.generate_experiments(common.generate_configs(["foobar.sas"]))
|
1e89501acf6b3b930ae8de0a5a54d332c291930e56624eb411461ba82b13d761 | Python | 133 | 8 | # setup.py
from setuptools import find_packages, setup
setup(
name="median",
version="0.1",
packages=find_packages(),
)
|
2c5b010ccf15b341c55d16fed277fba451398cee8e39a668c78759f2fb440528 | Python | 133 | 4 | """Design custom probes for VisiumHD/VisiumFFPE/Single Cell Gene Expression Flex"""
__version__ = "0.1.0"
from .gene2probe import *
|
dec0436aa63923dad753eaa7e5bf4ffaadd444d102740f523713e0fe3a69af96 | Python | 133 | 3 | from .train_scHetG import train_scHetG
from .utils import ZINBLoss,cluster_acc,calculate_metric,cl_crition,calculate_ber,louvain
|
1dbbf00f07ec4e25ebb59f01215b685499f28845fea88c384476ef7055fc4044 | Python | 134 | 4 | # Copyright (c) OpenMMLab. All rights reserved.
from .DPA_TISR_3D import DPATISR_3D
from .RCAN import RCAN3D
__all__ = ['DPATISR_3D']
|
2ec1ed7a28983fa43720ddfe720dc24efa6bdc4f3870c79260e65b920743912d | Python | 134 | 2 | from .deform_conv import DeformConv, _DeformConv, DeformConvPack
from .deform_conv import DeformConv_d, _DeformConv, DeformConvPack_d
|
7eac9fd0092f0285e93f1c8f79df949d0b4624f95bdcb2772e962a867b074001 | Python | 134 | 5 | """Allow running as ``python -m regtools.ccf_boundary_editor``."""
from regtools.ccf_boundary_editor.launch import main
main()
|
11790d0602454ce74556eb040bbe2d7326f61af4440d3fa657afc52b71ceafb7 | Python | 135 | 5 | from .map_to_surface import *
from .max_t import *
from .max_r import *
from .addNetColors import *
from .addNetColors_Seaborn import * |
19340f5a3e8bc65bdb134f77648564b3bdca32f00c971d252316cb2ab17fbf69 | Python | 135 | 7 | # -*- coding: utf-8 -*-
import sys
from niftymic.application.nifti2dicom import main
if __name__ == "__main__":
sys.exit(main())
|
407522c4d2bdec9bd574677cd3934661e2518a684cc757ac1aeb889be1e573de | Python | 135 | 5 | from common.backend import *
from common.tracetype import *
from common.frontendhelpers import *
from common.agentmatrixinit import *
|
f683ab7ddb8d2499feb195d8f016132737ad302eed83605416cc856078a2696a | Python | 135 | 8 | import serial
import serial.tools.list_ports
print('\n')
for p in serial.tools.list_ports.comports():
print(p.__dict__)
print('\n') |
8b5358b4c73b364f3c15735f4f39dc58a199c174f9796e8b7b67e57c4ded3e93 | Python | 136 | 5 | """Allow running as `python -m regtools.geometry_registration`."""
from regtools.geometry_registration.launch import main
main()
|
d5f77a29f68a6682f0d748cd353bee293d5272618d1a9b15a2cc70b7a0fc1fed | Python | 136 | 2 | # -*- coding: utf-8 -*-
__all__ = ['all_utils', 'resnet_10_chan', 'train_for_epoch', 'training', 'validate', 'dataloader', 'screening']
|
a0a342b2e10ed74a476073ab36ebca2a14cbaf21ab878d10b95ae5127cd7869e | Python | 137 | 4 | __all__ = ["convolution", "lowering_pass_conv"]
from .convolution import convolution
from .lowering_pass_conv import lowering_pass_conv
|
cf22e25a4ae5465aa559d7c8992e8f6a81e50d4db8f2a1f071adffc0d21cc426 | Python | 137 | 6 | from .checkpoint import *
from .log import *
from .parser import *
from .util import *
from .dataloading import *
from .trainer import *
|
e07a3c68435393cef2f7d6b691a0eb66c1559aad18a18252ba8340e79ff6f4d0 | Python | 137 | 6 | from .cutoff import *
from .embedding import *
from .equivalent import *
from .radial import *
from .readout import *
from .base import * |
fc8e28f0aac060e431df5906d3bf881fdbdd5b51ff38bf55c7a3d2c93f71c263 | Python | 137 | 4 | from .layer import BatchNormedLinear as BatchNormedLinear
from .layer import Linear as Linear
__all__ = ["BatchNormedLinear", "Linear"]
|
6f2e9ebeb627aa48ac88cf8c41cbce2ace5b80333394e4a066a44736a7f4e331 | Python | 138 | 8 | __all__ = ("tomllib",)
import sys
if sys.version_info >= (3, 11):
import tomllib
else:
from pip._vendor import tomli as tomllib
|
a2914f3888f8d0739d3a9959f5cd9b571504b7d81d1d6b85a5252c9302f59a0d | Python | 138 | 7 | # -*- coding: utf-8 -*-
import sys
from niftymic.application.register_image import main
if __name__ == "__main__":
sys.exit(main())
|
1eab5b56bcad599635d3407ab8d464504d681ff0aac1e1a726f5617ee7050a6e | Python | 139 | 8 | from PyQt5.QtGui import QFont
font1 = QFont()
font1.setPointSize(9)
font1.setBold(False)
cbFont = QFont()
cbFont.setPointSize(7)
|
38022f018d22ed87d88eb30f6560bb1359a458d913df72f1374928be99e5d7ef | Python | 139 | 4 | from .arjun_vit import ArjunViT
from .simple_vit import SimpleViT
from .vanilla_transformer import VanillaTransformer
from .vit import ViT
|
f6b5218d7bb36651380b441f6222160c7e1e85a40c8a038b62b73ab105d28cdb | Python | 139 | 7 | import torch
GPU_IDX = 2
DEVICE = torch.device(f"cuda:{GPU_IDX}" if torch.cuda.is_available() else "cpu")
torch.cuda.set_device(DEVICE)
|
4c04b8badc298378c6d563ff389d23feeafee5b53af45c8deac6c462edf26aa1 | Python | 140 | 7 | # -*- coding: utf-8 -*-
import sys
from nsol.application.show_parameter_study import main
if __name__ == "__main__":
sys.exit(main())
|
8aeb446e01b6477a1a30c47a47e551f9db948681f26db253804e8fe3ddabc03c | Python | 140 | 2 | # Format-specific loaders for volume_io - each module exposes a single
# ``_load_*`` function consumed by ``volume_io._dispatch_loader``.
|
99af1a4eac39adc32e92bf079919e909496795fa9ce9a48be2285c9f9635d2f0 | Python | 140 | 13 | #%%
import jax
import jax.numpy as jnp
#%%
a = jnp.zeros([100, 100])
print(jax.devices('gpu'))
b = a * a * a * a
#%%
print(b.devices())
|
b13653c1a77b72b802f03d749da038a5e56a05e7785ed482f0c5d73fe3a3e995 | Python | 140 | 5 | from typing import Protocol
class NodeConstraintFn[PN, P](Protocol):
def __call__(self, pattern_node: PN, graph_node: P) -> bool: ...
|
1b04f00ebb37844eedc5f467f52f95ee753b8e05b2d653300c434be7f166693d | Python | 141 | 3 | # Neuroglancer viewer - view OME-Zarr volumes, NIfTI, TIFFs, and
# precomputed point annotations in a self-hosted Neuroglancer instance.
|
44ca2635f2f63b5c306ae941d2477fd6b451ef8f8a8a187f1fa3112a4486f011 | Python | 141 | 4 | # SPDX-FileCopyrightText: 2024 Sergiu Deitsch <sergiu.deitsch@gmail.com>
#
# SPDX-License-Identifier: Apache-2.0
__version__ = '1.0.0.post1'
|
97f55ec09d5badd8e0c05b3b1afcaf1524af10a51dd91016f2de37bbb88465ed | Python | 141 | 7 | """
OXASL: ASL processing pipeline
This module is only for compatibility with the Quantipihyse widget
"""
from oxasl.pipeline import oxasl
|
ae5d85136b0e9b5ce0e72009dda1bd4b07e2d51bba8e84b810cc37fe2fa158b9 | Python | 141 | 4 | from .base import ManifoldParameter
from .euclidean import Euclidean
from .hyperboloid import Hyperboloid
from .poincare import PoincareBall
|
72983630eff06782283f6484990d4abb56362a65404d0341b139271ded60f7b0 | Python | 142 | 7 | # -*- coding: utf-8 -*-
import sys
from niftymic.application.correct_bias_field import main
if __name__ == "__main__":
sys.exit(main())
|
a89cd6fc5fa4a12c8f652adb77a3e32e039db71d1d3cafbabdf3234229ee3472 | Python | 142 | 7 | # -*- coding: utf-8 -*-
import sys
from niftymic.application.reconstruct_volume import main
if __name__ == "__main__":
sys.exit(main())
|
d02af33ce677735b44f6a5ad11fd9237f170b8283b77a2885d0e304873826976 | Python | 142 | 5 | import os
from pathlib import Path
codes = ["4ozs", "8H1B", "1BNA", "8U8W"]
data_dir = Path(os.path.abspath(Path(__file__).parent / "data"))
|
c5ef6a741737a73a31e2e3e90d28175e9cd2aaf1883f20108b1c64b203e4408e | Python | 143 | 11 | #!/usr/bin/env python
"""
MoCHI commandline tool
"""
import sys, os
from pymochi import main
if __name__ == "__main__":
main.main()
|
d2f1f07de99eebd921d877662b89c114d94b91338b11753e70ae1b9d34e041fa | Python | 143 | 8 | __version__ = "1.0.2"
__all__ = [
"get_predictions",
"MolNexTRSingleton",
]
from .molnextr import get_predictions, MolNexTRSingleton
|
4049e8a5fd4d4c7ff50865c7cb6b1c5e26832e929fd4ee020657b38d410f95ca | Python | 144 | 7 | # -*- coding: utf-8 -*-
import sys
from niftymic.application.segment_fetal_brains import main
if __name__ == "__main__":
sys.exit(main())
|
72a332896d06c7dbdfdd795298476a46ca17c462b3030bcb004100880e492ce4 | Python | 144 | 4 | # TODO:
# Do a huge calculation with trivial primitive computations
# and lots of diamonds and get a benchmark per-node time and
# memory cost.
|
428f4d6d47a37e4e83e58a9774d8cb0a70fa408d1f514113c4c8923926993bd6 | Python | 145 | 4 | # Copyright 2023 The Xron Authors. All Rights Reserved.
#
#This Source Code Form is subject to the terms of the GNU General Public License v3.0
|
7309f5fedc35c48f2b65184b06bd6bd1964177ad5f3a67c6052ca852dc7c9f84 | Python | 145 | 4 | from .src.convolution import convolution
from .src.lowering_pass_conv import lowering_pass_conv
__all__ = ["convolution", "lowering_pass_conv"]
|
1627f4d3ee249ab028ea49c5e1440f4094fad73775a480dde3e5e7350265fbb1 | Python | 146 | 2 | from .logger import get_logger, setup_logging, SuppressShuffleWarning
from .util import set_random_seed, config_add_subdict_key, override_n_genes
|
39dee5cfb6f41021d47c2afa9e9992aaaa413055b1da81e155e46ff17c33b45e | Python | 146 | 7 | # -*- coding: utf-8 -*-
import sys
from niftymic.application.rsfmri_estimate_motion import main
if __name__ == "__main__":
sys.exit(main())
|
454fd58680ad2361cad41f9cbbc9f91f27f1d3984b42dceba4c30a62a91f6e15 | Python | 147 | 6 | """``python -m regtools.stitching`` -> launch the GUI."""
from regtools.stitching.launch import main
if __name__ == "__main__":
main()
|
5da7604d41b1224cb2e7a95075b35b2ead3d7539d5773f12feb0885bf59387f6 | Python | 147 | 5 | # only relative imports for the functionality to be accessible via spy.synthdata
from .utils import *
from .analog import *
from .spikes import *
|
6f58215c5cdb4f713b586c2636c710b05b85b20f7737265ee48f99d5b5a6ea99 | Python | 147 | 4 | from .blockV1_5 import *
from .preact_block import *
from .block_utils import *
from .inverted_block import InvertedResidual, Conv2dNormActivation
|
b3e3576779d1d4b079814eac14d1fcdb62794265d809f2e5a550a24665adbbbb | Python | 147 | 4 | from .graph import Graph
from .matching import MatchError, find_all_matches, match
__all__ = ["match", "find_all_matches", "MatchError", "Graph"]
|
05f19148da41bd8e44e5a7f53cdadb3b4203f7a6d43ab6edf57a40be816a692c | Python | 148 | 9 | from .base import Ensemble
from .cellpack import CellPack
from .star import StarFile
__all__ = [
"Ensemble",
"CellPack",
"StarFile",
]
|
673f68f4142f03cc0ddc9b0da144b4c13668c618a7e2cbcca4dbc25b047d2def | Python | 148 | 7 | # -*- coding: utf-8 -*-
import sys
from niftymic.application.multiply_stack_with_mask import main
if __name__ == "__main__":
sys.exit(main())
|
993cd7b161831e2556e71f331f3711bb58a650cceb12d2675217ec37e741ad5e | Python | 148 | 6 | """More routines for operating on iterables, beyond itertools"""
from .more import * # noqa
from .recipes import * # noqa
__version__ = '9.1.0'
|
a9677645182fa2b36f6f69ce534a71449ed14303578b9c8fc53fea814a099f00 | Python | 148 | 7 | from . import base_module
from . import distributions
from . import unimodal
from . import model
from . import dataset_utils
__version__ = "0.1.0"
|
de309addf2e081f3de20d822f66a2e3ab813161e40de3abff33c04defa46ca6d | Python | 148 | 6 | from .menu import register_templates_menu, unregister_templates_menu
__all__ = [
"register_templates_menu",
"unregister_templates_menu",
]
|
e9821500610d84d49ebd54980fa24702ccb50e206abede2fd9b6a4b990715f98 | Python | 149 | 7 | from .amigos import *
from .deap import *
from .dreamer import *
from .mahnob import *
from .seed import *
from .seed_iv import *
from .mped import * |
9a37dd14e1af88fcdb2af3e9bea9ee2a2536802a70b27dd5bd4eef470be48c95 | Python | 150 | 5 | """Allow running as ``python -m regtools.manual_contour_registration``."""
from regtools.manual_contour_registration.launch import main
main()
|
055946572ed93f984cd1049cba0e30fc1fcc59ad010205a6b615af036a511898 | Python | 151 | 3 | from .annotation import create_anns_dataframe
from .family_parser import get_families, assign_membership, get_hierachy
from .data_manipulation import * |
0f8d1aaa9ca64ccebcbe3ff2152173f9fad62ff7f1dc16ba8b9b41ec098514c0 | Python | 151 | 4 | import bl_ext.blender_org.molecularnodes as mn # type: ignore
mol = mn.Molecule.fetch("4ozs")
mol.add_style("cartoon", material="Ambient Occlusion")
|
7f4d25e2aaebf82f06a08bc78716158692cf052fbc111cd0ee00309b7320c317 | Python | 151 | 14 | """
Global variables for the package
"""
__author__ = 'martinez'
import numpy as np
STR_PEAK_ID = 'peak_id'
# Structs
PK_COORDS = 'pk_coords' |
80504382c4d7d0cf22c8868f43bc0d57a1ddcadcc954d36967c9694553d90836 | Python | 152 | 5 | from mnp.utils.data_preparation import prepare_dockstring_scores
prepare_dockstring_scores('plain', 'small')
prepare_dockstring_scores('aug', 'small') |
b49bc28b091c0c69929529c9310a30fd2977aeb5230ff75f2ee271957b70b840 | Python | 152 | 9 | import sys, os
import pandas as pd
import numpy as np
try:
inputfile = sys.argv[1]
except:
sys.exit("Please, give input file with count table")
|
fc2b19dacca5b9a51c223515b4e373d5f14dd37f7c6ef7c7147a0a980e479c91 | Python | 152 | 4 | from .batch_normed_linear import BatchNormedLinear as BatchNormedLinear
from .linear import Linear as Linear
__all__ = ["BatchNormedLinear", "Linear"]
|
4729165dcaf41b5304784c1498b82afce52a565f2c56d77679b5e59ec6f9bfe2 | Python | 153 | 9 | from topaz.model.generative import ConvGenerator
class ConvGenerator():
def test_init(self):
pass
def test_forward(self):
pass |
d51d62fc255bcfe6a585e121ee27c26b0e89eeba20812e81934ac60c728bc93a | Python | 153 | 7 | from .base_transform import *
from .any import *
from .label import *
from .numpy import *
from .torch import *
from .hooks import *
from .graph import * |
4caa2c57b84fa58a41cebef4206d450131898e9b9625fb5e838128875b7f8e72 | Python | 154 | 4 | from .identity_param_quantization import Identity
from .quantized_optim import get_quantized_optimizer
__all__ = ["get_quantized_optimizer", "Identity"]
|
4eac4ad005bcccdfe8c5a191e3b745c39797358a09a70d250f436b2729532252 | Python | 154 | 4 | class Rom:
def __init__(self, name: str, data_width: int, values: list[int]) -> None:
self._name = name
self._data_width = data_width
|
52e064c3dbfed579c71badbe2bcca432a70459b38bf332e5a46ed00e5151a389 | Python | 154 | 7 | """Enhanced versions of the ASE Vasp calculator."""
from __future__ import annotations
from quacc.calculators.vasp.vasp import Vasp
__all__ = ["Vasp"]
|
c8683490e387146426142e806f002278563c5b27b4a7e1a69f7cebac7cfb63d8 | Python | 154 | 7 | # -*- coding: utf-8 -*-
import sys
from niftymic.application.reconstruct_volume_from_slices import main
if __name__ == "__main__":
sys.exit(main())
|
eb6ba36a3b232c04777ce1373b37e3dcec3c5448ad481c113b00dae762ac93c0 | Python | 154 | 3 | # Cell Analysis module for cell detection and region counting
from .cell_counting import process_counts
from .cell_detection import get_cell_locations
|
0c27d82c7c7dcc8495d1e348017315e6363fbcef43d8123a34262bdd2f1a4e4d | Python | 155 | 12 | import numpy as np
import pandas as pd
from topaz.utils.data.partition import stratify, kfold
def test_stratify():
pass
def test_kfold():
pass |
685df37579ba55f14f8d99fe2b9c88e5071acde27636795a2b670065b4e29d17 | Python | 155 | 7 | """
Output subpackage.
GIF generation and matplotlib diagnostic visualization.
"""
from .gif import generate_axis_gif, generate_registration_gifs
|
09f6f94d35cf6161850e77ab4819ba3511bc7022b19400fbb7afdc8f6b28ceea | Python | 156 | 6 | # -*- coding: utf-8 -*-
from .model import VIDependencyModel
from .parser import VIDependencyParser
__all__ = ['VIDependencyModel', 'VIDependencyParser']
|
5595aa097211e6555fe8a84ec3786947467da8ff0705b1c48c03a314881b6744 | Python | 156 | 5 | from topaz.filters import AffineFilter,AffineDenoise,GaussianDenoise,InvGaussianFilter, gaussian_filter, inverse_filter
class TestAffineFilter():
pass |
8f12eecee195c37b3842641d8454a5ed43fd8831aa82996147310ce2fa599cc2 | Python | 156 | 5 | # -*- coding: utf-8 -*-
from .nl import CellListNL
from .basis import CutoffFunc, GaussianBasis, PolynomialBasis
from .misc import AtomicOnehot, ANNOutput
|
062be34ef7e0e84d6b833b7f4eaeff6e025242f55320b0c0d59def59f692345a | Python | 157 | 6 | """``python -m regtools.point_reorient`` -> launch the GUI."""
from regtools.point_reorient.launch import main
if __name__ == "__main__":
main()
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.