text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 import torch import torch.nn as nn from torch.distributions import MultivariateNormal, constraints import pyro.distributions as dist from pyro.contrib.timeseries.base import TimeSeriesModel from pyro.nn import PyroParam, pyro_meth...
uber/pyro
pyro/contrib/timeseries/lgssmgp.py
Python
apache-2.0
11,250
[ "Gaussian" ]
4ff8cb91bbfac93980f0777b68374e2a9dd7c37ae6cd54fd20f0c143adb156e3
# -*- coding: utf-8 -*- ''' Copyright (c) 2015 by Tobias Houska This file is part of Statistical Parameter Estimation Tool (SPOTPY). :author: Tobias Houska Implements a variant of DE-MC_Z. The sampler is a multi-chain sampler that proposal states based on the differences between random past states. The sampler does ...
p-lauer/spotpy
spotpy/algorithms/demcz.py
Python
mit
26,423
[ "Gaussian" ]
ea5db8f08c86320a3e44b0a6f9e1f11d58c6eb952bc5cc8a4f8234f8bf6e5a9f
""" Test basic molecular features. """ import numpy as np import unittest from deepchem.feat.basic import MolecularWeight, RDKitDescriptors class TestMolecularWeight(unittest.TestCase): """ Test MolecularWeight. """ def setUp(self): """ Set up tests. """ smiles = 'CC(=O)OC1=CC=CC=C1C(=O)O' ...
ktaneishi/deepchem
deepchem/feat/tests/test_basic.py
Python
mit
1,069
[ "RDKit" ]
be0de9afe20b68ec85221ed506fa72a01805ac29920612583c593fe0225658cb
""" Add UUIDs to workflows """ from sqlalchemy import * from sqlalchemy.orm import * from migrate import * from migrate.changeset import * from galaxy.model.custom_types import UUIDType, TrimmedString import logging log = logging.getLogger( __name__ ) metadata = MetaData() """ Because both workflow and job reques...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/model/migrate/versions/0121_workflow_uuids.py
Python
gpl-3.0
1,498
[ "Galaxy" ]
7c1ee223c4a3fc00e1334d6697e698a31c67b37e91a2de3b7a7eba4de9784fa9
#!/usr/bin/env python '''VIC testing command line interface''' from __future__ import print_function import os import argparse from collections import namedtuple import psutil import string import subprocess from subprocess import check_call import datetime import getpass import socket import time import numpy as np ...
dgergel/VIC
tests/run_profiling.py
Python
gpl-2.0
9,136
[ "NetCDF" ]
a3b9ac16f08ea190bb63b3a937172c3314331e37963e9da1e7b862f7a57ef445
#!/usr/bin/python """ Python source code - Reads a file containing item stats in base 'identify' format, splits it into appropriate variables, and stores them in the stat DB """ import sys import psycopg2 import locale import re from optparse import OptionParser # replace with argparse in 2.7 from datetime import dat...
grokh/torilbot
parseStats.py
Python
mit
26,337
[ "CRYSTAL" ]
a44730cd12150c3afaa78b8991f05678fff7f2e49824fbdc6ba3eb638d5c0440
#!/opt/anaconda1anaconda2anaconda3/bin/python from __future__ import print_function import os import sys import argparse from argparse import RawTextHelpFormatter parser = argparse.ArgumentParser(description="Build and Run path advisor for Psi4", formatter_class=RawTextHelpFormatter) ...
psi4/psi4meta
conda-recipes/psi4-dev/src/psi4-path-advisor.py
Python
gpl-2.0
5,808
[ "Psi4" ]
bb5044f6c84c634369ce46226ceb0bc7ccd0c46175ebdcb4e2074f368245b5d1
import contextlib import gzip import itertools import math import os.path import pickle import re import shutil import sys import tempfile import warnings from contextlib import ExitStack from io import BytesIO from pathlib import Path from typing import Optional import numpy as np import pandas as pd import pytest fr...
pydata/xarray
xarray/tests/test_backends.py
Python
apache-2.0
214,655
[ "NetCDF" ]
629a75d3acb00fbbac22b59ef9d0a4d5613054346a64f75eb2ddc841a576c60b
#!/usr/bin/env python """ Support for uframe stream route(s), utilized for stream information. """ __author__ = 'Edna Donoughe' from flask import (jsonify, request, current_app) from ooiservices.app import db from ooiservices.app.uframe import uframe as api from ooiservices.app.main.errors import (internal_server_er...
asascience-open/ooi-ui-services
ooiservices/app/uframe/streams.py
Python
apache-2.0
17,509
[ "NetCDF" ]
ffcf238308ca5bd26a470b2ad25834f1803a4c51b335dc8fd3e09a0b113ca51b
#!/usr/bin/env python """ Generate the images and rst files for gallery of SfePy examples. The following steps need to be made to regenerate the documentation with the updated example files: 1. Generate the files: - for sfepy.org deployment:: $ ./script/gen_gallery.py -l ../doc-devel - for local test bu...
lokik/sfepy
script/gen_gallery.py
Python
bsd-3-clause
21,255
[ "VTK" ]
b7209a82b9fca0e8d425bdb8210bab0e1b3160c0b6ce94bd7351bb8dbd62eff2
import cgi import json import os import posixpath import shutil import tempfile from urllib.parse import urlparse from apistar.compat import DownloadedFile class BaseDecoder: media_type = None def decode(self, bytestring, **options): raise NotImplementedError() class JSONDecoder(BaseDecoder): ...
tomchristie/apistar
apistar/client/decoders.py
Python
bsd-3-clause
7,825
[ "NetCDF" ]
ecf5f34da12962a56d62e4e2c0cac03d4dcf677e3c5b93688dd04c10d4b6fb57
""" Support for control of ElkM1 sensors. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.elkm1/ """ from homeassistant.components.elkm1 import ( DOMAIN as ELK_DOMAIN, create_elk_entities, ElkEntity) DEPENDENCIES = [ELK_DOMAIN] async def asy...
tinloaf/home-assistant
homeassistant/components/sensor/elkm1.py
Python
apache-2.0
7,872
[ "Elk" ]
27365069ee26b8ae48381e10142fde6850e74e35678770939a46c4abb45a5458
# noqa: D100 import base64 import collections import keyword import re from pathlib import Path from urllib.parse import urlparse # These mimetypes will be encoded in base64 when embedded in requests. # I'm sure there is a more elegant solution than this... https://pypi.org/project/binaryornot/ ? BINARY_MIMETYPES = [...
bird-house/birdy
birdy/utils.py
Python
apache-2.0
5,856
[ "NetCDF" ]
b5b5e8e58c7a27c6489d856033b13e737a4f03106478e5be471692a1e147a01f
""" This module contains functions related to the calculation of powder diffraction patterns from area detector data. """ import numpy.ma as ma from scipy.interpolate import griddata import itertools import numpy as np from scipy.ndimage.filters import gaussian_filter import utils from output import log import config...
hoidn/LCLS
dataccess/dataccess/geometry.py
Python
gpl-3.0
15,603
[ "Gaussian" ]
2e79a715b25e14da09d203476f26b9827cc674caf833fbf8d58e846dcaf9c797
""" Tests for ConvMolFeaturizer. """ from __future__ import print_function from __future__ import division from __future__ import unicode_literals __author__ = "Han Altae-Tran and Bharath Ramsundar" __copyright__ = "Copyright 2016, Stanford University" __license__ = "GPL" import unittest import os import sys import ...
bowenliu16/deepchem
deepchem/feat/tests/test_graph_features.py
Python
gpl-3.0
4,376
[ "RDKit" ]
d6bc919f372734c659685e59c9b54f4ecaf070a5fe9f4b9f8a59ea37c1bf885f
#!/usr/bin/env python # This file is part of Androguard. # # Copyright (c) 2012 Geoffroy Gueguen <geoffroy.gueguen@gmail.com> # All Rights Reserved. # # Androguard is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Fo...
xtiankisutsa/MARA_Framework
tools/androguard/demos/dad_emul.py
Python
lgpl-3.0
5,275
[ "VisIt" ]
9f45a55c42aef2e26f92f95488902040bc689337162271bc6fcaec290f28b8a1
""" Module to hold a RecipeTable class. """ import math import warnings import random import pickle import scipy.sparse as sparse from tqdm import tqdm import myio.myio as myio import statistics.cluster as cluster import chef_global.debug as debug class RecipeTable: """ A class to hold all of the recipes. ...
MaxStrange/swedish_chef
statistics/recipe_table.py
Python
apache-2.0
6,856
[ "Gaussian" ]
29ea11c035e590102a6bd8ce7dc381c4580357da90967205069985f5b55bb4dc
""" This is a procedural interface to the matplotlib object-oriented plotting library. The following plotting commands are provided; the majority have Matlab(TM) analogs and similar argument. _Plotting commands acorr - plot the autocorrelation function annotate - annotate something in the figure arrow ...
tkaitchuck/nupic
external/linux64/lib/python2.6/site-packages/matplotlib/pylab.py
Python
gpl-3.0
10,245
[ "Gaussian" ]
0f447994286e8380c22b7bc288aea50c5f4a8e7d7eadc370eddce12c94a48945
# (c) 2013-2014, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2015 Toshio Kuratomi <tkuratomi@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either...
Censio/ansible-dev
lib/ansible/executor/module_common.py
Python
gpl-3.0
33,971
[ "VisIt" ]
52ad4f408280d4bd7805225da8bba0b183a942c36c90d6916d08976135f4eba3
# # @file TestCVTerms_newSetters.py # @brief CVTerms unit tests # # @author Akiya Jouraku (Python conversion) # @author Sarah Keating # # ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ====== # # DO NOT EDIT THIS FILE. # # This file was generated automatically by converting the file loc...
TheCoSMoCompany/biopredyn
Prototype/src/libsbml-5.10.0/src/bindings/python/test/annotation/TestCVTerms_newSetters.py
Python
bsd-3-clause
6,074
[ "VisIt" ]
dc1984d8b5366f5ca32322ab42e523dd2027d7d2cb25dad8c6500ea7455d7ef5
# Parsing congress.gov/members/ import requests from lxml import html from lxml.html import fromstring # FIRST: Get Senators and Reps's websites. # create dictionary takeadict = [] # get info from website page = requests.get('https://www.congress.gov/members?pageSize=250&q={"congress":"115"}') tree = html.fromstrin...
walke469/spartahack-17
parsingstep2forreal.py
Python
bsd-2-clause
2,479
[ "VisIt" ]
f937c757d189d4eaaff47ab296e271ba3b0ef903ae3bcfd24ca1213a2546f2fb
from pathlib import Path import json import numpy as np import pytest import psi4 from psi4.driver.procrouting.response.scf_response import tdscf_excitations from .utils import * ## marks # reference type UHF = pytest.mark.unrestricted RHF_singlet = pytest.mark.restricted_singlet RHF_triplet = pytest.mark.restricted...
jgonthier/psi4
tests/pytests/test_tdscf_excitations.py
Python
lgpl-3.0
13,651
[ "Psi4" ]
899b434e607ef809674f54bb917ba8a5d72ee9d0b8b673bf2160ac6e6dbaf625
""" Constructive Solid Geometry file formats. """ from galaxy.datatypes import data from galaxy.datatypes.binary import Binary from galaxy.datatypes.data import get_file_peek from galaxy.datatypes.data import nice_size from galaxy.datatypes.metadata import MetadataElement from galaxy import util MAX_HEADER_LINES = 500...
icaoberg/cellorganizer-galaxy-tools
datatypes/constructive_solid_geometry.py
Python
gpl-3.0
21,604
[ "Galaxy", "VTK" ]
2378c2cf3213ada19e05778e2dd8c2ebb1db84ebda6e62cf174bb14d032dc1cc
""" Just an utilities collector """ import types from DIRAC import S_OK, S_ERROR def checkArgumentFormat( path ): """ returns {'/this/is/an/lfn.1':False, '/this/is/an/lfn.2':False ...} """ if type( path ) in types.StringTypes: return S_OK( {path:False} ) elif type( path ) == types.ListType: return S...
sposs/DIRAC
Resources/Utilities/Utils.py
Python
gpl-3.0
577
[ "DIRAC" ]
02fefa2c3e8d1fcaa1c428ad340595ecd0d9bec23db9526501d5fe0e08a3d9c2
""" View for Courseware Index """ # pylint: disable=attribute-defined-outside-init import logging import urllib from django.conf import settings from django.contrib.auth.models import User from django.contrib.auth.views import redirect_to_login from django.core.urlresolvers import reverse from django.http import Htt...
lduarte1991/edx-platform
lms/djangoapps/courseware/views/index.py
Python
agpl-3.0
23,622
[ "VisIt" ]
3a208cc52c8989eb909364497485cc2b38a88b2a8df1e90ea5ccaa707f293ab7
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- http://www.mdanalysis.org # Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under the GNU Public ...
kain88-de/mdanalysis
package/MDAnalysis/analysis/distances.py
Python
gpl-2.0
7,523
[ "MDAnalysis" ]
6bbf768b2b6183ee4c2cfc8956e6f00cea1cfb76e20190ee34d7ce14093b17e1
""" The FileCatalogClient is a class representing the client of the DIRAC File Catalog """ import os from DIRAC import S_OK, S_ERROR from DIRAC.Core.DISET.TransferClient import TransferClient from DIRAC.Core.Security.ProxyInfo import getVOfromProxyGroup from DIRAC.ConfigurationSystem.Client.Helpers.Registry import g...
fstagni/DIRAC
Resources/Catalog/FileCatalogClient.py
Python
gpl-3.0
24,110
[ "DIRAC" ]
7db9c339d5010fcd9ce655d50d8fa2b5be87f8cf5a25a0325013672f6fb97bc9
import openbabel as ob import pybel import sys import logging import os import subprocess import time import sqlite3 import numpy as np np.set_printoptions(threshold=np.inf, linewidth=150) from GaussianHelper import * from collections import deque, defaultdict from seam_ts_search import * def printMol(mol,fileFormat =...
sxhexe/reaction-route-search
reactionroute_web/reaction/search/reactionroute.py
Python
mit
77,435
[ "Gaussian", "PyMOL", "Pybel" ]
e7f263812c68cfda525a5fb093a19500b292177c37ebeae21ae0a8e53f34c9bf
# -*- coding: utf-8 -*- from kivy.lang import Builder from kivy.uix.modalview import ModalView from kivy.uix.floatlayout import FloatLayout from kivy.uix.boxlayout import BoxLayout from kivymd.button import MDFlatButton, MDIconButton from kivymd.theming import ThemableBehavior from kivymd.elevationbehavior import Elev...
PeterSurda/PyBitmessage
src/kivymd/theme_picker.py
Python
mit
18,042
[ "Amber" ]
d309bbdf22d64b0f395dae6da46f9b80daac31d1feb83519ed5694a245de6688
# This script contains the functions used for drawing the programs output images. The functions are called from graphic-output.py when they are needed. import argparse, math from PIL import Image, ImageDraw, ImageFont, ImageOps from StringIO import StringIO #Common arguments parser = argparse.ArgumentParser() parse...
davidwilson-85/easymap
graphic_output/draw.py
Python
gpl-3.0
62,463
[ "Biopython" ]
aed775cb38b22673eeed5832322cb605b28c49d1e013a8f677c9da02a513ee9c
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) # # Author: Matteo Giantomassi <matteo.giantomassiNOSPAM AT uclouvain.be> # Date: October 11, 2016 from spack import * c...
LLNL/spack
var/spack/repos/builtin/packages/abinit/package.py
Python
lgpl-2.1
10,975
[ "ABINIT", "NetCDF", "Wannier90" ]
eaf29bd1ee9e2f05b9653dfee78d16c359544f0ac2e54dde7f07567cbc771ba1
""" Verify the validity of IR. """ from __future__ import print_function, division, absolute_import import functools from .types import (Boolean, Integral, Real, Array, Struct, Pointer, Vector, resolve_typedef) from .ir import Function, Block, Value, Operation, Constant from .traversal import vis...
FrancescAlted/blaze
blaze/compute/air/verification.py
Python
bsd-3-clause
6,458
[ "VisIt" ]
7f0cbbe429575b4317976efbd897fd48f72ad3a18eb05474fba801027cba834c
# Author: Prabhu Ramachandran <prabhu_r at users dot sf dot net> # Copyright (c) 2006, Enthought, Inc. # License: BSD Style. # Enthought library imports. from traits.api import Instance from tvtk.api import tvtk # Local imports from mayavi.filters.filter_base import FilterBase from mayavi.core.pipeline_info import Pi...
dmsurti/mayavi
mayavi/filters/delaunay3d.py
Python
bsd-3-clause
1,240
[ "Mayavi" ]
bfeca808b04246648bafc3846e75b0e180b5eb54d4020d1cee7a72be8326f964
""" Alpha diversity measures (:mod:`skbio.diversity.alpha`) ======================================================= .. currentmodule:: skbio.diversity.alpha This package provides implementations of various alpha diversity measures, including measures of richness, dominance, and evenness. Some functions generate confi...
SamStudio8/scikit-bio
skbio/diversity/alpha/__init__.py
Python
bsd-3-clause
6,544
[ "scikit-bio" ]
55dd1c7127d6b27992374f08e66bdaeaa57d03c6e68010dc7906f2ff09ec10a2
import _thread as thread import os import platform import tempfile import time from logging import getLogger from subprocess import Popen from pulsar.managers import status from pulsar.managers.base.directory import DirectoryBaseManager from .util import kill_pid log = getLogger(__name__) JOB_FILE_SUBMITTED = "submi...
galaxyproject/pulsar
pulsar/managers/unqueued.py
Python
apache-2.0
9,371
[ "Galaxy" ]
c0f01d847ea8af552fa1f4177a1e22338e5766d927fd61b6cc8f7725107869b5
"""In-memory representation of interfaces and other data structures. The objects in this module are used to build a representation of an XML interface file in memory. @see: L{reader} constructs these data-structures @see: U{http://0install.net/interface-spec.html} description of the domain model @var defaults: Defau...
timdiels/0install
zeroinstall/injector/model.py
Python
lgpl-2.1
49,858
[ "VisIt" ]
3ffe0e293d45d612d1ff0782eebf7b917fecf4e39448a0a25037f16ff6566191
'''Usage: python monthly_visits.py <project_label> This is sort of a contrived example meant to display different features. ''' from scitran_client import ScitranClient, query, Projects import sys from collections import Counter from fnmatch import fnmatch client = ScitranClient() # Search for the project via label...
scitran/python-client
examples/monthly_visits.py
Python
gpl-3.0
1,214
[ "VisIt" ]
c3c85d8996a9d353674e8c2cf08b51851017e25a1e75e65162659db8d13508c7
#!/usr/bin/env python # -*- coding:utf-8 -*- #################################################################################################### # # Author: WishInLife # QQ: 57956720 # QQ Group: 59160264 # E-Mail: wishinlife@qq.com # Web Home: http://www.syncy.cn # Update date: 2015-09-12 # VERSION: 2.5.3 # Re...
openwrt-stuff/openwrt-extra
luci/applications/luci-syncy/root/usr/bin/syncy.py
Python
gpl-2.0
130,044
[ "VisIt" ]
833c06a2c73989aa1cde78014dc87d47670f6e4e22423b5d5a9bb6e4c80b521b
''' Filters for preprocessing lingual ultrasound data for dimensionality reduction. TODO: include generalized dimensionality reduction utilities here. ''' import numpy as np from scipy.ndimage import median_filter from scipy.ndimage.filters import gaussian_laplace def normalize(frame): """ Normalize input ...
mfaytak/image-pca
imgphon/ultrasound.py
Python
bsd-2-clause
7,181
[ "Gaussian" ]
48680df857d571e7f1088d007f51f204ebef2c43c706ace446ccc4e1f3e47981
__author__ = "Rick Sherman" import unittest2 as unittest from nose.plugins.attrib import attr from mock import patch import os import json from jnpr.junos import Device from jnpr.junos.factory.to_json import PyEzJSONEncoder, TableJSONEncoder, TableViewJSONEncoder from jnpr.junos.op.routes import RouteSummaryTable fro...
JamesNickerson/py-junos-eznc
tests/unit/factory/test_to_json.py
Python
apache-2.0
3,775
[ "Firefly" ]
8ad6c906d21a505dd6baed3f0a4a8f9557354d4c905a56065062f9df6f0f3809
# -*- coding: utf-8 -*- # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2006 Donald N. Allingham # Copyright (C) 2009 Brian G. Matherly # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Fr...
pmghalvorsen/gramps_branch
gramps/gen/utils/grampslocale.py
Python
gpl-2.0
46,947
[ "Brian" ]
cae5ca795fcc83f159dfbcfa0e96f2245ddda170e63b4c58202228e0df17916d
#!/usr/bin/python ###################################################################### # Ascii TMS Viewer # #-------------------------------------------------------------------- # Brian Hone | Initial Release #-------------------------------------------------------------------- # ...
flailingsquirrel/asciimapper
KMLParser.py
Python
bsd-3-clause
8,553
[ "Brian" ]
989991c5583b68b79d569303aa220575b724b4050e4a24a9a79e23b5c51d2a28
# Copyright (C) 2016 Arvid Fahlström Myrman # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distr...
arvidfm/masters-thesis
src/nn/init.py
Python
gpl-2.0
1,472
[ "Gaussian" ]
16a9bb0cdc3f3d4ac4347316e80131c922975319b6572ee8c009cfb89258583e
""" Copyright (c) 2009-2010 Marian Tietz All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follow...
sushi-irc/tekka
tekka/lib/welcome_window.py
Python
bsd-2-clause
4,102
[ "VisIt" ]
efec680b8f81950d33358cc7cc46b622415b14bd13b79a2664a9ab76d0ed84ca
"""File I/O related routines.""" # Copyright (C) 2011 Atsushi Togo # All rights reserved. # # This file is part of phonopy. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must ret...
atztogo/phonopy
phonopy/file_IO.py
Python
bsd-3-clause
28,150
[ "ABINIT", "CRYSTAL", "phonopy" ]
6b9108fc29f70f3b0e17d5a22136def96dbfc44859cc270992713c177df70c56
#=============================================================================== # # CUDATemplates.py # # This file is part of ANNarchy. # # Copyright (C) 2016-2018 Julien Vitay <julien.vitay@gmail.com>, # Helge Uelo Dinkelbach <helge.dinkelbach@gmail.com> # # This program is free software: you can...
vitay/ANNarchy
ANNarchy/generator/Population/CUDATemplates.py
Python
gpl-2.0
25,938
[ "NEURON" ]
73cc5c7d59a38093f958fb0d864ac7eb2e3ff444905f08cb9f0f3279903851c6
# -*- coding: utf-8 -*- """ Created on Wed Jun 11 17:20:36 2014 @author: Hera """ from __future__ import division from __future__ import print_function from builtins import range from past.utils import old_div import nplab.instrument.camera import nplab.instrument.stage from nplab.instrument import Instrument import c...
nanophotonics/nplab
nplab/instrument/stage/camera_stage_mapper.py
Python
gpl-3.0
20,271
[ "VisIt" ]
731951204551e8ead4fcfeca324b7e63e60d2ec9ecf935b41b395ccf43d0c791
# Copyright (C) 2013, Thomas Leonard # See the README file for details, or visit http://0install.net. import tempfile from xml.dom import Node from zeroinstall.zerostore import manifest from zeroinstall import zerostore from zeroinstall.support import tasks from zeroinstall.injector import namespaces, qdom, model de...
pombredanne/0template
digest.py
Python
lgpl-2.1
4,062
[ "VisIt" ]
1e3c78a65523feebc820a438d13fafb35f02b643ed5dcc208865e3ead938d928
from __future__ import print_function, division import types import pdb import time import sys import os import warnings from six import StringIO import numpy as np import matplotlib.pyplot as plt import pandas from scipy import stats import statsmodels.api as sm def santizeTimestamp(timestamp): if not isinstan...
lucashtnguyen/wqio
wqio/utils/misc.py
Python
bsd-3-clause
37,909
[ "Avogadro" ]
eedcce97e341be3bbb0a9c4522a61cf9a0ad732fb4ed14e5ba615faf5eae8ff2
""" This is only meant to add docs to objects defined in C-extension modules. The purpose is to allow easier editing of the docstrings without requiring a re-compile. NOTE: Many of the methods of ndarray have corresponding functions. If you update these docstrings, please keep also the ones in core/fromnum...
jorisvandenbossche/numpy
numpy/core/_add_newdocs.py
Python
bsd-3-clause
202,937
[ "Brian" ]
2ea71ca44333f444c31b88d7393ac19e8977c143b4853c3423524348e52c504f
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
googleinterns/local_global_ts_representation
gl_rep/glr.py
Python
apache-2.0
20,436
[ "Gaussian" ]
78436d12e87f8f2571fcaa0da3dd925326d1237fdaf7d1631d0aeca680bc60c7
''' Created on 14.04.2013 @author: bluesbreaker ''' from logilab.astng.utils import LocalsVisitor from logilab.astng.inspector import IdGeneratorMixIn from logilab.astng.node_classes import * from logilab.astng.scoped_nodes import Class, Function, Lambda from logilab.astng.exceptions import InferenceError from CSUStAn...
exbluesbreaker/csu-code-analysis
logilab-astng XML Generator/src/CSUStAn/astng/control_flow.py
Python
gpl-2.0
17,394
[ "VisIt" ]
34f7f0670bb9521dfb29be6d5f95088913b3f643dd8675228b6c5d836852325b
# -*- coding: utf-8 -*- import os import logging from core.modules.simulations_manager.weather.csv.CSVDatabaseWeatherSeries import CSVDatabaseWeatherSeries __author__ = 'Federico Schmidt' import csv from netCDF4 import Dataset as NetCDF import time from datetime import datetime import numpy as np import copy class...
schmidtfederico/PRinde
core/modules/simulations_manager/psims/WeatherNetCDFWriter.py
Python
gpl-2.0
9,342
[ "NetCDF" ]
c1492aff4841580ed6ca77cd137675a4ad5d30a705e654903bfee3c3b858df22
# coding: utf-8 from __future__ import unicode_literals """ This module implements input and output processing from QChem. """ import copy import re import numpy as np from string import Template import six from monty.io import zopen from pymatgen.core.operations import SymmOp from pymatgen.core.structure import M...
yanikou19/pymatgen
pymatgen/io/qchemio.py
Python
mit
73,185
[ "Gaussian", "Q-Chem", "pymatgen" ]
35e3aa32f6176719d461c7cdd14d534bec863a0b1b7a89e59504f1754c8286e2
try: from paraview import vtk except: import vtk try : from paraview import numpy_support except: from vtk.util import numpy_support try: from paraview.vtk import vtkFiltersModeling except: import vtk as vtkFiltersModeling from fonctions_basiques import * from extractions import * imp...
aurmarsan/pyturbo
fonctions_speciales.py
Python
mit
37,518
[ "ParaView", "VTK" ]
0dfe324087b65550bf505e7761ca9c2aed6242be5b38a540d1c039b148da92cf
#!/usr/bin/env python # encoding: utf-8 ''' Created by Brian Cherinka on 2016-04-26 09:20:35 Licensed under a 3-clause BSD license. Revision History: Initial Version: 2016-04-26 09:20:35 by Brian Cherinka Last Modified On: 2016-04-26 09:20:35 by Brian ''' import numpy from decimal import Decimal from psycopg...
albireox/marvin
python/marvin/db/NumpyAdaptors.py
Python
bsd-3-clause
4,454
[ "Brian" ]
9169842cf9a6ebe81aa89f30c4507396ee259c8611aa0ceb799562a6ae7f2d17
""" pycorrfit.models.control Controls which fitting models are imported an in which order. """ import numpy as np from .classes import Model def append_model(modelarray): """ Append a new model from a modelarray. *Modelarray* has to be a list whose elements have two items: [0] parameters ...
paulmueller/PyCorrFit
pycorrfit/models/control.py
Python
gpl-2.0
7,712
[ "Gaussian" ]
d2c38748313151c90068f435a242f86b845af19b53369d8e16f936f1dc083b74
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
xguse/scikit-bio
skbio/tree/_trie.py
Python
bsd-3-clause
7,771
[ "scikit-bio" ]
5ce087b7ba47c1e37579666823575fbd63e464051987afefeef3d54331a879e5
""" ComponentMonitoring class is a front-end to the Component monitoring Database """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import six from urllib import parse from DIRAC import gConfig, S_OK, S_ERROR from DIRAC.Core.Base.DB import DB from DIRAC.C...
ic-hep/DIRAC
src/DIRAC/FrameworkSystem/DB/ComponentMonitoringDB.py
Python
gpl-3.0
25,121
[ "DIRAC" ]
56f155b84b3105e4af30ebe0703cf3f1aaae3264f9ee449f9598de31e6c85280
# -*- coding: utf-8 -*- __author__ = 'José Francisco Velez & Rainer Arencibia' import logging import numpy as np import os import sys import time from PyQt4 import QtCore, QtGui import cv2 from ViewerWindow_uy import Ui_ViewerWindow from WindowAboutus import Ui_Dialog from src.Builders.Canny.CannyBuilder import Canny...
rainer85ah/VisionViewer
src/Viewer/VisionViewer.py
Python
mit
11,796
[ "Gaussian" ]
5d1c4189af2cc33ab48a7198d6f248906358e674a9cd24789dc5fa31daba2d12
""" The subpackage ``calib`` contains some useful cosmetics and pre-processing functionalities: - resizing frames and cubes : upscaling/pixel binning, - shifting frames, - rotating frames and cubes, - cropping frames and cubes, - removing bad pixels from frames and cubes, - correcting nan values...
henry-ngo/VIP
vip_hci/preproc/__init__.py
Python
mit
1,656
[ "Gaussian" ]
000b4436ef04f5f6bb4d374e919bc7a5e54f9a600449c84e90400067abe28a59
# # Parse tree nodes for expressions # import cython cython.declare(error=object, warning=object, warn_once=object, InternalError=object, CompileError=object, UtilityCode=object, TempitaUtilityCode=object, StringEncoding=object, operator=object, Naming=object, Nodes=objec...
rguillebert/CythonCTypesBackend
Cython/Compiler/ExprNodes.py
Python
apache-2.0
386,025
[ "VisIt" ]
d14c7dc679a0cc9cb9e4adcea29ff09189bca15d9dceefae46b80e83c833a12a
#! /usr/bin/env python # # Copyright (C) 2011, 2012, 2014, 2015, 2016 David Maxwell # # This file is part of PISM. # # PISM is free software; you can redistribute it and/or modify it under the # terms of the GNU General Public License as published by the Free Software # Foundation; either version 3 of the License, or (...
talbrecht/pism_pik
examples/inverse/invert_testi.py
Python
gpl-3.0
12,700
[ "NetCDF" ]
16388a8d7917af89c15af05bd82f9d8e05b8531415208f0209b594b4f3671415
import h2o_cmd, h2o_util import h2o2 as h2o import re, random, math from h2o_test import check_sandbox_for_errors, dump_json, verboseprint import h2o_nodes from tabulate import tabulate # recursive walk an object check that it has valid numbers only (no "" or nan or inf def check_obj_has_good_numbers(obj, hierarchy=""...
bikash/h2o-dev
py2/h2o_glm.py
Python
apache-2.0
29,794
[ "Gaussian" ]
50156cba0eb891a05b5290d5f5510292727685716bedfbe86793f3106504a794
""" =========================================== Sparse coding with a precomputed dictionary =========================================== Transform a signal as a sparse combination of Ricker wavelets. This example visually compares different sparse coding methods using the :class:`sklearn.decomposition.SparseCoder` esti...
chrsrds/scikit-learn
examples/decomposition/plot_sparse_coding.py
Python
bsd-3-clause
4,220
[ "Gaussian" ]
413942b675b572cb28f8dbb5f248222a756b812eb849070253f1c3030be517f6
import cProfile import astropy.table as table import numpy as np import common_settings import continuum_fit_pca import mock_core_with_shell from data_access.hdf5_spectrum_container import Hdf5SpectrumContainer from data_access.qso_data import QSORecord from physics_functions import comoving_distance from python_comp...
yishayv/lyacorr
create_mock_forests.py
Python
mit
4,534
[ "Mayavi" ]
319ffea39cb4509677000e5c908cc2470cb24d49a2a5fb034b3f6c008e118bc7
import logging import json import requests from lxml import etree from requests.exceptions import RequestException from datetime import datetime from moxie.core.kv import kv_store from moxie.core.service import ProviderException from . import TransportRTIProvider logger = logging.getLogger(__name__) CACHE_KEY = "ox...
ox-it/moxie
moxie/transport/providers/park_and_rides.py
Python
apache-2.0
4,299
[ "Amber" ]
e67c17e8f5f1413a0794119345c085825a27d426e4ff5f01eaf7b0186df73b69
# proxy module from __future__ import absolute_import from mayavi.components.common import *
enthought/etsproxy
enthought/mayavi/components/common.py
Python
bsd-3-clause
93
[ "Mayavi" ]
d68518957bd913641fb802d7c4da9d5fab4fd5df303e8c197cff1ed636a8ead4
#!/usr/bin/env python """ Pazookle Audio Programming Language Copyright (C) 2013 Bob Harris. All rights reserved. This file is part of Pazookle. Pazookle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation,...
zacko-belsch/pazookle
pazookle/shred.py
Python
gpl-3.0
8,653
[ "VisIt" ]
1d1eb3ff2b50b62efcfc3eae11755362c650e8b225a85013838109743823f93e
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
BackupTheBerlios/espressopp
src/analysis/AllParticlePos.py
Python
gpl-3.0
1,414
[ "ESPResSo" ]
77d7544d6fbd2ebf9f423f2244e0313dfa4e23dc0182fc05dfd5bd4d38c54354
from . import base from .. import stats from .. import items from .. import dialogue from .. import context from .. import aibrain from .. import effects from .. import animobs from .. import targetarea from .. import invocations from . import animals from .. import enchantments from .. import items import random from ...
jwvhewitt/dmeternal
old_game/monsters/constructs.py
Python
gpl-2.0
12,535
[ "BLAST" ]
ba4cc7ffda48f9afbdbef8329dc62b0521106acbf14d803a09f09296a0e0e82b
#!/usr/bin/python # Author: David Stelter # License: MIT License (See LICENSE.md) # Copyright (c) 2017 # All rights reserved. import os, sys, getopt import datetime __version__ = 0.2 #################### UNITS #################### # Only used with --units flag econv = 1.0 # Additional Factor for unit conversion if...
smsaladi/moltemplate
moltemplate/force_fields/convert_EMC_files_to_LT_files/emcprm2lt.py
Python
bsd-3-clause
24,255
[ "LAMMPS" ]
b90c7f86241943487c36b9a63cbdec0c40e46c38a521608d15dfaf6a7d25ecd0
''' The aim of a beat detection algorithm is to report the times at which a typical human listener might tap their foot to a piece of music. As a result, most metrics for evaluating the performance of beat tracking systems involve computing the error between the estimated beat times and some reference list of beat loca...
mrgloom/mir_eval
mir_eval/beat.py
Python
mit
34,468
[ "Gaussian" ]
04cc750516b482a6858207c1e94af0f06e93e60050b22570db1b18d12e0d3462
input_name = '../examples/diffusion/laplace_coupling_lcbcs.py' output_name = 'test_laplace_coupling_lcbcs.vtk' from tests_basic import TestInput class Test(TestInput): pass
RexFuzzle/sfepy
tests/test_input_laplace_coupling_lcbcs.py
Python
bsd-3-clause
178
[ "VTK" ]
16a775e7b3c3c0b2809b414a39179f3a7ae7b6babe81c821245f4e80d3366a3d
#pylint: disable=missing-docstring #################################################################################################### # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment ...
Chuban/moose
python/MooseDocs/common/MarkdownTable.py
Python
lgpl-2.1
3,002
[ "MOOSE" ]
d1bc7595b8efe18f310b8235bb47e916b412ec5e9b87556598264778aa5ef8b8
# -*- coding: utf-8 -*- import codecs import os.path import inlineplz.linters.clippy as clippy clippy_path = os.path.join("tests", "testdata", "parsers", "clippy.txt") def test_clippy(): with codecs.open(clippy_path, encoding="utf-8", errors="replace") as inputfile: messages = sorted(list(clippy.Clippy...
guykisel/inline-plz
tests/parsers/test_clippy.py
Python
isc
1,088
[ "VisIt" ]
a5a0bf3f9a0635a9c2b11589705fdff3c5880f8ec4ebc7bfabeb77476163d0b1
# # Copyright (c) 2017 Intel Corporation # SPDX-License-Identifier: BSD-2-Clause # import sys import numpy as np import ast import inspect import operator import types as pytypes from contextlib import contextmanager from copy import deepcopy import numba from numba import njit, stencil from numba.core.utils import ...
seibert/numba
numba/tests/test_stencils.py
Python
bsd-2-clause
98,430
[ "VisIt" ]
460c20275f075fbe4f107f452bf65307c26744e4152226b0cb73c821360e4370
# Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type import errno import fnmatch import json import operator import os import shutil import stat import...
indrajitr/ansible
lib/ansible/galaxy/collection.py
Python
gpl-3.0
68,862
[ "Galaxy" ]
0050c4497fe6da1d58af273890c190c55b1f01be38e65a12a7d344bd24f79ff0
from pymatgen.io.vaspio import Vasprun def parse_xml(): v = Vasprun("../test_files/vasprun.xml") if __name__ == "__main__": import timeit print(timeit.timeit("parse_xml()", setup="from __main__ import parse_xml", number=1))
Dioptas/pymatgen
dev_scripts/profile_xml.py
Python
mit
247
[ "pymatgen" ]
dc6a96a6f272d402f08d97b0f1df628a7e783816a660846be8deecd42117c6de
import os from types import GeneratorType from tempfile import mkdtemp, NamedTemporaryFile import numpy as np from numpy.testing import assert_almost_equal, assert_array_almost_equal import pytest from sklearn.metrics import r2_score import oddt from oddt.scoring import scorer, ensemble_descriptor, ensemble_model fr...
mkukielka/oddt
tests/test_scoring.py
Python
bsd-3-clause
12,498
[ "RDKit" ]
f9906377a322e0d07b81121f591f9908db14aa60453e7010e2dd509e8e6f3352
import numpy as np import theano import theano.tensor as T import unittest import tempfile from numpy.testing import assert_array_equal from smartlearner import views, stopping_criteria, Trainer, tasks from smartlearner.direction_modifiers import ConstantLearningRate from smartlearner.optimizers import SGD from smart...
ASalvail/smartlearner
tests/direction_modifiers/test_constant_learning_rate.py
Python
bsd-3-clause
4,298
[ "Gaussian" ]
d0e5ef4509255582f5e22a3f0aa1608960033779712970a749ac4fc5c41b4abd
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. '''Tool to create a new, empty .grd file with all the basic sections. ''' from grit.tool import interface from grit import constan...
JoKaWare/WTL-DUI
tools/grit/grit/tool/newgrd.py
Python
bsd-3-clause
2,724
[ "xTB" ]
f944257e8cd124b6d4d0ff08404d304d9fa7971744b94a12c3435b49069e041d
# # Copyright (c) 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
NervanaSystems/coach
rl_coach/architectures/mxnet_components/heads/ppo_head.py
Python
apache-2.0
34,467
[ "Gaussian" ]
7a964ede595baefba335e32fa7b0c787b262aa6bfea27ff3844b24129c484a65
""" Perform Levenberg-Marquardt least-squares minimization, based on MINPACK-1. AUTHORS The original version of this software, called LMFIT, was written in FORTRAN as part of the MINPACK-1 package by XXX. Craig Markwardt converted the FORTRAN code to IDL. The information for ...
jpinedaf/pyspeckit
pyspeckit/mpfit/mpfit.py
Python
mit
97,201
[ "Gaussian" ]
b3118ec08e725f734afb9434d1b450bff56eceb9fba0130dbfdebfdeb6d21eb7
#=============================================================================== # This file is part of TEMPy. # # TEMPy is a software designed to help the user in the manipulation # and analyses of macromolecular assemblies using 3D electron microscopy maps. # # Copyright 2015 Birkbeck Colle...
OniDaito/ChimeraXTempy
TEMPy/ScoringFunctions.py
Python
mit
101,337
[ "Gaussian" ]
85be23ff175e247d4ee5398b5c7311d6da244fafa1b646c11aa4b20222e74150
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals """ Common test support for pymatgen test scripts. This single module should provide all the common functionality for pymatgen tests in a single location, so that test ...
aykol/pymatgen
pymatgen/util/testing.py
Python
mit
6,802
[ "pymatgen" ]
4c3064b9316d6452e9d966211a743ccf0e2b7990e06485b740f85385afba8427
#! /usr/bin/env python ######################################################################## # $HeadURL$ # File : dirac-wms-jobs-select-output-search # Author : Vladimir Romanovsky ######################################################################## """ Retrieve output sandbox for DIRAC Jobs for the given ...
Sbalbp/DIRAC
Interfaces/scripts/dirac-wms-jobs-select-output-search.py
Python
gpl-3.0
3,266
[ "DIRAC" ]
b6401efe9830c4ddd39263ce8c12d600a807dc03395e88d27491666dd9fb6b19
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2014 Stanford University and the Authors # # Authors: Jason Swails # Contributors: # # This code for reading Amber r...
dwhswenson/mdtraj
mdtraj/formats/amberrst.py
Python
lgpl-2.1
33,342
[ "Amber", "MDTraj", "NetCDF" ]
0af97b794bece1c3c41c7295ecb2bf4a20ea1d9b62ab983647bfa94e7e199e56
#!/usr/bin/env python import argparse from CPT_GFFParser import gffParse, gffWrite from Bio import SeqIO from gff3 import feature_lambda, feature_test_type def main(fasta, gff3): seq_dict = SeqIO.to_dict(SeqIO.parse(fasta, "fasta")) codon_usage = {} for rec in gffParse(gff3, base_dict=seq_dict): ...
TAMU-CPT/galaxy-tools
tools/gff3/stop_stats.py
Python
gpl-3.0
1,276
[ "Amber" ]
ba5d39aeb0321a0a01611e2e1d6fc58b3dc5977544f50932da48a8627697b72f
"""Random variable generators. integers -------- uniform within range sequences --------- pick random element pick random sample generate random permutation distributions on the real line: ------------------------------ unif...
babyliynfg/cross
tools/project-creator/Python2.6.6/Lib/random.py
Python
mit
32,864
[ "Gaussian" ]
75524c8ce97569161b832440d9b3cb309d4900ee8b96ab494cf0308c7b700cca
"""HTML character entity references. Backported for python-future from Python 3.3 """ from __future__ import (absolute_import, division, print_function, unicode_literals) from future import standard_library from future.builtins import * # maps the HTML entity name to the Unicode codepoint na...
talishte/ctigre
env/lib/python2.7/site-packages/future/standard_library/html/entities.py
Python
bsd-2-clause
75,465
[ "Bowtie" ]
b981539cb1c293689b8011ff3bc8232cb748e12d64bf2425cb4f916ca46c4ad2
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/bug_1117098
openlp/plugins/songs/lib/__init__.py
Python
gpl-2.0
25,408
[ "Brian" ]
20c9ff913d9373c555625b19dc6dd3cd6101cb45129faed2162e8f63446e1336
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2002-2007 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2008 Jerome Rapinat # Copyright (C) 2008 Benny Malengier # # This program is free software; you can redistribute it and/or modify # it under the terms of the ...
pmghalvorsen/gramps_branch
gramps/gen/filters/rules/person/_hassourcecount.py
Python
gpl-2.0
1,800
[ "Brian" ]
2f4cc0673f4e1beebe9b68ee60661466b3afe9f076f25bae5e2d2be05bf3bd9f
#!/usr/bin/env python """ Get VM instances available in the configured cloud sites """ from __future__ import print_function from __future__ import division from __future__ import absolute_import __RCSID__ = "$Id$" from DIRAC.Core.Base import Script from DIRAC import gLogger, exit as DIRACExit Script.setUsageMess...
DIRACGrid/VMDIRAC
VMDIRAC/WorkloadManagementSystem/scripts/dirac-vm-instance-stop.py
Python
gpl-3.0
1,112
[ "DIRAC" ]
6c34405efd230e653c26d7987a7ca67228e367d8106b352684a47eb4f416c27a
#!/usr/bin/python import unittest import os import random import json import numpy as np from pymatgen.core.structure import Structure from pymatgen.core.lattice import Lattice from pymatgen.core.surface import Slab, SlabGenerator, generate_all_slabs, \ get_symmetrically_distinct_miller_indices, ReconstructionG...
czhengsci/pymatgen
pymatgen/core/tests/test_surface.py
Python
mit
28,851
[ "pymatgen" ]
8ac1970c83e53be6c9e906b11b4a0fca01c45704a5dcd25de19a456aa59ee110
# trbchan.py --- # # Filename: trbchan.py # Description: # Author: Subhasis Ray # Maintainer: # Created: Fri May 4 14:55:52 2012 (+0530) # Version: # Last-Updated: Fri May 3 11:45:07 2013 (+0530) # By: subha # Update #: 337 # URL: # Keywords: # Compatibility: # # # Commentary: # # Base clas...
dilawar/moose-full
moose-examples/traub_2005/py/channelbase.py
Python
gpl-2.0
5,829
[ "MOOSE" ]
9b645a679f18ebd532d972f00780393d63f1a8f49c6eaeafc26c8fe807053f3c
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Apache', fields=[ ('id', models.AutoField(prima...
za/dd3
dd3/visitor/migrations/0001_initial.py
Python
apache-2.0
522
[ "VisIt" ]
5e1c641d33993467ba4643c656a35091ce831d29d5e65d487d5647c70b6452e4
<<<<<<< HEAD <<<<<<< HEAD """ Python 'utf-7' Codec Written by Brian Quinlan (brian@sweetapp.com). """ import codecs ### Codec APIs encode = codecs.utf_7_encode def decode(input, errors='strict'): return codecs.utf_7_decode(input, errors, True) class IncrementalEncoder(codecs.IncrementalEncoder): def encode...
ArcherSys/ArcherSys
Lib/encodings/utf_7.py
Python
mit
2,978
[ "Brian" ]
29bea489f60fa29cb3d3bb97d7ff115c73f3c809ff198e77ef315e98ca226027
import pyspeckit # Rest wavelengths of the lines we are fitting - use as initial guesses NIIa = 6549.86 NIIb = 6585.27 Halpha = 6564.614 SIIa = 6718.29 SIIb = 6732.68 # Initialize spectrum object and plot region surrounding Halpha-[NII] complex spec = pyspeckit.Spectrum('sample_sdss.txt', errorcol=2) spec.plotter(xmi...
low-sky/pyspeckit
docs/example_sdss.py
Python
mit
2,916
[ "Galaxy" ]
23b32923bd03b972269dadf2c8008165f494aae8d84e58be6bc784081f8d7546
from contextlib import suppress import numpy as np import pandas as pd from ..doctools import document from ..exceptions import PlotnineError from .stat_density import stat_density, compute_density from .stat import stat @document class stat_ydensity(stat): """ Density estimate {usage} Parameters ...
has2k1/plotnine
plotnine/stats/stat_ydensity.py
Python
gpl-2.0
5,708
[ "Gaussian" ]
045640859aacfc6f2d5f54ac37daafc8cf4de61571ecd29bcf2fe4c6fbb8fb74