Skip to content

Commit

Permalink
remove typing
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Jan 19, 2025
1 parent e88f080 commit 1ed013c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/specsscan/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import numpy as np
import pandas as pd
import xarray as xr
from tqdm.auto import tqdm

from specsanalyzer.config import complete_dictionary
Expand Down Expand Up @@ -287,7 +286,7 @@ def get_coords(
return coords, dim


def mm_to_fs(delaystage: xr.DataArray | np.ndarray | float, t0: float) -> float:
def mm_to_fs(delaystage, t0):
delay = delaystage - t0
delay *= 2 / 2.99792458e11 * 1e15
return delay
Expand Down
2 changes: 1 addition & 1 deletion src/specsscan/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def fetch_elab_metadata(self, scan: int, metadata: dict) -> dict:
metadata["elabFTW"]["scan"]["probe_polarization"] = 0

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

Expand Down

0 comments on commit 1ed013c

Please sign in to comment.