Skip to content

Commit 1ed013c

Browse files
committed
remove typing
1 parent e88f080 commit 1ed013c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/specsscan/helpers.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
import numpy as np
1111
import pandas as pd
12-
import xarray as xr
1312
from tqdm.auto import tqdm
1413

1514
from specsanalyzer.config import complete_dictionary
@@ -287,7 +286,7 @@ def get_coords(
287286
return coords, dim
288287

289288

290-
def mm_to_fs(delaystage: xr.DataArray | np.ndarray | float, t0: float) -> float:
289+
def mm_to_fs(delaystage, t0):
291290
delay = delaystage - t0
292291
delay *= 2 / 2.99792458e11 * 1e15
293292
return delay

src/specsscan/metadata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def fetch_elab_metadata(self, scan: int, metadata: dict) -> dict:
250250
metadata["elabFTW"]["scan"]["probe_polarization"] = 0
251251

252252
# remove pump information if pump not applied:
253-
if not metadata["elabFTW"]["scan"].get("pump_status", 0):
253+
if not metadata["elabFTW"]["scan"].get("pump_status", 1):
254254
if "pump_photon_energy" in metadata["elabFTW"].get("laser_status", {}):
255255
del metadata["elabFTW"]["laser_status"]["pump_photon_energy"]
256256

0 commit comments

Comments
 (0)