From 99bfbfc4ea853130a06460ba0bbffaf623f7ae6b Mon Sep 17 00:00:00 2001 From: Wilfred Tyler Gee Date: Mon, 6 Nov 2017 12:33:41 +1100 Subject: [PATCH 1/2] Removing old helper script --- scripts/scrub_mongo.py | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 scripts/scrub_mongo.py diff --git a/scripts/scrub_mongo.py b/scripts/scrub_mongo.py deleted file mode 100644 index 88a9a7b..0000000 --- a/scripts/scrub_mongo.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env python - -import pymongo - -client = pymongo.MongoClient() -db = client.panoptes.sensors - -# Scrub data for various possible inputs -for i in range(5): - for dev in ['arduino_', 'ttyACM']: - key = "data./dev/{}{}".format(dev, i) - - # If it has an 'accelerometer' reading it is camera_box - results = db.update_many( - {"type": "environment", "{}.accelerometer".format(key): {"$exists": True}}, - {"$rename": {key: "data.camera_box", 'date': 'time'}} - ) - print("{} Camera {}".format(key, results.modified_count)) - - # If it has an 'voltage' reading it is computer - results = db.update_many( - {"type": "environment", "{}.voltages".format(key): {"$exists": True}}, - {"$rename": {key: "data.computer_box", 'date': 'time'}} - ) - print("{} Computer {}".format(key, results.modified_count)) From 67e98248b3df174f175a1e701e9265c65a2ae1ec Mon Sep 17 00:00:00 2001 From: Wilfred Tyler Gee Date: Mon, 6 Nov 2017 12:54:15 +1100 Subject: [PATCH 2/2] Remove meta files before merge - see #15 --- CONTRIBUTING.md | 1 - LICENSE | 22 ------------------- README.md | 11 ---------- requirements.txt | 5 ----- setup.py | 56 ------------------------------------------------ 5 files changed, 95 deletions(-) delete mode 100644 CONTRIBUTING.md delete mode 100644 LICENSE delete mode 100644 README.md delete mode 100644 requirements.txt delete mode 100644 setup.py diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 5fd2497..0000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1 +0,0 @@ -Please see the [POCS CONTRIBUTING](https://github.com/panoptes/POCS/blob/develop/CONTRIBUTING.md) file. diff --git a/LICENSE b/LICENSE deleted file mode 100644 index c6d7634..0000000 --- a/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 PANOPTES -Copyright (c) 2016 Google, Inc. - -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, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md deleted file mode 100644 index 4efa75e..0000000 --- a/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# PANOPTES Environmental Analysis System (PEAS) - -The weather and other environmental factors can impact -quality of observations. - -Each PANOPTES unit is equipped with a bunch of sensors that -measure wind speed, ambient temperature, humidity and much more. - -This repository contains the software that reads the sensors -on each PANOPTES unit, and prepares data for analysis in -Google BigQuery. \ No newline at end of file diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 2ab5512..0000000 --- a/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -numpy -astropy -pyserial -dateparser -astroplan \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index f84d50e..0000000 --- a/setup.py +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/env python -# Licensed under a 3-clause BSD style license - see LICENSE.rst - -import glob -import os - -try: - from setuptools import setup -except ImportError: - from distutils.core import setup - -srcdir = os.path.dirname(__file__) - -from distutils.command.build_py import build_py - -AUTHOR = 'Wilfred T Gee' -AUTHOR_EMAIL = 'wtylergee@gmail.com' -DESCRIPTION = 'PANOPTES Environmental Analysis System' -KEYWORDS = 'PANOPTES' -LICENSE = 'MIT' -LONG_DESCRIPTION = DESCRIPTION -PACKAGENAME = 'peas' -URL = 'http://projectpanoptes.org' - -# Treat everything in scripts except README.rst as a script to be installed -scripts = [fname for fname in glob.glob(os.path.join('scripts', '*')) - if os.path.basename(fname) != 'README.rst'] - -setup(name=PACKAGENAME, - version='0.0.1', - description=DESCRIPTION, - long_description=LONG_DESCRIPTION, - author=AUTHOR, - author_email=AUTHOR_EMAIL, - license=LICENSE, - url=URL, - keywords=KEYWORDS, - install_requires=['numpy>=1.10'], - test_suite="panoptes.tests", - classifiers=[ - 'Development Status :: 3 - Alpha', - 'Environment :: Console', - 'Intended Audience :: Science/Research', - 'License :: OSI Approved :: MIT License', - 'Operating System :: POSIX', - 'Programming Language :: C', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3 :: Only', - 'Topic :: Scientific/Engineering :: Astronomy', - 'Topic :: Scientific/Engineering :: Physics', - ], - cmdclass={'build_py': build_py} - )