Skip to content

Commit

Permalink
table definitions update
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottSoren committed Jun 7, 2022
1 parent bcb2e99 commit be32cb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ixdat/spectra.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def add_spectrum_series_to_measurement(measurement, spectrum_series, **kwargs):


class SpectroMeasurement(Measurement):
extra_column_attrs = {"spectro_measurement": {"spec_id"}}
extra_column_attrs = {"spectro_measurements": {"spec_id"}}

def __init__(self, *args, spectrum_series=None, spec_id=None, **kwargs):
super().__init__(*args, **kwargs)
Expand Down
3 changes: 3 additions & 0 deletions src/ixdat/techniques/spectroelectrochemistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ class ECOpticalMeasurement(SpectroECMeasurement):

default_plotter = ECOpticalPlotter

extra_linkers = SpectroECMeasurement.extra_linkers
extra_linkers.update({"ec_optical_measurements": ("spectra", "ref_id")})

def __init__(self, reference_spectrum=None, ref_id=None, **kwargs):
"""Initialize an SEC measurement. All args and kwargs go to ECMeasurement."""
SpectroECMeasurement.__init__(self, **kwargs)
Expand Down

0 comments on commit be32cb2

Please sign in to comment.