Skip to content

Commit

Permalink
fix version and benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Dec 3, 2024
1 parent 1700aab commit 2c655ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "sed-processor"
packages = [
{include = "sed"}
]
version = "0.3.3a1"
version = "0.3.3a2"
description = "Single Event Data Frame Processor: Backend to handle photoelectron resolved datastreams"
authors = ["OpenCOMPES team <[email protected]>"]
readme = "README.md"
Expand Down
10 changes: 4 additions & 6 deletions sed/core/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ def apply_momentum_calibration(
Defaults to False.
verbose (bool, optional): Option to print out diagnostic information.
Defaults to config["core"]["verbose"].
**kwds: Keyword args passed to ``DelayCalibrator.append_delay_axis``.
**kwds: Keyword args passed to ``MomentumCorrector.append_k_axis``.
"""
if verbose is None:
verbose = self.verbose
Expand Down Expand Up @@ -1735,15 +1735,13 @@ def calibrate_delay_axis(
if verbose:
print("Adding delay column to dataframe:")

if read_delay_ranges:
if read_delay_ranges and delay_range is None:
try:
datafile = self._files[0]
except IndexError:
print(
"No datafile available, specify either",
" 'datafile' or 'delay_range'",
raise ValueError(
"No datafile available, specify either 'datafile' or 'delay_range'.",
)
raise

df, metadata = self.dc.append_delay_axis(
self._dataframe,
Expand Down

0 comments on commit 2c655ee

Please sign in to comment.