Skip to content

Commit

Permalink
fix typehints
Browse files Browse the repository at this point in the history
  • Loading branch information
bleykauf committed Aug 22, 2024
1 parent bd82be1 commit 0be15a1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions linien-server/linien_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,11 @@ def exposed_start_autolock(
x1,
spectrum,
auto_offset=auto_offset,
additional_spectra=additional_spectra
or pickle.loads(additional_spectra),
additional_spectra=(
pickle.loads(additional_spectra)
if additional_spectra is not None
else None
),
)

def exposed_start_optimization(self, x0, x1, spectrum):
Expand Down

0 comments on commit 0be15a1

Please sign in to comment.