Skip to content

Commit

Permalink
Plotting function working with manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
daquintero committed Sep 18, 2024
1 parent 8a03bee commit cd50feb
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion piel/experimental/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import piel.experimental.types as types

from piel.experimental.devices import DPO73304
from piel.experimental.devices import DPO73304, AQ6375

from .analysis.operating_point import (
create_experiment_data_collection_from_unique_parameters,
Expand Down
3 changes: 3 additions & 0 deletions piel/experimental/devices/AQ6375/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""
This corresponds to a Yokagawa AQ6373 Optical Spectrum Analyzer
"""
Empty file.
3 changes: 3 additions & 0 deletions piel/experimental/devices/DPO73304/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"""
This corresponds to a Tectronic Digital Oscilloscope
"""
from .extract import (
extract_measurement_to_dataframe,
extract_oscilloscope_data_from_measurement,
Expand Down
25 changes: 25 additions & 0 deletions piel/types/experimental/measurements/spectrum_analyzer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from piel.types.core import PathTypes
from piel.types.experimental.measurements.core import (
MeasurementConfiguration,
Measurement,
MeasurementCollection
)


class SpectrumMeasurementConfiguration(MeasurementConfiguration):
measurement_configuration_type: str = "SpectrumMeasurementConfiguration"


class SpectrumMeasurement(Measurement):
"""
Standard definition for a collection of files that are part of an either Electrical or Optical Spectrum measurement.
"""

type: str = "SpectrumMeasurement"
spectrum_file: PathTypes = ""


class SpectrumMeasurementCollection(MeasurementCollection):
type: str = "SpectrumMeasurementCollection"
collection: list[SpectrumMeasurement] = []

3 changes: 3 additions & 0 deletions piel/types/frequency.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
This type alias is currently a placeholder (Any | None) and is intended to be
replaced with a proper s-parameter representation model in the future.
This also represents a frequency, and hence wavelength spectrum if transformed
accordingly.
"""


Expand Down

0 comments on commit cd50feb

Please sign in to comment.