index int64 | repo_name string | branch_name string | path string | content string | import_graph string |
|---|---|---|---|---|---|
67,456 | HamaguchiKazuki/become-yukarin | refs/heads/master | /scripts/super_resolution_test.py | import argparse
import glob
import multiprocessing
import re
from functools import partial
from pathlib import Path
import os
import librosa
import numpy
from become_yukarin import SuperResolution
from become_yukarin.config.sr_config import create_from_json as create_config
from become_yukarin.dataset.dataset import ... | {"/become_yukarin/dataset/dataset.py": ["/become_yukarin/config/config.py", "/become_yukarin/config/sr_config.py", "/become_yukarin/data_struct.py"], "/become_yukarin/voice_changer.py": ["/become_yukarin/acoustic_converter.py", "/become_yukarin/data_struct.py", "/become_yukarin/super_resolution.py"], "/train.py": ["/be... |
67,457 | HamaguchiKazuki/become-yukarin | refs/heads/master | /become_yukarin/config/config.py | import json
from pathlib import Path
from typing import Dict
from typing import List
from typing import NamedTuple
from typing import Optional
from typing import Union
from become_yukarin.param import Param
class DatasetConfig(NamedTuple):
param: Param
input_glob: Path
target_glob: Path
input_mean_pa... | {"/become_yukarin/dataset/dataset.py": ["/become_yukarin/config/config.py", "/become_yukarin/config/sr_config.py", "/become_yukarin/data_struct.py"], "/become_yukarin/voice_changer.py": ["/become_yukarin/acoustic_converter.py", "/become_yukarin/data_struct.py", "/become_yukarin/super_resolution.py"], "/train.py": ["/be... |
67,458 | HamaguchiKazuki/become-yukarin | refs/heads/master | /become_yukarin/dataset/utility.py | import math
import fastdtw
import numpy
_logdb_const = 10.0 / numpy.log(10.0) * numpy.sqrt(2.0)
# should work on torch and numpy arrays
def _sqrt(x):
isnumpy = isinstance(x, numpy.ndarray)
isscalar = numpy.isscalar(x)
return numpy.sqrt(x) if isnumpy else math.sqrt(x) if isscalar else x.sqrt()
def _exp... | {"/become_yukarin/dataset/dataset.py": ["/become_yukarin/config/config.py", "/become_yukarin/config/sr_config.py", "/become_yukarin/data_struct.py"], "/become_yukarin/voice_changer.py": ["/become_yukarin/acoustic_converter.py", "/become_yukarin/data_struct.py", "/become_yukarin/super_resolution.py"], "/train.py": ["/be... |
67,459 | HamaguchiKazuki/become-yukarin | refs/heads/master | /become_yukarin/super_resolution.py | from functools import partial
from pathlib import Path
import chainer
import numpy
import pyworld
from become_yukarin.config.sr_config import SRConfig
from become_yukarin.data_struct import AcousticFeature
from become_yukarin.data_struct import Wave
from become_yukarin.dataset.dataset import LowHighSpectrogramFeature... | {"/become_yukarin/dataset/dataset.py": ["/become_yukarin/config/config.py", "/become_yukarin/config/sr_config.py", "/become_yukarin/data_struct.py"], "/become_yukarin/voice_changer.py": ["/become_yukarin/acoustic_converter.py", "/become_yukarin/data_struct.py", "/become_yukarin/super_resolution.py"], "/train.py": ["/be... |
67,460 | HamaguchiKazuki/become-yukarin | refs/heads/master | /become_yukarin/vocoder.py | import numpy
import pyworld
from world4py.native import structures, apidefinitions, utils
from become_yukarin.data_struct import AcousticFeature
from become_yukarin.data_struct import Wave
from become_yukarin.dataset.dataset import AcousticFeatureProcess
from become_yukarin.param import AcousticFeatureParam
class Vo... | {"/become_yukarin/dataset/dataset.py": ["/become_yukarin/config/config.py", "/become_yukarin/config/sr_config.py", "/become_yukarin/data_struct.py"], "/become_yukarin/voice_changer.py": ["/become_yukarin/acoustic_converter.py", "/become_yukarin/data_struct.py", "/become_yukarin/super_resolution.py"], "/train.py": ["/be... |
67,461 | HamaguchiKazuki/become-yukarin | refs/heads/master | /scripts/ln_apply_subset.py | """
ある話者のATR503サブセットを、他の話者に対応するようにコピーする。
targetは、拡張子前3文字がATR503サブセットでないといけない。
"""
import argparse
from pathlib import Path
import re
from itertools import chain, groupby
parser = argparse.ArgumentParser()
parser.add_argument('source', type=Path)
parser.add_argument('target', type=Path)
parser.add_argument('output', t... | {"/become_yukarin/dataset/dataset.py": ["/become_yukarin/config/config.py", "/become_yukarin/config/sr_config.py", "/become_yukarin/data_struct.py"], "/become_yukarin/voice_changer.py": ["/become_yukarin/acoustic_converter.py", "/become_yukarin/data_struct.py", "/become_yukarin/super_resolution.py"], "/train.py": ["/be... |
67,462 | HamaguchiKazuki/become-yukarin | refs/heads/master | /become_yukarin/config/sr_config.py | import json
from pathlib import Path
from typing import Dict
from typing import List
from typing import NamedTuple
from typing import Union
from become_yukarin.param import Param
class SRDatasetConfig(NamedTuple):
param: Param
input_glob: Path
train_crop_size: int
input_global_noise: float
input_... | {"/become_yukarin/dataset/dataset.py": ["/become_yukarin/config/config.py", "/become_yukarin/config/sr_config.py", "/become_yukarin/data_struct.py"], "/become_yukarin/voice_changer.py": ["/become_yukarin/acoustic_converter.py", "/become_yukarin/data_struct.py", "/become_yukarin/super_resolution.py"], "/train.py": ["/be... |
67,463 | HamaguchiKazuki/become-yukarin | refs/heads/master | /become_yukarin/dataset/__init__.py | from . import dataset
from . import utility
from .dataset import create
from .dataset import create_sr
| {"/become_yukarin/dataset/dataset.py": ["/become_yukarin/config/config.py", "/become_yukarin/config/sr_config.py", "/become_yukarin/data_struct.py"], "/become_yukarin/voice_changer.py": ["/become_yukarin/acoustic_converter.py", "/become_yukarin/data_struct.py", "/become_yukarin/super_resolution.py"], "/train.py": ["/be... |
67,465 | Rolv-Arild/nb-internet-curator | refs/heads/master | /src/action_server.py | import json
import os
import re
import shutil
from enum import Enum
from pathlib import Path
from typing import Callable, Union
from aiohttp import web
from aiohttp.hdrs import METH_OPTIONS
from aiohttp.web_request import Request
from pywb.manager.manager import main as wb_manager
from src.util import cd, find_arcs, ... | {"/src/action_server.py": ["/src/util.py"], "/main.py": ["/src/action_server.py", "/src/util.py"]} |
67,466 | Rolv-Arild/nb-internet-curator | refs/heads/master | /main.py | from pathlib import Path
from src.action_server import start_server
from multiprocessing import Process
import os
import shutil
from pywb.apps.cli import wayback
from pywb.manager.manager import main as wb_manager
from src.util import cd, CONFIG
def move(src, dst):
if os.path.exists(dst):
shutil.rmtre... | {"/src/action_server.py": ["/src/util.py"], "/main.py": ["/src/action_server.py", "/src/util.py"]} |
67,467 | Rolv-Arild/nb-internet-curator | refs/heads/master | /src/util.py | import os
import re
import json
from collections import namedtuple
from pathlib import Path
import warcio
def load_config():
pth = Path(__file__).parent.parent.absolute() / "config.json"
config = json.load(open(pth))
return namedtuple("Config", ["working_directory", "arc_source_directory", "result_directo... | {"/src/action_server.py": ["/src/util.py"], "/main.py": ["/src/action_server.py", "/src/util.py"]} |
67,468 | Rolv-Arild/nb-internet-curator | refs/heads/master | /setup.py | from setuptools import setup, find_packages
with open("README.md") as f:
readme = f.read()
setup(
name="internet-curator",
version="0.0.1",
description="Internet curator",
long_description=readme,
author="Rolv-Arild Braaten, Aksel Hjerpbakk",
author_email="rolv.braaten@nb.no, aksel.hjerpba... | {"/src/action_server.py": ["/src/util.py"], "/main.py": ["/src/action_server.py", "/src/util.py"]} |
67,470 | QBx-program/Lesson4 | refs/heads/master | /utils.ru.py | import cur_rate
def all_currency():
a_cur = cur_rate.currency_rates()
for i, v in enumerate(a_cur.items()):
print(f'{v[0]} = {a_cur[v[0]][2]} рублей за {a_cur[v[0]][0]} {a_cur[v[0]][1]} на {a_cur[v[0]][3].day:02d}.{a_cur[v[0]][3].month:02d}.{a_cur[v[0]][3].year}')
def answer_rate(g_cur):
a_cur = c... | {"/utils.ru.py": ["/cur_rate.py"]} |
67,471 | QBx-program/Lesson4 | refs/heads/master | /cur_rate.py | import requests
import re
from datetime import datetime
def currency_rates():
response = requests.get('http://www.cbr.ru/scripts/XML_daily.asp')
if response.status_code == 200:
print('Соединение установлено с http://www.cbr.ru/scripts/XML_daily.asp')
else:
print(f'Ошибка соединения: {respo... | {"/utils.ru.py": ["/cur_rate.py"]} |
67,472 | esisa/ssrJsonSearch | refs/heads/master | /run.py | import logging
logging.basicConfig()
from ssrSok.app import app
if __name__ == '__main__':
app.run()
| {"/run.py": ["/ssrSok/app.py"]} |
67,473 | esisa/ssrJsonSearch | refs/heads/master | /ssrSok/app.py | # -*- coding: utf-8 -*-
from flask import Flask
from flask import request, Response
import xmltodict
import requests
import json
from collections import OrderedDict
# Make sure input strings are intepreated as unicode
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
app = Flask(__name__)
# Add zoomvalues to ... | {"/run.py": ["/ssrSok/app.py"]} |
67,474 | MardanovTimur/itis-iot-arduino | refs/heads/master | /test.py | #!/usr/bin/env python
import time
from functools import partial
from sensor import Sensor
from Arduino import Arduino
class KE008(Sensor):
"""
Laser
"""
def __init__(self, *args, **kwargs):
super(KE008, self).__init__(*args, **kwargs)
class KY040(Sensor):
CLOCKWISE = 0
ANTICLOCKWISE... | {"/test.py": ["/sensor.py"]} |
67,475 | MardanovTimur/itis-iot-arduino | refs/heads/master | /sensor.py | #!/usr/bin/env python
IO = {
'DIGITAL': {
'read': 'digitalRead',
'write': 'digitalWrite',
},
'ANALOG': {
'read': 'analogRead',
'write': 'analogWrite',
}
}
def get_pin(pin, pininstance):
return pininstance if pin is None else pin
class Sensor(object):
""" Senso... | {"/test.py": ["/sensor.py"]} |
67,478 | AaronScruggs/guild-wars-calculator | refs/heads/master | /HardGuildWars.py | import requests
class Item:
"""
This class could be laid out much better. The Recipe and Character
classes each look up item information. This class should handle all item
lookups. Recipe and Character could instantiate an Item object and
get the information they need through that object.
"""
... | {"/TestGuildWars.py": ["/GuildWars.py"]} |
67,479 | AaronScruggs/guild-wars-calculator | refs/heads/master | /GuildWars.py | import requests
class Item:
def __init__(self, number):
self.number = number
self.basic_fields = ['name', 'id', 'description', 'type', 'rarity',
'level', 'vendor_value', 'game_types',
'restrictions'
]
@sta... | {"/TestGuildWars.py": ["/GuildWars.py"]} |
67,480 | AaronScruggs/guild-wars-calculator | refs/heads/master | /TestGuildWars.py | from unittest import TestCase
from GuildWars import Recipe, Item
class ItemTests(TestCase):
"""
This test looks up many different item id numbers to check that there
are no errors.
The assertion checks that Item.display() returns it's own id number.
This isn't really testing anything, it's just a... | {"/TestGuildWars.py": ["/GuildWars.py"]} |
67,484 | brhoades/installcobra | refs/heads/master | /installcobra/downloader.py | import inspect
import os
from progressbar import ProgressBar, Percentage, AdaptiveETA, AdaptiveTransferSpeed, Bar
import shutil
class Downloader:
"""Handles all the dirty work of downloading source files. Determines if it's necessary to do so too.
:param BaseInstaller: Takes a BaseInstaller, which this downlo... | {"/installcobra/installers.py": ["/installcobra/downloader.py", "/installcobra/phase.py"], "/example/update.py": ["/installcobra/installers.py"]} |
67,485 | brhoades/installcobra | refs/heads/master | /installcobra/installers.py | import os
import logging
from installcobra.downloader import Downloader
from installcobra.phase import Phase
from itertools import starmap
class Installer:
"""Installer interface. All other Installers should inherit from this.
"""
def prerequisite(self):
raise NotImplementedError("This method is no... | {"/installcobra/installers.py": ["/installcobra/downloader.py", "/installcobra/phase.py"], "/example/update.py": ["/installcobra/installers.py"]} |
67,486 | brhoades/installcobra | refs/heads/master | /installcobra/phase.py | class Phase:
"""This class serves as a layer of abstraction around phases during a script's execution.
Each instance represents a "phase" of an install process.
:param name: The name of this phase.
:param method: The method for this phase.
"""
def __init__(self, method, name):
self._me... | {"/installcobra/installers.py": ["/installcobra/downloader.py", "/installcobra/phase.py"], "/example/update.py": ["/installcobra/installers.py"]} |
67,487 | brhoades/installcobra | refs/heads/master | /example/update.py | import sys
sys.path.append("..")
from installcobra.installers import ScriptInstaller
class TestProgram(ScriptInstaller):
def prerequisite(self):
print("PREREQ")
def preinstall(self):
print("PREINST")
def install(self):
print("INSTALL")
def postinstall(self):
print("PO... | {"/installcobra/installers.py": ["/installcobra/downloader.py", "/installcobra/phase.py"], "/example/update.py": ["/installcobra/installers.py"]} |
67,488 | spacetelescope/pysynphot | refs/heads/master | /commissioning/stis_rn_cases.py | import basecase
class stisC1(basecase.calcspecCase):
def setUp(self):
self.spectrum='rn(icat(k93models,37000,0.0,4.0),band(galex,nuv),16.0,abmag)'
self.obsmode=None
self.setglobal(__file__)
self.runpy()
class stisC2(basecase.calcspecCase):
def setUp(self):
self.spectrum=... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,489 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_binning.py | from __future__ import absolute_import, division, print_function
import numpy as np
import pytest
from numpy.testing import assert_array_equal
from .. import binning
@pytest.mark.parametrize(
('centers', 'ref'),
[(np.arange(10, 20, dtype=float), np.arange(9.5, 20)),
(2.0 ** np.arange(1, 10), [1, 3, 6, ... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,490 | spacetelescope/pysynphot | refs/heads/master | /commissioning/acs_etc_cases.py | from pytools import testutil
import sys
import basecase
class calcphotCase1(basecase.calcphotCase):
def setUp(self):
self.obsmode="acs,hrc,coron,fr388n#3880"
self.spectrum="rn(unit(1.0,flam),band(johnson,v),15,vegamag)"
self.subset=True
self.etcid="ACS.MISC.1.IMAG.029"
self.s... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,491 | spacetelescope/pysynphot | refs/heads/master | /commissioning/kwfile_dict.py | import re,os,glob
import numpy as N
import pylab as P
def read_kwfile(fname):
"""Syntax used as of r452 in commissioning tests"""
d={}
f=open(fname)
for line in f:
try:
kvpair=re.findall("(.*):: (.*)=(.*)$",line)[0]
d['name']=os.path.basename(kvpair[0])
key,v... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,492 | spacetelescope/pysynphot | refs/heads/master | /commissioning/stis_effstim_cases.py | from pytools import testutil
import sys
import basecase
class E1photlam(basecase.effstimCase):
def setUp(self):
self.spectrum="icat(k93models,37000,0.0,4.0) "
self.obsmode="galex,nuv"
self.form="photlam"
self.setglobal(__file__)
self.runpy()
class E1flam(basecase.effstimC... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,493 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_spectral_element.py | from __future__ import absolute_import, division, print_function
import numpy as np
import pytest
from numpy.testing import assert_allclose
from ..obsbandpass import ObsBandpass
from ..spectrum import ArraySpectralElement
def test_sample_units():
"""Test that SpectralElement.sample respects internal units."""
... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,494 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_thermback.py | from __future__ import absolute_import, division, print_function
import pytest
from ..obsbandpass import ObsBandpass
from ..observationmode import _ThermalObservationMode
@pytest.mark.remote_data
def test_exceptions():
"""
Making a ThermalObservationMode for an obsmode that has no support
for thermal ca... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,495 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_catalog.py | """Tests for the catalog module."""
from __future__ import absolute_import, division, print_function
import os
import pytest
import numpy as np
from numpy.testing import assert_allclose, assert_array_equal
from .. import Cache
from ..exceptions import ParameterOutOfBounds
from ..catalog import Icat
@pytest.mark.re... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,496 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket164.py | from __future__ import absolute_import, division, print_function
import os
import numpy as np
import pytest
from .. import refs, units
from ..locations import irafconvert
from ..obsbandpass import ObsBandpass
from ..refs import getref, setref
startup = None
def setup_module(module):
global startup
setref(... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,497 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_wavecat.py | from __future__ import absolute_import, division, print_function
import pytest
from numpy.testing import assert_array_equal
from ..wavetable import wavetable
@pytest.mark.parametrize(
('obs', 'ans'),
[('nicmos,3,f220m', '(7000.0,29996.0,1.0)'),
('acs,hrc,f550m', wavetable['acs,hrc']),
('stis,ccd,g... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,498 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket163.py | from __future__ import absolute_import, division, print_function
from six import iteritems
import os
import pytest
from astropy.io import fits
from ..obsbandpass import ObsBandpass
from ..spectrum import BlackBody
class TestSpecHdr(object):
@pytest.fixture(autouse=True)
def setup_class(self, tmpdir):
... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,499 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_component_switch.py | """
This tests whether the .components attribute of observationmode.ObservationMode
objects reflects the currently set COMPTABLE variable after the COMPTABLE
variable is switched within the same code.
"""
from __future__ import absolute_import, division, print_function
import os
import pytest
from .. import refs
fr... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,500 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_box.py | from __future__ import absolute_import, division, print_function
from ..spectrum import Box
from ..units import Angstrom
def test_basic_box():
bp = Box(5000, 100)
assert bp.sample(5000) == 1 # test inside
assert bp.sample(4000) == 0 # test outside
assert bp.sample(4949) == 0 # test bound
asser... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,501 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/units.py | """This module handles :ref:`wavelength and flux units <pysynphot-units>`.
Constants used for unit conversion are also defined here.
"""
# WARNING: vegamag unit conversions require spectrum and
# locations modules => circular imports
from __future__ import absolute_import, division
import math
import numpy a... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,502 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/spparser.py | """
This file implements the pysynphot language parser.
The language definition is in the docstring of class BaseParser,
function p_top. The parser code in spark.py builds its internal
tables by reading the docstring, so you can't put anything else
(like documentation) there.
::
l = scan('text') returns a... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,503 | spacetelescope/pysynphot | refs/heads/master | /commissioning/acs_rn_cases.py | import basecase
class acsC1(basecase.calcspecCase):
def setUp(self):
self.spectrum='rn(bb(2000),band(ACS,WFC1,F606W),29.0, vegamag)'
self.obsmode=None
self.setglobal(__file__)
self.runpy()
class acsC2(basecase.calcspecCase):
def setUp(self):
self.spectrum='rn(bb(2000),ba... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,504 | spacetelescope/pysynphot | refs/heads/master | /commissioning/nicmos_rn_cases.py | import basecase
class nicmosC1(basecase.calcspecCase):
def setUp(self):
self.spectrum='rn(bb(5000),band(bessell,h),23,abmag)'
self.obsmode=None
self.setglobal(__file__)
self.runpy()
class nicmosC2(basecase.calcspecCase):
def setUp(self):
self.spectrum='rn(crgridkc96$sb_t... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,505 | spacetelescope/pysynphot | refs/heads/master | /commissioning/acceptance/mark_array_ok.py | """I have also noticed a trend in a number of the failed cases that
involve array comparisons: the mean discrepancy is very small,
and there are a small number of significant outliers. At present,
such a test fails the rigorous criteria we are using. However,
I am thinking of writing a utility to identify these cases a... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,506 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_analytic_spectrum.py | from __future__ import absolute_import, division, print_function
import numpy as np
from numpy.testing import assert_allclose
from ..spectrum import BlackBody, FlatSpectrum, GaussianSource, Powerlaw
class TestPowerLaw(object):
def setup_class(self):
self.pl = Powerlaw(6000, -4, 'angstrom', 'photlam')
... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,507 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/wavetable.py | """This module handles selection of the appropriate
:ref:`wavelength table <pysynphot-wavelength-table>` for a given
:ref:`observation mode <pysynphot-obsmode-bandpass>`.
This is the same selection as used by ETC.
Its ``wavecat_file`` (see below) can contain a mix of the following:
* Name of the ASCII file con... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,508 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket52.py | from __future__ import absolute_import, division, print_function
import os
import pytest
from ..locations import irafconvert
from ..spparser import parse_spec
@pytest.mark.remote_data
class TestTicket52(object):
def setup_class(self):
self.ref = os.path.join(
os.environ['PYSYN_CDBS'], 'cals... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,509 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ui_tickets.py | from __future__ import absolute_import, division, print_function
import os
import numpy as np
import pytest
from numpy.testing import assert_allclose
from ..spectrum import FileSourceSpectrum, FileSpectralElement, FlatSpectrum
def test_flat_redshift():
sp = FlatSpectrum(1)
tst = sp.redshift(2.5)
tstpt ... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,510 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/observationmode.py | """This module handles observation modes that are defined in graph tables.
**Global Variables**
* ``pysynphot.observationmode.rootdir`` - Same as
``pysynphot.locations.rootdir``.
* ``pysynphot.observationmode.datadir`` - Same as
``pysynphot.locations.specdir``.
* ``pysynphot.observationmode.wavecat`` - Same as
... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,511 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_spec.py | from __future__ import absolute_import, division, print_function
import os
import numpy as np
import pytest
from astropy.utils.data import get_pkg_data_filename
from numpy.testing import assert_array_equal
from ..spectrum import (ArraySourceSpectrum, BlackBody, FileSourceSpectrum,
F... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,512 | spacetelescope/pysynphot | refs/heads/master | /commissioning/genscience.py | import basecase
import sys,os
pattern="""class stisS%d(countrateCase):
def setUp(self):
self.obsmode="%s"
self.spectrum="%s"
self.setglobal(__file__)
self.runpy()\n"""
speclist=['/grp/hst/cdbs/calspec/gd71_mod_005.fits',
'/grp/hst/cdbs/calspec/gd153_mod_004.fits',
... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,513 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket143.py | from __future__ import absolute_import, division, print_function
import os
import pytest
from numpy.testing import assert_array_equal, assert_allclose
from ..obsbandpass import ObsBandpass
from ..observation import Observation
from ..refs import getref, setref
from ..spectrum import BlackBody
@pytest.mark.remote_d... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,514 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_v06_tickets.py | from __future__ import absolute_import, division, print_function
import numpy as np
import pytest
from ..catalog import Icat
from ..obsbandpass import ObsBandpass
from ..spectrum import (ArraySourceSpectrum, ArraySpectralElement, Box,
UniformTransmission)
def test_box():
bp = Box(10000, ... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,515 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/compat.py | """Module to handle compatibility with dependencies like Astropy."""
from __future__ import absolute_import, division, print_function
import astropy
from astropy.utils.introspection import minversion
__all__ = ['ASTROPY_LT_1_3']
ASTROPY_LT_1_3 = not minversion(astropy, '1.3')
| {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,516 | spacetelescope/pysynphot | refs/heads/master | /commissioning/nicmos_etc_cases.py | from pytools import testutil
import sys
import basecase
class calcspecCase1(basecase.calcspecCase):
def setUp(self):
self.obsmode="None"
self.spectrum="bb(5000)"
self.subset=False
self.etcid="None"
self.setglobal(__file__)
self.runpy()
class countrateCase1(basecase.co... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,517 | spacetelescope/pysynphot | refs/heads/master | /commissioning/convert/conv_base.py | """Contains SpecCase used by commissioning_cases.CommCase*.
Defines all the common setup and testing.
"""
import os
import numpy as N
import pysynphot as S
from pysynphot import etc
#For thermal classes only
from pysynphot.observationmode import ObservationMode
#BUG: find a better way
HERE = os.getcwd()
DATADIR = os... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,518 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/catalog.py | """This module is useful for working with catalog spectra such as
:ref:`pysynphot-appendixa-ck04`, :ref:`pysynphot-appendixa-kurucz1993`, and
:ref:`pysynphot-appendixa-phoenix`.
Spectra are constructed from basis spectra which are indexed for various
combinations of effective temperature (:math:`T_{\\mathrm{eff}}`),
m... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,519 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_observation.py | """Tests for the observation.Observation class."""
from __future__ import absolute_import, division, print_function
import os
import numpy as np
import pytest
from numpy.testing import assert_allclose, assert_array_equal
from ..observation import Observation
from ..obsbandpass import ObsBandpass
from ..spectrum impo... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,520 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/tables.py | """This module handles graph and component tables.
They are discussed in detail in :ref:`pysynphot-appendixc`.
"""
from __future__ import division, print_function
import numpy as N
from astropy.io import fits as pyfits
#Flag to control verbosity
DEBUG = False
class CompTable(object):
"""Class to handle a :ref:... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,521 | spacetelescope/pysynphot | refs/heads/master | /commissioning/stis_etc_cases.py | from pytools import testutil
import sys
import basecase
class countrateCase1(basecase.countrateCase):
def setUp(self):
self.obsmode="stis,ccd,50ccd"
self.spectrum="spec(earthshine.fits)*0.5+rn(spec(Zodi.fits),band(johnson,v),22.7,vegamag)+(spec(el1215a.fits)+spec(el1302a.fits)+spec(el1356a.fits)+spe... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,522 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/planck.py | """This module handles Planck's law of blackbody radiation.
**Global Variables**
* ``pysynphot.planck.H`` - Planck's constant in CGS units.
* ``pysynphot.planck.HS`` - Planck's constant in SI units.
* ``pysynphot.planck.C`` - Speed of light in SI units.
* ``pysynphot.planck.K`` - Boltzmann constant in SI units.
Thes... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,523 | spacetelescope/pysynphot | refs/heads/master | /commissioning/nicmos_etc_thermback_cases.py | from pytools import testutil
import sys
import basecase
class thermbackCase1(basecase.thermbackCase):
def setUp(self):
self.obsmode="nicmos,3,g096"
self.spectrum="None"
self.subset=False
self.etcid="SpecA:S001"
self.setglobal(__file__)
self.runpy()
class thermbackCase... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,524 | spacetelescope/pysynphot | refs/heads/master | /commissioning/grid_atlas/match.py | def run():
bzfile=open('bzspectype.ascii')
bz={}
for line in bzfile:
name,type=line.strip().split()
bz[type]=name
bzfile.close()
pfile=open('pickles_spectype.txt')
pickles={}
for line in pfile:
try:
name,type,temp=line.strip().split()
pickles[... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,525 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_tokenizer.py | from __future__ import absolute_import, division, print_function
import pytest
from ..spparser import Scanner
scanner = Scanner()
# Test of a single instance of each token. Does not test them in
# context, but at least it tests that each one is recognized.
tokens = [
# bug: the original pysynphot could not reco... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,526 | spacetelescope/pysynphot | refs/heads/master | /commissioning/wfc3_rn_ir1_cases.py | import basecase
class wfc3C1(basecase.calcspecCase):
def setUp(self):
self.spectrum='rn(bb(2000),band(wfc3,ir,f105w),20.0,stmag)'
self.obsmode=None
self.setglobal(__file__)
self.runpy()
class wfc3C2(basecase.calcspecCase):
def setUp(self):
self.spectrum='rn(bb(5500),band... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,527 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_flip.py | from __future__ import absolute_import, division, print_function
import numpy as np
import pytest
from numpy.testing import assert_array_equal
from ..spectrum import ArraySpectralElement, ArraySourceSpectrum
class TestFlip(object):
def setup_class(self):
self.waveup = np.arange(10000, 10100, 10)
... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,528 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket174.py | from __future__ import absolute_import, division, print_function
import pytest
from ..exceptions import PartialOverlap
from ..obsbandpass import ObsBandpass
from ..observation import Observation
from ..spparser import parse_spec
@pytest.mark.remote_data
def test_force_partial():
rband = (1146, 1213)
bp = Ob... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,529 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket159.py | from __future__ import absolute_import, division, print_function
import os
import pytest
from astropy.utils.data import get_pkg_data_filename
from ..obsbandpass import ObsBandpass
from ..observation import Observation
from ..refs import getref, setref
from ..spectrum import BlackBody, FileSourceSpectrum, FlatSpectru... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,530 | spacetelescope/pysynphot | refs/heads/master | /commissioning/effstim_from_rn.py | import re
def extract():
pat=re.compile("rn\((.*),band\((.*)\),")
ins=('acs','nicmos','stis')
for iname in ins:
fname="%s_rn_cases.py"%iname
f=open(fname)
out=open(fname.replace('rn','effstim').replace('.py','.txt'),'w')
for line in f:
if '.spectru... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,531 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket165.py | from __future__ import absolute_import, division, print_function
import pytest
from ..obsbandpass import ObsBandpass
from ..spectrum import SpectralElement
@pytest.mark.remote_data
@pytest.mark.parametrize(
'obsmode',
['wfc3,uvis1,f218w,aper#0.60',
'wfc3,uvis1,f218w,aper#1.38',
'wfc3,uvis1,f218w,a... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,532 | spacetelescope/pysynphot | refs/heads/master | /commissioning/convert/convertcases.py | import sys,os
import sqlite3
def run():
""" Generate TestCases from cmdfile according to the pattern in patternfile"""
#Define the import statements
impheader = """import sys
import conv_base
"""
#Define the test case pattern
pattern="""class Test%d(conv_base.%sCase):
@classmethod
def setU... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,533 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket139.py | """
Very preliminary tests of some bandpar functionality.
These answers were computed with pysynphot and eyeballed against
synphot answers. These tests are only to establish that the
functionality doesn't *break*. More rigorous tests should be added.
"""
from __future__ import absolute_import, division, print_function
... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,534 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket126.py | """
Applies to both #125 and #126.
Test raises an error if the bug has not been fixed.
"""
from __future__ import absolute_import, division, print_function
import pytest
from ..spectrum import SourceSpectrum
from ..spparser import parse_spec
@pytest.mark.remote_data
def test_ticket125():
sp = parse_spec('rn(ica... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,535 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket146.py | from __future__ import absolute_import, division, print_function
import os
import numpy as np
import pytest
from astropy.io import fits
from astropy.utils.data import get_pkg_data_filename
from ..exceptions import DuplicateWavelength
from ..obsbandpass import ObsBandpass
from ..reddening import Extinction
from ..spe... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,536 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket171.py | from __future__ import absolute_import, division, print_function
import os
from ..locations import irafconvert
class TestVarString(object):
def setup_class(self):
self.old_cdbs = os.environ['PYSYN_CDBS']
os.environ['PYSYN_CDBS'] = os.path.join('fake', 'path')
def teardown_class(self):
... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,537 | spacetelescope/pysynphot | refs/heads/master | /commissioning/gencases.py | from pysynphot import etc
import sys,os
import pickle
def run(cmdfile,subsetfile=None, lookupfile=None):
""" Generate TestCases from cmdfile according to the pattern in patternfile"""
#Define the test case pattern
pattern="""class %s(basecase.%sCase):
def setUp(self):
self.obsmode="%s"
... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,538 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/__init__.py | """
This __init__ file is used to expose the desired elements of the user
interface for interactive use.
"""
from __future__ import absolute_import
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is ... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,539 | spacetelescope/pysynphot | refs/heads/master | /commissioning/science_cases.py | """Holds cases suggested by science oversight (Ralph Bohlin)."""
from pytools import testutil
import sys
import basecase
class S1(basecase.countrateCase):
def setUp(self):
self.obsmode="acs,hrc,f435w"
self.spectrum="crcalspec$g191b2b_mod_004.fits"
self.setglobal(__file__)
self.runp... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,540 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_set_default_waveset.py | from __future__ import absolute_import, division, print_function
import numpy as np
from numpy.testing import assert_allclose, assert_array_equal
from .. import refs
def setup_module(module):
pass
def teardown_module(module):
"""Reset refs; specifically the default waveset."""
refs.setref()
def test... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,541 | spacetelescope/pysynphot | refs/heads/master | /commissioning/extrap/extrap.py | """This script will operate on throughput files to bound them
with zeros. There are three kinds of files to be considered:
- simple files with wavelength and throughput only
- simple files with wavelength, throughput, and error
- parameterized files with multiple throughput columns
The procedure will be:
- d... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,542 | spacetelescope/pysynphot | refs/heads/master | /commissioning/wfc3_ir_spec_62_thermback.py | from pytools import testutil
import sys
import basecase
class thermbackCase1(basecase.thermbackCase):
def setUp(self):
self.obsmode="wfc3,ir,g102,bkg"
self.spectrum="None"
self.subset=False
self.etcid="irsp006.tab:0000"
self.setglobal(__file__)
self.runpy()
class ther... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,543 | spacetelescope/pysynphot | refs/heads/master | /commissioning/makehist.py | import numpy as N
from pylab import *
import pylab
import pickle
#Load the data extracted from the database
f=open('countrate_discrep.pickle')
d2=pickle.load(f)
#oops, we sucked in some testefflam cases
d = dict()
for k in d2:
if 'testcountrate' in k:
d[k] = d2[k]
f.close()
f=open('countrate_discrep.pic... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,544 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket86.py | from __future__ import absolute_import, division, print_function
import os
import numpy as np
import pytest
from astropy.utils.data import get_pkg_data_filename
from numpy.testing import assert_allclose
from ..obsbandpass import ObsBandpass
from ..observation import Observation
from ..refs import getref, setref
from... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,545 | spacetelescope/pysynphot | refs/heads/master | /commissioning/preprocess_rn_cases.py | import sys
def main(fname):
case = """class %sC%d(basecase.calcspecCase):
def setUp(self):
self.spectrum='%s'
self.obsmode=None
self.setglobal(__file__)
self.runpy()\n\n"""
instr=getinstr(fname)
f=open(fname)
out=open(fname.replace('.txt','.py'),'w')
out... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,546 | spacetelescope/pysynphot | refs/heads/master | /commissioning/basecase.py | from pytools import testutil
import pysynphot as S
import numpy as N
from astropy.io import fits as pyfits
from pysynphot import etc
from pyraf import iraf
from iraf import stsdas,hst_calib,synphot
import os,time,re
from pysynphot.wavetable import wavetable as Wavecat
from pysynphot.observationmode import ObservationMo... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,547 | spacetelescope/pysynphot | refs/heads/master | /commissioning/convert/commissioning_cases.py | import sys
import conv_base
class TestComm1(conv_base.ParentCase):
@classmethod
def setUpClass(cls):
cls.obsmode="None"
cls.spectrum="bb(10000)"
cls.fname="C1_%s.fits"
cls.setup2()
class TestComm2(conv_base.ParentCase):
@classmethod
def setUpClass(cls):
cls.obsm... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,548 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_mergewavesets.py | from __future__ import absolute_import, division, print_function
import os
import numpy as np
import pytest
from astropy.utils.data import get_pkg_data_filename
from ..obsbandpass import ObsBandpass
from ..observation import Observation
from ..reddening import Extinction
from ..refs import getref, setref
from ..spec... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,549 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/renorm.py | """This module handles normalization of source spectrum flux."""
from __future__ import division, print_function
import math
import numpy as np
from . import units
from .spectrum import FlatSpectrum, Vega
from .refs import _default_waveset
from .exceptions import DisjointError, OverlapError
# This is done here to avo... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,550 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_parsing.py | from __future__ import absolute_import, division, print_function
import os
import pytest
from ..exceptions import DisjointError
from ..spectrum import SourceSpectrum
from ..spparser import parse_spec
is_ftp = os.environ['PYSYN_CDBS'].lower().startswith(('http', 'ftp'))
@pytest.mark.remote_data
@pytest.mark.parame... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,551 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_primary_area.py | """
Test various aspects of having an area keyword in graphtable headers and
propogating that area back to places where it's used.
"""
from __future__ import absolute_import, division, print_function
import os
import pytest
from astropy.utils.data import get_pkg_data_filename
from numpy.testing import assert_allclose... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,552 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_cos.py | """
Container for tests of newly added COS functionality such as new obsmode.
In general, these tests simply test for file integrity (i.e., if there
are no errors, the tests pass) rather than comparison results.
"""
from __future__ import absolute_import, division, print_function
import pytest
from ..obsbandpass impo... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,553 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/obsbandpass.py | """This module handle bandpass of observation modes."""
from __future__ import division, print_function
import numpy as np
from .observationmode import ObservationMode
from .spectrum import CompositeSpectralElement, TabularSpectralElement
from . import units
from . import exceptions
def ObsBandpass(obstring, graphta... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,554 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_center_edges.py | """
Tests for pysynphot using bin edges as the primary reference instead of bin
centers.
Test coverage domain:
* obs(sp,bp)
* obs(sp, bp, binset)
* obs(binned_sp,bp)
* obs(binned_sp,bp, binset)
* some hst vs. generic bandpasses
* some analytics vs. tabular spectra
"""
from __future__ import absolute_import, division... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,555 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/conftest.py | import os
from pytest_astropy_header.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS
def pytest_configure(config):
# Configure header here.
PYTEST_HEADER_MODULES['astropy'] = 'astropy'
PYTEST_HEADER_MODULES.pop('h5py', None)
PYTEST_HEADER_MODULES.pop('Pandas', None)
PYTEST_HEADER_MODULES.pop... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,556 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket161.py | from __future__ import absolute_import, division, print_function
import numpy as np
import pytest
from ..obsbandpass import ObsBandpass
@pytest.mark.remote_data
def test_err_col():
"""Test that this obsmode does not raise exception."""
obs = ObsBandpass('stis,ccd,50ccd,mjd#55000')
assert np.any(obs.thro... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,557 | spacetelescope/pysynphot | refs/heads/master | /commissioning/extrap/ins_inputs/parse_lengthy.py | import re
def run(inname):
f=open(inname)
f2=open(inname.replace('.txt','_key.txt'),'w')
d={}
dshort={}
lookup={}
namepat=re.compile('(acs[^ ]*fits)')
compat = re.compile('"(.*)"')
space = re.compile(r'\s+')
count=0
for nextline in f:
line=space.sub(' ',nextline)
... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,558 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_exceptions.py | """Test that exceptions really are raised when they should be."""
from __future__ import absolute_import, division, print_function
import os
import pytest
from .. import refs
from ..obsbandpass import ObsBandpass
from ..observationmode import ObservationMode
from ..spectrum import FlatSpectrum
@pytest.mark.remote_... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,559 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket183.py | from __future__ import absolute_import, division, print_function
import pytest
from ..obsbandpass import ObsBandpass
@pytest.mark.remote_data
def test_no_thermback():
bp = ObsBandpass('acs,wfc1,f555w')
with pytest.raises(NotImplementedError):
bp.thermback()
| {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,560 | spacetelescope/pysynphot | refs/heads/master | /commissioning/log2cases/parselog.py | """This script *replaces* the processlog.csh shell script. It has
more sophisticated logic to add the etc test name to the pysynphot
command as another keyword-value pair.
Modified to parse the modified line, then write a dictionary that will
be read by the gencases tool.
"""
import sys,re, pickle
from pysynphot impo... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,561 | spacetelescope/pysynphot | refs/heads/master | /commissioning/apply_overlap.py | # Late in the process, it was discovered that a number of these
# test cases provide only partial overlap between the spectrum and
# bandpass. For some of these, the instrument teams determined that
# the correct thing to do was to emulate the behavior that the ETC will
# use, ie, force the Observation to be simulated ... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
67,562 | spacetelescope/pysynphot | refs/heads/master | /pysynphot/test/test_ticket82.py | """Tests varying legal cases for ASCII file spectrum data."""
from __future__ import absolute_import, division, print_function
import numpy as np
import pytest
from ..exceptions import BadRow
from ..spectrum import FileSourceSpectrum
def writedata(start=0, end=4000):
"""len = end - start"""
s = ''
for k... | {"/pysynphot/test/test_binning.py": ["/pysynphot/__init__.py"], "/pysynphot/test/test_spectral_element.py": ["/pysynphot/obsbandpass.py", "/pysynphot/spectrum.py"], "/pysynphot/test/test_thermback.py": ["/pysynphot/obsbandpass.py", "/pysynphot/observationmode.py"], "/pysynphot/test/test_catalog.py": ["/pysynphot/__init... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.