Skip to content

Commit

Permalink
Merge branch 'develop' into feature/add-relock
Browse files Browse the repository at this point in the history
  • Loading branch information
bleykauf committed Aug 20, 2024
2 parents 36b29f9 + 7822022 commit 7833b3a
Show file tree
Hide file tree
Showing 103 changed files with 930 additions and 779 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 24.4.2
rev: 24.8.0
hooks:
- id: black
exclude: ^(gateware/logic/|gateware/lowlevel/|gateware/linien_module.py|linien-server/linien_server/csrmap.py)
Expand All @@ -12,7 +12,7 @@ repos:
name: isort (python)

- repo: https://github.com/pycqa/flake8
rev: 7.0.0
rev: 7.1.1
hooks:
- id: flake8
exclude: linien-server/linien_server/csrmap.py
Expand Down
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.1.0]

### Added
* Show differences when local and remote parameters do not match by @bleykauf in https://github.com/linien-org/linien/pull/400
* Show voltage on the x-axis when sweeping by @bleykauf in https://github.com/linien-org/linien/pull/404
* Added loss-of-lock detection and automatic relocking by @bleykauf in https://github.com/linien-org/linien/pull/403

### Changed
* Switched to Tableau color scheme and make colors consistent, i.e. signals have the same color while sweeping and when locked. By @bleykauf in https://github.com/linien-org/linien/pull/419.
* Increase upper version constraint for `importlib-metadata` by @doronbehar in https://github.com/linien-org/linien/pull/416

### Fixed

* Fixed example code in the readme by @bleykauf in https://github.com/linien-org/linien/pull/420, thanks to @Andrew-wi for reporting this issue
* Fixed a bug preventing the selection of a PSD algorithm via the GUI by @bleykauf in https://github.com/linien-org/linien/pull/421, thanks to @martinssonh for reporting this issue

## [2.0.4] - 2024-05-30

### Fixed
Expand Down Expand Up @@ -236,7 +247,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

* **Bug fixes and performance improvements**

[Unreleased]: https://github.com/linien-org/linien/compare/v2.0.4...HEAD
[Unreleased]: https://github.com/linien-org/linien/compare/v2.1.0...HEAD
[2.1.0]: https://github.com/linien-org/linien/compare/v2.0.4...v2.1.0
[2.0.4]: https://github.com/linien-org/linien/compare/v2.0.3...v2.0.4
[2.0.3]: https://github.com/linien-org/linien/compare/v2.0.2...v2.0.3
[2.0.2]: https://github.com/linien-org/linien/compare/v2.0.1...v2.0.2
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ from linien_client.deploy import install_remote_server

device = Device(
host="rp-xxxxxx.local",
user="root",
username="root",
password="root"
)
instalL_remote_server(device)
install_remote_server(device)
```

Finally, you can install the server manually, by connecting to the RedPitaya via SSH and
Expand Down Expand Up @@ -240,7 +240,7 @@ from linien_common.common import MHz, Vpp, ANALOG_OUT_V

dev = Device(
host="rp-xxxxxx.local",
user="root",
username="root",
password="root"
)
c = LinienClient(dev)
Expand Down Expand Up @@ -335,7 +335,7 @@ from time import sleep

c = LinienClient(
host="rp-xxxxxx.local",
user="root",
username="root",
password="root"
)
c.connect(autostart_server=True, use_parameter_cache=True)
Expand Down Expand Up @@ -496,7 +496,9 @@ Linien ‒ User-friendly locking of lasers using RedPitaya (STEMlab 125-14) that
Copyright © 2014-2015 Robert Jördens\
Copyright © 2018-2022 Benjamin Wiegand\
Copyright © 2021-2024 Bastian Leykauf\
Copyright © 2022 Christian Freier
Copyright © 2022 Christian Freier\
Copyright © 2023-2024 Doron Behar\


Linien is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Expand Down
4 changes: 2 additions & 2 deletions gateware/bit2bin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
5 changes: 2 additions & 3 deletions gateware/fpga_image_helper.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
6 changes: 2 additions & 4 deletions gateware/hw_platform.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
7 changes: 2 additions & 5 deletions gateware/linien_module.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2023 Bastian Leykauf <[email protected]>
# Copyright 2022 Christian Freier <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
5 changes: 2 additions & 3 deletions gateware/logic/autolock.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
5 changes: 2 additions & 3 deletions gateware/logic/autolock_utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
6 changes: 2 additions & 4 deletions gateware/logic/chains.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
6 changes: 2 additions & 4 deletions gateware/logic/cordic.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
5 changes: 2 additions & 3 deletions gateware/logic/decimation.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
6 changes: 2 additions & 4 deletions gateware/logic/delta_sigma.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
6 changes: 2 additions & 4 deletions gateware/logic/filter.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
6 changes: 2 additions & 4 deletions gateware/logic/iir.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
6 changes: 2 additions & 4 deletions gateware/logic/limit.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
6 changes: 2 additions & 4 deletions gateware/logic/modulate.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
5 changes: 2 additions & 3 deletions gateware/logic/pid.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
6 changes: 2 additions & 4 deletions gateware/logic/sweep.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
6 changes: 2 additions & 4 deletions gateware/lowlevel/analog.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
6 changes: 2 additions & 4 deletions gateware/lowlevel/crg.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
6 changes: 2 additions & 4 deletions gateware/lowlevel/dna.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
6 changes: 2 additions & 4 deletions gateware/lowlevel/gpio.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
6 changes: 2 additions & 4 deletions gateware/lowlevel/pitaya_ps.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
5 changes: 2 additions & 3 deletions gateware/lowlevel/scopegen.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
6 changes: 2 additions & 4 deletions gateware/lowlevel/xadc.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# Copyright 2014-2015 Robert Jördens <[email protected]>
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2022 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
17 changes: 17 additions & 0 deletions linien-client/linien_client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Linien is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Linien. If not, see <http://www.gnu.org/licenses/>.

import importlib.metadata
import logging
from logging.handlers import RotatingFileHandler
Expand Down
5 changes: 2 additions & 3 deletions linien-client/linien_client/connection.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Copyright 2018-2022 Benjamin Wiegand <[email protected]>
# Copyright 2021-2023 Bastian Leykauf <[email protected]>
#
# This file is part of Linien and based on redpid.
#
# Copyright (C) 2016-2024 Linien Authors (https://github.com/linien-org/linien#license)
#
# Linien is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
Loading

0 comments on commit 7833b3a

Please sign in to comment.