text stringlengths 12 6.59M |
|---|
import os
import datetime
import operator
import pytest
from doit import tools
from doit import task
def test_create_folder():
def rm_dir():
if os.path.exists(DIR_DEP):
os.removedirs(DIR_DEP)
DIR_DEP = os.path.join(os.path.dirname(__file__),"parent/child/")
rm_dir()
assert True ... |
# Copyright (c) 2015-2016 Vector 35 LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, ... |
from AG_fft_tools import correlate2d
from agpy import gaussfitter
import warnings
import numpy as np
def cross_correlation_shifts_FITS(fitsfile1, fitsfile2, return_cropped_images=False, quiet=True, sigma_cut=False, **kwargs):
"""
Determine the shift between two FITS images using the cross-correlation
techn... |
import os
import csv
import sys
from optparse import make_option
from collections import Callable
from django.db.models import Q
from django.contrib.sites.models import Site
from django.db.models.loading import get_model
from django.core.management.base import LabelCommand, CommandError
DOMAIN = Site.objects.get_cur... |
import logging
import json
import requests
import datetime
import math
import time
# django modules
from django.views.decorators.csrf import csrf_exempt
from django.shortcuts import render, get_object_or_404
from django.views.generic import View, TemplateView, ListView, DetailView
from django.db.models import Q,Count
... |
"""
Internal tasks are tasks that are started from the teuthology infrastructure.
Note that there is no corresponding task defined for this module. All of
the calls are made from other modules, most notably teuthology/run.py
"""
from cStringIO import StringIO
import contextlib
import logging
import os
import time
impo... |
# -*- coding: utf-8 -*-
#
# pylast -
# A Python interface to Last.fm and Libre.fm
#
# Copyright 2008-2010 Amr Hassan
# Copyright 2013-2018 hugovk
#
# 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 Lice... |
{
'targets': [
{
'target_name': 'compiler',
'type': 'static_library',
'include_dirs': [
'include',
'src',
'externals/utf8proc',
'externals/json-parser',
],
'sources': [
'src/compiler/build_tables/build_parse_table.cc',
'src/compiler/bu... |
"\"\"\"\nSphinx Documentation Automatic Builder\n\nMIT License. See LICENSE for more details.\nCopyr(...TRUNCATED) |
"#!/usr/bin/env python\n\n\"\"\"Run some linters on files of various types.\"\"\"\n\n\nUSAGE = \"\"\(...TRUNCATED) |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 1