Commit cac1cd5e authored by Mikkel Friis-Møller's avatar Mikkel Friis-Møller
Browse files

new sql package reference

parent bdae5834
Pipeline #6050 passed with stage
in 35 seconds
......@@ -6,20 +6,17 @@ Setup file for V52
from setuptools import setup
setup(name='v52',
version='1.0',
setup(name='v52',
version='1.0',
description='V52 - a tool to work with measurements and simulations',
url='https://gitlab.windenergy.dtu.dk/mikf/V52',
author='MIKF',
url='https://gitlab.windenergy.dtu.dk/V52/V52',
author='MIKF',
author_email='mikf@dtu.dk',
license='GNU GPL',
packages=['v52'
],
install_requires=[
'windrose',
'mysql-connector',
],
# files= ['plotting.py',
# 'topfarm.py',
# ],
packages=['v52'],
install_requires=[
'windrose',
'mysql-connector-python-rf',
# 'mysql-connector'
],
zip_safe=True)
......@@ -172,7 +172,12 @@ def _map_bin(x, bins, bin_strings):
if x == max(bins):
kwargs['right'] = True
bindex = np.digitize([x], bins, **kwargs)[0]
return bin_strings[bindex-1]
if x < min(bins):
pass
elif x > max(bins):
pass
else:
return bin_strings[bindex-1]
def dump_data(data, file_path):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment