Search is not available for this dataset
repo stringlengths 2 152 ⌀ | file stringlengths 15 239 | code stringlengths 0 58.4M | file_length int64 0 58.4M | avg_line_length float64 0 1.81M | max_line_length int64 0 12.7M | extension_type stringclasses 364
values |
|---|---|---|---|---|---|---|
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/mapping_passes.py | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modif... | 7,266 | 40.056497 | 79 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/passes.py | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modif... | 7,012 | 31.467593 | 79 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/qft.py | # -*- coding: utf-8 -*
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any ... | 4,204 | 34.041667 | 79 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/quantum_info.py | # -*- coding: utf-8 -*
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifi... | 6,792 | 31.194313 | 78 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/quantum_volume.py | # -*- coding: utf-8 -*-
# Copyright 2018 IBM RESEARCH. All Rights Reserved.
#
# 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 requ... | 5,340 | 38.272059 | 79 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/queko.py | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modif... | 8,286 | 34.114407 | 78 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/random_circuit_hex.py | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any... | 3,759 | 35.862745 | 94 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/randomized_benchmarking.py | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modif... | 3,505 | 32.711538 | 77 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/ripple_adder.py | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modif... | 1,991 | 32.762712 | 77 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/scheduling_passes.py | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modif... | 3,582 | 37.945652 | 79 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/state_tomography.py | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any... | 2,019 | 35.071429 | 77 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/transpiler_benchmarks.py | # -*- coding: utf-8 -*
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifi... | 3,522 | 42.493827 | 79 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/transpiler_levels.py | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modif... | 6,842 | 30.389908 | 77 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/transpiler_qualitative.py | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modif... | 4,478 | 44.242424 | 77 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/utils.py | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modif... | 6,579 | 33.814815 | 79 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/pulse/__init__.py | 0 | 0 | 0 | py | |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/pulse/load_pulse_defaults.py | # -*- coding: utf-8 -*
# This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifi... | 20,111 | 33.497427 | 77 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/pulse/schedule_construction.py | # -*- coding: utf-8 -*
# This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifi... | 5,967 | 32.155556 | 78 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/pulse/schedule_lowering.py | # -*- coding: utf-8 -*
# This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifi... | 3,192 | 34.876404 | 77 | py |
qiskit-metapackage | qiskit-metapackage-master/test/benchmarks/qasm/__init__.py | 0 | 0 | 0 | py | |
qiskit-metapackage | qiskit-metapackage-master/tools/deploy_documentation.sh | #!/bin/bash
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modificatio... | 1,142 | 33.636364 | 127 | sh |
qiskit-metapackage | qiskit-metapackage-master/tools/deploy_documentation_tag.sh | #!/bin/bash
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modificatio... | 1,429 | 33.047619 | 123 | sh |
qiskit-metapackage | qiskit-metapackage-master/tools/deploy_translatable_strings.sh | #!/bin/bash
# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modificatio... | 3,194 | 34.10989 | 200 | sh |
null | VRPD-DSS-main/README.md | # VRPD-DSS
Vehicle routing problem with drones and drone speed selection
The basis of all test instances is an approximately 20 km by 30 km rectangle located in Minnehaha County, South Dakota, USA. We have selected ca. 700 possible customer locations and an UPS Customer Center in Sioux Falls as the depot. The map bel... | 561 | 79.285714 | 444 | md |
null | VRPD-DSS-main/Images/LocationMap.html | <!DOCTYPE html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script>
L_NO_TOUCH = false;
L_DISABLE_3D = false;
</script>
<script src="https://cdn.jsdelivr.net/npm/leaflet@1.6.0/dist/leaflet.js"></script>
<script src="http... | 768,036 | 42.978298 | 545 | html |
MonoTools-old/README.md | MonoTools-old/README.md | # MonoTools: A python package for planets of uncertain period
MonoTools is a package specific to the detection, vetting and modelling of transiting exoplanets, with a specific emphasis on Monotransiting planets, and those with unknown periods.
MonoSearch includes scripts specifically for searching and assessing a lig... | 4,666 | 85.425926 | 525 | md |
MonoTools-old/__init__.py | MonoTools-old/__init__.py | import os
os.environ['THEANO_FLAGS'] = "device=cpu,floatX=float64,gcc.cxxflags=-fbracket-depth=1024"
MonoTools_tablepath = os.path.join(os.path.abspath( __file__ ),'MonoTools','data','table')
if os.environ.get('MONOTOOLSPATH') is None:
MonoData_savepath = os.environ.get('MONOTOOLSPATH')
else:
MonoData_savepath ... | 478 | 35.846154 | 90 | py |
MonoTools-old/setup.py | MonoTools-old/setup.py | from setuptools import setup
import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
extrafiles =['data/tables/GKSPCPapTable1_Final.txt.gz',
'data/tables/BolMag_interpolations.models',
'data/tables/Cheops_Quad_LDs.txt',
'data/table... | 2,680 | 36.236111 | 108 | py |
MonoTools-old/.github/workflows/draft-pdf.yml | MonoTools-old/.github/workflows/draft-pdf.yml | on: [push]
jobs:
paper:
runs-on: ubuntu-latest
name: Paper Draft
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build draft PDF
uses: openjournals/openjournals-draft-action@master
with:
journal: joss
# This should be the path to the paper... | 670 | 26.958333 | 72 | yml |
MonoTools-old/MonoTools/__init__.py | MonoTools-old/MonoTools/__init__.py | __all__ = ['tools', 'MonoSearch', 'MonoFit', 'starpars'] | 56 | 56 | 56 | py |
MonoTools-old/MonoTools/fit.py | MonoTools-old/MonoTools/fit.py | import exoplanet as xo
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from bokeh.plotting import figure, output_file, save, curdoc, show
from bokeh.models import Band, Whisker, ColumnDataSource, Range1d
from bokeh.models.arrow_heads import TeeHead
from bokeh.layouts import gridplot, row, colum... | 270,106 | 63.326506 | 259 | py |
MonoTools-old/MonoTools/search.py | MonoTools-old/MonoTools/search.py | #
# Let's use this python script to:
# - perform transit "Quick fit"
# - Search for dips in a lightcurve which match that detected
# - Search for secondaries
# - Perform quick/dirty EB modelling
#
import numpy as np
import pandas as pd
import pickle
import os
import glob
from copy import deepcopy
from datetime impor... | 175,141 | 54.302179 | 284 | py |
MonoTools-old/MonoTools/starpars.py | MonoTools-old/MonoTools/starpars.py | import numpy as np
import scipy
import pandas as pd
import astropy.units as u
from astropy.coordinates.sky_coordinate import SkyCoord
from astropy.units import Quantity
from astroquery.mast import Catalogs
from astroquery.gaia import Gaia
from astroquery.vizier import Vizier
import requests
import re
import os
import... | 90,099 | 54.07335 | 320 | py |
MonoTools-old/MonoTools/tools.py | MonoTools-old/MonoTools/tools.py | import numpy as np
import exoplanet as xo
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from astropy.io import fits
from astropy.io import ascii
from scipy.signal import savgol_filter
import h5py
import pymc3 as pm
import theano.tensor as tt
import astropy.units as u
from astropy.units impo... | 82,551 | 50.434268 | 329 | py |
MonoTools-old/MonoTools/stellar/__init__.py | MonoTools-old/MonoTools/stellar/__init__.py | 0 | 0 | 0 | py | |
MonoTools-old/MonoTools/stellar/isoclassify/README.md | MonoTools-old/MonoTools/stellar/isoclassify/README.md | # Isochrone Stellar Classification Codes
[](https://doi.org/10.5281/zenodo.573372)
Python codes to perform stellar classifications given any set of input observables. Details are described in [Huber et al. 2017](http://adsabs.harvard.edu/abs/2017ApJ...844.... | 3,805 | 41.764045 | 403 | md |
MonoTools-old/MonoTools/stellar/isoclassify/__init__.py | MonoTools-old/MonoTools/stellar/isoclassify/__init__.py | import os
DATADIR = os.environ['ISOCLASSIFY']
from .isoclassify import *
#from isoclassify.grid import *
#classify_grid, priors, match, plot, single, pdf
#import grid.classify_grid
#import grid.priors
#import grid.match
#import grid.plot
#import grid.single
#import grid.pdf
| 276 | 20.307692 | 48 | py |
MonoTools-old/MonoTools/stellar/isoclassify/huber17scripts/apokasc_direct.py | MonoTools-old/MonoTools/stellar/isoclassify/huber17scripts/apokasc_direct.py | import sys
import ebf
import numpy as np
import scipy.interpolate
import pdb
import asfgrid
from astropy.io import ascii
from classify_direct import *
#from classify_direct import *
if __name__ == '__main__':
dnumodel = asfgrid.Seism()
bcmodel = h5py.File('bcgrid.h5', 'r')
dustmodel = mwdust.Green15()
... | 5,630 | 36.291391 | 257 | py |
MonoTools-old/MonoTools/stellar/isoclassify/huber17scripts/apokasc_grid.py | MonoTools-old/MonoTools/stellar/isoclassify/huber17scripts/apokasc_grid.py | import numpy as np
import matplotlib.pyplot as plt
from classify_grid import *
import os, ebf
from astropy.io import ascii
import time
if __name__ == '__main__':
homedir=os.path.expanduser('~/')
model=ebf.read(homedir+'science/models/MIST/mesa.ebf')
model['rho']=np.log10(model['rho'])
# do this to t... | 5,652 | 35.006369 | 257 | py |
MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/__init__.py | MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/__init__.py | import os
DATADIR = os.environ['ISOCLASSIFY']
from .grid import *
from .direct import *
from . import pipeline
| 113 | 13.25 | 35 | py |
MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/pipeline.py | MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/pipeline.py | import os
import copy
import glob
import h5py
import numpy as np
from matplotlib import pylab as plt
import pandas as pd
#import ebf
import astropy.units as units
from astropy.coordinates import SkyCoord
try:
from dustmaps.bayestar import BayestarWebQuery
except:
try:
from dustmaps.dustmaps.bayestar im... | 15,114 | 31.023305 | 380 | py |
MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/direct/__init__.py | MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/direct/__init__.py | 0 | 0 | 0 | py | |
MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/direct/asfgrid.py | MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/direct/asfgrid.py | #! /usr/bin/env python
# --------------------------------------------------------------
# The asfgrid is a python module to compute asteroseismic
# parameters for a star with given stellar parameters and vice versa.
# Copyright (C) 2015 Sanjib Sharma, Dennis Stello
# This program is free sof... | 19,364 | 37.270751 | 156 | py |
MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/direct/classify.py | MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/direct/classify.py | # code to calculate fundamental stellar parameters and distances using
# a "direct method", i.e. adopting a fixed reddening map and bolometric
# corrections
import astropy.units as units
from astropy.coordinates import SkyCoord
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from scipy.interpo... | 32,049 | 31.243461 | 196 | py |
MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/direct/getmesabc.py | MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/direct/getmesabc.py | # interpolates bolometric correction from MIST tables, available at:
# http://waps.cfa.harvard.edu/MIST/model_grids.html
# available keys for photometric bands:
# Johnson BVRI: bc_b,bc_v,bc_r,bc_i
# Tycho BtVt: bc_bt,bc_vt
# Sloan ugriz:bc_us,bc_gs,bc_rs,bc_is,bc_zs
# 2MASS JHK: bc_j,bc_h,bc_k
# Kepler d51: bc_d51
# G... | 1,128 | 26.536585 | 68 | py |
MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/grid/__init__.py | MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/grid/__init__.py | from . import classify
from . import priors
from . import match
from . import plot
#from . import single
from . import pdf
| 124 | 14.625 | 22 | py |
MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/grid/classify.py | MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/grid/classify.py | import copy
import time,pdb
import ephem
import pandas as pd
import numpy as np
from astropy.io import ascii
from .pdf import * # part of isoclassify package (to do make explicit import)
from .priors import * # part of isoclassify package (to do make explicit import)
from .plot import * # part of isoclassify packa... | 25,911 | 29.306433 | 102 | py |
MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/grid/match.py | MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/grid/match.py | import numpy as np
def match(a, b):
b_set = set(b)
b_match = [i for i, v in enumerate(a) if v in b_set]
a_set = set(a)
a_match = [i for i, v in enumerate(b) if v in a_set]
a_match = np.asarray(a_match)
b_match = np.asarray(b_match)
a_match2=np.argsort(a[b_match])
b_match2=np.argsort(b[a_match])
... | 366 | 23.466667 | 54 | py |
MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/grid/pdf.py | MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/grid/pdf.py | import pdb
import numpy as np
import matplotlib.pyplot as plt
import fnmatch
from scipy.ndimage.filters import gaussian_filter
import time
from scipy.interpolate import interp1d
import pandas as pd
def binpdf(x,y,step,iname,dustmodel):
xax = np.arange(np.min(x),np.max(x),step)
if fnmatch.fnmatch(iname,'*age*'... | 2,974 | 25.096491 | 91 | py |
MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/grid/plot.py | MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/grid/plot.py | import numpy as np
import matplotlib.pyplot as plt
import random
from .priors import *
import fnmatch
def plotinit():
fig1 = plt.figure('posteriors',figsize=(8,12))
fig2 = plt.figure('hrd',figsize=(8,12))
plt.figure('posteriors')
def plotposterior(x,y,res,err1,err2,names,j,ix,iy):
#fig = plt.figure(... | 13,993 | 32.639423 | 123 | py |
MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/grid/priors.py | MonoTools-old/MonoTools/stellar/isoclassify/isoclassify/grid/priors.py | import numpy as np
import ephem
from scipy.stats import norm
def gaussian(x, a, b, c, d):
val = d + (a * np.exp(-(x - b)**2 / c**2))
return val
def fehprior(feh):
_fehprior = (0.8/0.15*np.exp(-0.5*(feh-0.016)**2./0.15**2.)
+0.2/0.22*np.exp(-0.5*(feh+0.15)**2./0.22**2.))
return _fehpri... | 1,993 | 28.761194 | 68 | py |
MonoTools-old/MonoTools/tests/test_fit.py | MonoTools-old/MonoTools/tests/test_fit.py | from MonoTools import fit
import matplotlib.pyplot as plt
import exoplanet as xo
import numpy as np
np.random.seed(1812)
import unittest
class TestModelFit(unittest.TestCase):
def setUp(self):
#Creating 5 varied models
#1 Model with only duotransit in photometry.
self.simple_duo_lc_mode... | 13,541 | 65.70936 | 130 | py |
MonoTools-old/docs/conf.py | MonoTools-old/docs/conf.py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | 1,944 | 33.732143 | 79 | py |
MonoTools-old/paper/compile_paper.sh | MonoTools-old/paper/compile_paper.sh | #!/usr/bin/env bash
# Help text
description="A bash script for compiling JOSS and JOSE papers locally";
doc="compile [-j <journal>] [-d <doi>] [-v <volume>] [-i <issue>] [-p <page>]
[-s <submitted>] [-u <published>] [-r <review>] [-g <repository>] [-a <archive>] FILE
Compile a markdown FILE to a JOSS or JOSE... | 4,168 | 22.553672 | 101 | sh |
MonoTools-old/paper/paper.md | MonoTools-old/paper/paper.md | ---
title: 'MonoTools -- A python package for planets of uncertain period'
tags:
- Python
- astronomy
- exoplanets
- transit
authors:
- name: Hugh P. Osborn
orcid: 0000-0002-4047-4724
affiliation: 1, 2
affiliations:
- name: NCCR/Planet S, Centre for Space and Habitability, University of Bern, Swit... | 27,188 | 82.916667 | 482 | md |
fmm3dbie | fmm3dbie-master/README.md | # fmm3dbie
## FMM-accelerated boundary integral equation solvers
<p align="center">
<img width="50%" src="docs/plane.png"/>
</p>
Currently supports high-order triangulation of smooth surfaces
Upcoming support for:
- High order quadrilaterization versions of the above routines
This repository has an external de... | 2,107 | 29.550725 | 92 | md |
fmm3dbie | fmm3dbie-master/makefile | # Makefile for fmm3dbie
# # This is the only makefile; there are no makefiles in subdirectories.
# Users should not need to edit this makefile (doing so would make it
# hard to stay up to date with repo version). Rather in order to
# change OS/environment-specific compilers and flags, create
# the file make.inc, whi... | 12,424 | 30.777494 | 166 | fmm3dbie-master/makefile |
fmm3dbie | fmm3dbie-master/docs/conf.py | # -*- coding: utf-8 -*-
#
# fmm3d documentation build configuration file, created by
# sphinx-quickstart on Wed Nov 1 16:19:13 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All... | 10,232 | 32.116505 | 100 | py |
fmm3dbie | fmm3dbie-master/docs/paper.md | ---
title: 'fmm3dbie: Fast multipole method-accelerated boundary
integral equation solvers'
tags:
- fast multipole method
- boundary integral equation
-
- galactic dynamics
- milky way
authors:
- name: Adrian M. Price-Whelan^[Custom footnotes for e.g. denoting who the corresspoinding author is can be inc... | 4,516 | 36.02459 | 130 | md |
fmm3dbie | fmm3dbie-master/docs/read_subs.py | from numpy import *
from pylab import *
com_str = '--------'
# list of subroutines
subs_list = []
# file name in which subroutine can be found
files_list = []
# name of raw files where subroutine documentation should be output
out_list = []
subs_list.append('subroutine lpcomp_helm_comb_dir')
files_list.append('..... | 1,129 | 20.730769 | 67 | py |
fmm3dbie | fmm3dbie-master/docs/_static/custom.css | .center {text-align: center;}
.rttext {text-align: right;}
.hruleaft {display: block; border-bottom: 1px solid #000000;}
| 123 | 19.666667 | 61 | css |
fmm3dbie | fmm3dbie-master/docs/_templates/page.html | {% extends "!page.html" %}
{% block footer %}
<script type="text/javascript">
$(document).ready(function() {
$(".toggle > *").hide();
$(".toggle .header").show();
$(".toggle .header").click(function() {
$(this).parent().children().not(".header").toggle(400);
$(this)... | 415 | 26.733333 | 69 | html |
fmm3dbie | fmm3dbie-master/examples/makefile |
#
# For linux systems, it is assumed that the environment
# variable LD_LIBRARY_PATH contains the locations to libfmm3d.so
# and libfmm3d.so, for Macosx, these .so files also need to be
# copied over /usr/local/lib
LFMMLINKLIB = -lfmm3d
LLINKLIB = -lfmm3dbie
FC = gfortran
FFLAGS=-fPIC -O3 -funroll-loops -march=nat... | 2,513 | 24.917526 | 85 | fmm3dbie-master/examples/makefile |
fmm3dbie | fmm3dbie-master/examples/helmholtz/helm_dir_fds_block_example.f | implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:)
real *8, allocatable :: wts(:)
character *100 fname
integer ipars(2)
real *8, allocatable :: targs(:,:),uvs_targ(:,:)
integer, allocatable :: ipatch_id(:)
integer, allocatable :: norders(:),i... | 9,095 | 23.784741 | 71 | f |
fmm3dbie | fmm3dbie-master/examples/helmholtz/helm_dir_fds_csc_example.f | implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:)
real *8, allocatable :: wts(:)
character *100 fname
integer ipars(2)
real *8, allocatable :: targs(:,:),uvs_targ(:,:)
integer, allocatable :: ipatch_id(:)
integer, allocatable :: norders(:),i... | 9,427 | 22.868354 | 72 | f |
fmm3dbie | fmm3dbie-master/examples/helmholtz/helm_dir_iter_example.f | implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:)
real *8, allocatable :: wts(:)
character *100 fname
integer ipars(2)
integer, allocatable :: norders(:),ixyzs(:),iptype(:)
real *8 xyz_out(3),xyz_in(3)
complex *16, allocatable :: sigma(:),rh... | 8,745 | 23.227147 | 71 | f |
fmm3dbie | fmm3dbie-master/examples/helmholtz/helm_dir_iter_example2.f | implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:)
real *8, allocatable :: wts(:),rsigma(:)
integer ipars(2)
integer, allocatable :: norders(:),ixyzs(:),iptype(:)
real *8 xyz_out(3),xyz_in(3)
complex *16, allocatable :: sigma(:),rhs(:)
comple... | 7,986 | 24.517572 | 72 | f |
fmm3dbie | fmm3dbie-master/examples/helmholtz/helm_dir_iter_example3.f90 | program helm_dir_iter_example3
implicit double precision (a-h,o-z)
double precision, allocatable :: srcvals(:,:),srccoefs(:,:)
double precision, allocatable :: wts(:)
character *100 :: fname
integer :: ipars(2)
integer, allocatable :: norders(:),ixyzs(:),iptype(:)
double precision :: xyz_out(3), xyz_i... | 26,397 | 23.285189 | 72 | f90 |
fmm3dbie | fmm3dbie-master/examples/helmholtz/helm_imp_iter_example.f | implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:)
real *8, allocatable :: wts(:)
character *100 fname
integer ipars(2)
integer, allocatable :: norders(:),ixyzs(:),iptype(:)
real *8 xyz_out(3),xyz_in(3),xyz_src(3),xyz_targ(3)
complex *16, all... | 9,016 | 23.304582 | 71 | f |
fmm3dbie | fmm3dbie-master/examples/helmholtz/helm_neu_iter_example.f | implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:)
real *8, allocatable :: wts(:)
character *100 fname
integer ipars(2)
integer, allocatable :: norders(:),ixyzs(:),iptype(:)
real *8 xyz_out(3),xyz_in(3),xyz_src(3),xyz_targ(3)
complex *16, all... | 8,282 | 23.651786 | 71 | f |
fmm3dbie | fmm3dbie-master/examples/helmholtz/helm_trans_iter_example.f | implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:)
real *8, allocatable :: wts(:)
character *100 fname
integer ipars(2)
integer, allocatable :: norders(:),ixyzs(:),iptype(:)
real *8 xyz_out(3),xyz_in(3),xyz_src(3),xyz_targ(3)
complex *16, all... | 8,885 | 23.960674 | 71 | f |
fmm3dbie | fmm3dbie-master/examples/laplace/lap_dir_fds_example.f | implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:)
real *8, allocatable :: wts(:)
character *100 fname
integer ipars(2)
real *8, allocatable :: targs(:,:),uvs_targ(:,:)
integer, allocatable :: ipatch_id(:)
integer, allocatable :: norders(:),i... | 9,421 | 22.614035 | 71 | f |
fmm3dbie | fmm3dbie-master/examples/laplace/lap_dir_iter_example.f | implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:)
real *8, allocatable :: wts(:)
character *100 fname
integer ipars(2)
integer, allocatable :: norders(:),ixyzs(:),iptype(:)
real *8 xyz_out(3),xyz_in(3)
real *8, allocatable :: sigma(:),rhs(:)... | 8,743 | 23.154696 | 78 | f |
fmm3dbie | fmm3dbie-master/examples/maxwell/example_em_auCKi_pec.f90 | implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:)
real *8, allocatable :: wts(:),rsigma(:)
integer ipars(2)
integer, allocatable :: norders(:),ixyzs(:),iptype(:)
real *8 xyz_out(3),xyz_in(3)
complex *16, allocatable :: sigma(:),rhs(:)
comple... | 8,203 | 23.710843 | 82 | f90 |
fmm3dbie | fmm3dbie-master/examples/maxwell/example_em_dfie_trans.f90 | implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:)
real *8, allocatable :: wts(:),rsigma(:)
integer ipars(2)
integer, allocatable :: norders(:),ixyzs(:),iptype(:)
real *8 xyz_out(3),xyz_in(3)
complex *16, allocatable :: sigma(:),rhs(:)
comple... | 7,655 | 22.925 | 74 | f90 |
fmm3dbie | fmm3dbie-master/examples/maxwell/example_em_dpie_pec.f90 | implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:)
real *8, allocatable :: wts(:),rsigma(:)
integer ipars(2),npatches
integer, allocatable :: norders(:),ixyzs(:),iptype(:),idcomponent(:)
real *8 xyz_out(3),xyz_in(3)
complex *16, allocatable :: sigma... | 7,742 | 24.639073 | 75 | f90 |
fmm3dbie | fmm3dbie-master/examples/maxwell/example_em_efie_rwg_pec.f90 | implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:)
real *8, allocatable :: wts(:),rsigma(:)
integer ipars(2)
integer, allocatable :: norders(:),ixyzs(:),iptype(:)
real *8 xyz_out(3),xyz_in(3)
complex *16, allocatable :: sigma(:),rhs(:)
comple... | 8,565 | 25.115854 | 95 | f90 |
fmm3dbie | fmm3dbie-master/examples/maxwell/example_em_muller_trans.f90 | implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:)
real *8, allocatable :: wts(:),rsigma(:)
integer ipars(2)
integer, allocatable :: norders(:),ixyzs(:),iptype(:)
real *8 xyz_out(3),xyz_in(3)
complex *16, allocatable :: sigma(:),rhs(:)
comple... | 7,662 | 22.872274 | 76 | f90 |
fmm3dbie | fmm3dbie-master/examples/maxwell/pec/efie_rwg_open.f90 | program efie_rwg_open
implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:)
real *8, allocatable :: wts(:),rsigma(:)
integer ipars(2)
integer, allocatable :: norders(:),ixyzs(:),iptype(:)
real *8 xyz_out(3),xyz_in(3)
complex *16, allocatable :: sigma(:),rhs(:)
complex *16, all... | 9,577 | 24.007833 | 91 | f90 |
fmm3dbie | fmm3dbie-master/examples/maxwell/pec/em_aumfie_example.f90 | program em_aumfie_example
implicit double precision (a-h,o-z)
double precision, allocatable :: srcvals(:,:),srccoefs(:,:)
double precision, allocatable :: wts(:),rsigma(:)
integer :: ipars(2)
integer, allocatable :: norders(:),ixyzs(:),iptype(:)
double precision xyz_out(3),xyz_in(3)
complex *16, alloc... | 17,856 | 25.337758 | 82 | f90 |
fmm3dbie | fmm3dbie-master/examples/maxwell/pec/em_nrccie_example.f90 | implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:)
real *8, allocatable :: wts(:),rsigma(:)
integer ipars(2)
integer, allocatable :: norders(:),ixyzs(:),iptype(:)
real *8 xyz_out(3),xyz_in(3)
complex *16, allocatable :: sigma(:),rhs(:)
comple... | 7,435 | 23.95302 | 78 | f90 |
fmm3dbie | fmm3dbie-master/examples/stokes/stok_vel_iter_example.f | implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:),targs(:,:)
real *8, allocatable :: wts(:)
real *8 ts(2), rres
real *8, allocatable :: rfacs(:,:), errs(:)
character *100 fname
integer ipars(2)
integer, allocatable :: row_ptr(:),col_ind... | 8,792 | 25.405405 | 72 | f |
fmm3dbie | fmm3dbie-master/examples/stokes/stok_vel_matgen_example.f | implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:),targs(:,:)
real *8, allocatable :: wts(:)
real *8 ts(2), rres
real *8, allocatable :: rfacs(:,:), errs(:)
character *100 fname
integer ipars(2)
integer, allocatable :: row_ptr(:),col_ind... | 8,311 | 25.303797 | 71 | f |
fmm3dbie | fmm3dbie-master/examples/surf_wrappers/demo_surf_plots.f |
implicit real *8 (a-h,o-z)
real *8, allocatable :: srcvals(:,:),srccoefs(:,:)
real *8, allocatable :: wts(:)
character *100 fname
integer ipars(2)
integer, allocatable :: norders(:),ixyzs(:),iptype(:)
real *8 xyz_out(3),xyz_in(3)
complex *16 zk
integer ipatch_... | 6,353 | 23.251908 | 71 | f |
fmm3dbie | fmm3dbie-master/examples/surf_wrappers/run_demo_surf_plot.sh | cd ../../
make install -j
cd examples/surf_wrappers
make -f demo_surf_plots.make
| 81 | 15.4 | 28 | sh |
fmm3dbie | fmm3dbie-master/matlab/fmm3dbie_routs.c | /* --------------------------------------------------- */
/* Automatically generated by mwrap */
/* --------------------------------------------------- */
/* Code generated by mwrap 1.0 */
/*
Copyright statement for mwrap:
mwrap -- MEX file generation for MATLAB and Octave
Copyright (c) 2007-... | 150,995 | 34.221833 | 588 | c |
fmm3dbie | fmm3dbie-master/matlab/+helm3d/green.m | function [val,grad,hess] = green(k,src,targ)
%HELM3D.GREEN evaluate the helmholtz green's function
% for the given sources and targets
[~,ns] = size(src);
[~,nt] = size(targ);
xs = repmat(src(1,:),nt,1);
ys = repmat(src(2,:),nt,1);
zs = repmat(src(3,:),nt,1);
xt = repmat(targ(1,:).',1,ns);
yt = repmat(targ(2,:).',1,... | 1,182 | 17.484375 | 53 | m |
fmm3dbie | fmm3dbie-master/matlab/+helm3d/kern.m |
function submat= kern(zk,srcinfo,targinfo,type,varargin)
%CHNK.HELM3D.KERN standard Helmholtz layer potential kernels in 3D
%
% Syntax: submat = helm3d.kern(zk,srcinfo,targingo,type,varargin)
%
% Let x be targets and y be sources for these formulas, with
% n_x and n_y the corresponding unit normals at those points.
%... | 5,390 | 28.298913 | 75 | m |
fmm3dbie | fmm3dbie-master/matlab/+helm3d/+dirichlet/eval.m | function p = eval(S,zpars,sigma,eps,varargin)
%
% helm3d.dirichlet.eval
% Evaluates the helmholtz dirichlet layer potential at a collection
% of targets
%
% Syntax
% pot = helm3d.dirichlet.eval(S,zpars,sigma,eps)
% pot = helm3d.dirichlet.eval(S,zpars,sigma,eps,targinfo)
% pot = helm3d.dirichlet.eval(S,zp... | 4,447 | 31.948148 | 384 | m |
fmm3dbie | fmm3dbie-master/matlab/+helm3d/+dirichlet/get_quadrature_correction.m | function Q = get_quadrature_correction(S,zpars,eps,targinfo,opts)
%
% helm3d.dirichlet.get_quadrature_correction
% This subroutine returns the near quadrature correction
% for the combined field representation with density supported
% on the surface S, and targets given by targinfo
% as a sparse matrix/rs... | 7,104 | 35.435897 | 341 | m |
fmm3dbie | fmm3dbie-master/matlab/+helm3d/+dirichlet/matgen.m | function A = matgen(i,j,S,zpars,P,Q,opts)
%
%
% helm3d.dirichlet.matgen
% This subroutine returns the matrix block A(I,J) corresponding
% to the discretization points indexed by i\in I and j\in J.
%
% Syntax:
% A = helm3d.dirichlet.matgen(i,j,S,zpars)
% A = helm3d.dirichlet.matgen(i,j,S,zpars,P,Q)
%... | 2,256 | 25.552941 | 98 | m |
fmm3dbie | fmm3dbie-master/matlab/+helm3d/+dirichlet/solver.m | function [sigma,varargout] = solver(S,zpars,rhs,eps,varargin)
%
% helm3d.dirichlet.solver
% Solve the helmholtz dirichlet boundary value problem
%
% Syntax
% sigma = helm3d.dirichlet.solver(S,zpars,sigma,eps)
% sigma = helm3d.dirichlet.solver(S,zpars,sigma,eps,opts)
%
% Integral representation
% pot = \al... | 4,458 | 30.401408 | 432 | m |
fmm3dbie | fmm3dbie-master/matlab/+koorn/coefs2vals.m | function bmat = coefs2vals(norder,uvs)
%
% This function returns the values to
% coefficients matrix for a given
% set of nodes uvs. Note that
% there must be (norder+1)*(norder+2)/2
% nodes in uvs
%
bmat = koorn.pols(norder,uvs);
bmat = bmat';
end
| 267 | 19.615385 | 41 | m |
fmm3dbie | fmm3dbie-master/matlab/+koorn/pols.m | function [pols]=pols(nmax,uv)
% !
% ! This subroutine evalutes a bunch of orthogonal polynomials on the
% ! simplex with vertices (0,0), (1,0), (0,1). The polynomials
% ! computed by this routine are normalized and rotated Koornwinder
% ! polynomials, which are classically defined on the triangle with
% ! ... | 2,465 | 22.264151 | 71 | m |
fmm3dbie | fmm3dbie-master/matlab/+koorn/rv_nodes.m | function [uvs]=rv_nodes(norder)
if(norder== 0)
uvs(1, 1) =0.3333333333333333D+00;
uvs(2, 1) =0.3333333333333334D+00;
end
if(norder== 1)
uvs(1, 1) =0.6666666666666666D+00;
uvs(2, 1) =0.1666666666666667D+00;
uvs(1, 2) =0.1666666666666666D+... | 163,773 | 44.391907 | 45 | m |
fmm3dbie | fmm3dbie-master/matlab/+koorn/rv_weights.m | function wts = rv_weights(norder)
if(norder== 0)
wts( 1) =0.5000000000000000D+00;
end
if(norder== 1)
wts( 1) =0.1666666666666667D+00;
wts( 2) =0.1666666666666667D+00;
wts( 3) =0.1666666666666667D+00;
end
if(norder== 2)
w... | 78,740 | 42.335718 | 43 | m |
fmm3dbie | fmm3dbie-master/matlab/+koorn/vals2coefs.m | function amat = vals2coefs(norder,uvs)
%
% This function returns the values to
% coefficients matrix for a given
% set of nodes uvs. Note that
% there must be (norder+1)*(norder+2)/2
% nodes in uvs
%
bmat = koorn.coefs2vals(norder,uvs);
amat = inv(bmat);
end
| 271 | 19.923077 | 41 | m |
fmm3dbie | fmm3dbie-master/matlab/+polytens/cheb_coefs2vals.m | function bmat = cheb_coefs2vals(norder,uvs)
bmat = polytens.cheb_pols(norder,uvs);
bmat = bmat.';
end | 109 | 26.5 | 43 | m |
fmm3dbie | fmm3dbie-master/matlab/+polytens/cheb_nodes.m | function xvals = cheb_nodes(norder,kind)
kind0 = 1;
if(nargin == 2)
kind0 = kind;
end
[x] = chebpts(norder+1,[-1,1],kind0);
[yy,xx] = meshgrid(x);
xx = xx(:);
yy = yy(:);
xvals = zeros(2,(norder+1)*(norder+1));
xvals(1,:) = xx;
xvals(2,:) = yy;
end | 296 | 21.846154 | 43 | m |
fmm3dbie | fmm3dbie-master/matlab/+polytens/cheb_pols.m | function p = cheb_pols(norder,uv)
[~,m] = size(uv);
chebpols_u = zeros(m,norder+1);
chebpols_v = zeros(m,norder+1);
u = uv(1,:);
v = uv(2,:);
u = u(:);
v = v(:);
chebpols_u(:,1+0) = 1;
chebpols_v(:,1+0) = 1;
chebpols_u(:,1+1) = u;
chebpols_v(:,1+1) = v;
pkp1_u = chebpols_u(:,... | 955 | 19.782609 | 59 | m |