Skip to content

Commit 3f063ef

Browse files
committed
Refactor PeakProfileTypeEnum to consider auto-extraction of peak profile info
1 parent 30e08af commit 3f063ef

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • src/easydiffraction/datablocks/experiment/item

src/easydiffraction/datablocks/experiment/item/enums.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ def description(self) -> str:
7474
return 'Time-of-flight (TOF) diffraction.'
7575

7676

77+
# TODO: Can, instead of hardcoding here, this info be auto-extracted
78+
# from the actual peak profile classes defined in peak/cwl.py, tof.py,
79+
# total.py? So that their Enum variable, string representation and
80+
# description are defined in the respective classes?
81+
# TODO: Can supported values be defined based on the structure of peak/?
82+
# TODO: Can the same be reused for other enums in this file?
7783
class PeakProfileTypeEnum(str, Enum):
7884
"""Available peak profile types per scattering and beam mode."""
7985

0 commit comments

Comments
 (0)