Skip to content
Snippets Groups Projects
Commit b803ee33 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

Moved to signal

parent 94760161
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ from Cython.Distutils import build_ext
def setup_package():
ex_info = [('wetb.fatigue_tools.rainflowcounting', ['pair_range', 'peak_trough', 'rainflowcount_astm']),
('wetb.signal_tools.filters', ['cy_filters'])]
('wetb.signal.filters', ['cy_filters'])]
extlist = [Extension('%s.%s' % (module, n),
[os.path.join(module.replace(".","/"), n)+'.pyx'],
include_dirs=[np.get_include()]) for module, names in ex_info for n in names]
......
......@@ -14,7 +14,7 @@ from io import open
from builtins import str
from future import standard_library
from wetb.utils.process_exec import pexec
from wetb.utils.cluster_tools.cluster_resource import unix_path, unix_path_old
from wetb.utils.cluster_tools.cluster_resource import unix_path_old
standard_library.install_aliases()
from collections import OrderedDict
......
File moved
File moved
......@@ -10,9 +10,7 @@ import re
import threading
from wetb.utils.cluster_tools import pbswrap
from wetb.utils.cluster_tools.ssh_client import SSHClient, SharedSSHClient
from wetb.utils.timing import print_time
import time
def unix_path(path, cwd=None, fail_on_missing=False):
......@@ -122,6 +120,7 @@ class SSHPBSClusterResource(Resource):
def new_ssh_connection(self):
from wetb.utils.cluster_tools.ssh_client import SSHClient
return SSHClient(self.host, self.ssh.username, self.ssh.password, self.ssh.port)
#return self.ssh
......@@ -159,7 +158,11 @@ class SSHPBSClusterResource(Resource):
jobids = list(jobids)
self.ssh.execute("qdel %s" % (" ".join(jobids)))
def setup_wine(self):
self.ssh.execute("""rm -f ./config-wine-hawc2.sh &&
wget https://gitlab.windenergy.dtu.dk/toolbox/pbsutils/raw/master/config-wine-hawc2.sh &&
chmod 777 config-wine-hawc2.sh &&
./config-wine-hawc2.sh""")
......
......@@ -175,8 +175,8 @@ def R(rh=0, t=15, P=1014):
-------
Specific gas constant
"""
assert np.all((900<P)&(P<1100)), "Pressure outside range 900 to 1100"
assert np.all((-50<t)&(t<100)), "Temperature outside range -50 to 100"
#assert np.all((900<P)&(P<1100)), "Pressure outside range 900 to 1100"
#assert np.all((-50<t)&(t<100)), "Temperature outside range -50 to 100"
Tk = t + 273.15
return P * 100 / (air_density(P, t, rh) * Tk)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment