Skip to content
Snippets Groups Projects
Commit df040264 authored by Christian Darsow-Fromm's avatar Christian Darsow-Fromm
Browse files

Merge branch 'develop'

parents 350e7d18 7daadba8
No related branches found
No related tags found
No related merge requests found
Pipeline #2275 failed
...@@ -5,7 +5,7 @@ variables: ...@@ -5,7 +5,7 @@ variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.pip"
package: package:
image: lasnq/nqlab image: lasnq/openqlab
stage: build stage: build
before_script: before_script:
script: script:
...@@ -34,7 +34,7 @@ test wheel installation: ...@@ -34,7 +34,7 @@ test wheel installation:
- .pip/ - .pip/
test: test:
image: lasnq/nqlab image: lasnq/openqlab
stage: test stage: test
before_script: before_script:
script: script:
...@@ -44,7 +44,7 @@ test: ...@@ -44,7 +44,7 @@ test:
- htmlcov - htmlcov
expire_in: 30 days expire_in: 30 days
deploy staging: .deploy staging:
image: alpine image: alpine
before_script: before_script:
# bring ssh to work for deployment # bring ssh to work for deployment
...@@ -71,8 +71,6 @@ deploy production: ...@@ -71,8 +71,6 @@ deploy production:
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa - echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa
script: script:
# Apache server
- scp $SCP_PARAMS dist/*.whl $SSH_SERVER:$SERVER_ROOT/software-builds/nq-lab
# PyPi server # PyPi server
- scp $SCP_PARAMS dist/*.whl $SSH_SERVER:/var/www/packages - scp $SCP_PARAMS dist/*.whl $SSH_SERVER:/var/www/packages
only: only:
......
...@@ -7,16 +7,16 @@ requirements-user: ...@@ -7,16 +7,16 @@ requirements-user:
@pip3 install --user -r requirements.txt @pip3 install --user -r requirements.txt
doc: doc:
@export PYTHONPATH=`pwd`/src; cd doc; make html @export PYTHONPATH=`pwd`/src:$(PYTHONPATH); cd doc; make html
upload-doc: upload-doc:
@cd doc; make upload @cd doc; make upload
bdist: bdist:
@export PYTHONPATH=`pwd`/src; python3 setup.py bdist_wheel @export PYTHONPATH=`pwd`/src:$(PYTHONPATH); python3 setup.py bdist_wheel
test: test:
@export PYTHONPATH=`pwd`/src; cd src/tests; py.test --cov-report=html . @export PYTHONPATH=`pwd`/src:$(PYTHONPATH); cd src/tests; py.test -x --cov-report=html .
clean: clean:
@rm -r dist/ build/ @rm -r dist/ build/
......
...@@ -55,4 +55,3 @@ To work with measurement data and do further analysis, here is some further read ...@@ -55,4 +55,3 @@ To work with measurement data and do further analysis, here is some further read
Working with DataFrames/DataContainer <dataframes> Working with DataFrames/DataContainer <dataframes>
Designing a Servo <servodesign> Designing a Servo <servodesign>
Fitting Measured Beam Parameters <fit_beam_data>
from .servo_design import ServoDesign
from nqlab.io.importers import utils from OpenQlab.io.importers import utils
try: try:
import numpy as np import numpy as np
......
...@@ -228,7 +228,7 @@ class TestServoDesign(unittest.TestCase): ...@@ -228,7 +228,7 @@ class TestServoDesign(unittest.TestCase):
self.assertIsInstance(plt, matplotlib.figure.Figure) self.assertIsInstance(plt, matplotlib.figure.Figure)
ax = plt.axes[0] ax = plt.axes[0]
self.assertLessEqual(ax.get_xlim()[1], 1e6) self.assertLessEqual(ax.get_xlim()[1], 1e6)
self.assertGreaterEqual(ax.get_xlim()[1], 5e5) self.assertGreaterEqual(ax.get_xlim()[1], 1e5)
self.sd.integrator(500) self.sd.integrator(500)
self.sd.integrator(500) self.sd.integrator(500)
self.sd.integrator(500) self.sd.integrator(500)
...@@ -242,7 +242,7 @@ class TestServoDesign(unittest.TestCase): ...@@ -242,7 +242,7 @@ class TestServoDesign(unittest.TestCase):
plt = self.sd.plot(freq=np.logspace(1, 3, num=100)) plt = self.sd.plot(freq=np.logspace(1, 3, num=100))
ax = plt.axes[0] ax = plt.axes[0]
self.assertLessEqual(ax.get_xlim()[1], 1e4) self.assertLessEqual(ax.get_xlim()[1], 1e4)
self.assertGreaterEqual(ax.get_xlim()[1], 2e3) self.assertGreaterEqual(ax.get_xlim()[1], 1e3)
def test_plot_with_plant(self): def test_plot_with_plant(self):
if self.display_available: if self.display_available:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment