Skip to content

An error occurred within SPCFileWriter #7

Description

@AnnNing
from SPyC_Writer.SPCFileWriter import SPCFileWriter

writer = SPCFileWriter(SPCFileType.DEFAULT)

then

Traceback (most recent call last):
  File "test.py", line 1, in <module>
    from SPyC_Writer.SPCFileWriter import SPCFileWriter
  File "H:\python\SPyC_Writer-main\src\SPyC_Writer\SPCFileWriter.py", line 48, in <module>
    from .SPCHeader import SPCHeader
  File "H:\python\SPyC_Writer-main\src\SPyC_Writer\SPCHeader.py", line 16, in <module>
    class SPCHeader:
  File "H:\python\SPyC_Writer-main\src\SPyC_Writer\SPCHeader.py", line 41, in SPCHeader
    custom_axes: list[str] = field(default_factory=list) # (fcatxt)
TypeError: 'type' object is not subscriptable

Python version:

Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)] on win32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions