Skip to content
Snippets Groups Projects
Commit 8dca7d6e authored by Florian Obersteiner's avatar Florian Obersteiner
Browse files

enumerators: use IntEnum, docstring

parent eb458163
No related branches found
No related tags found
1 merge request!6code refactor
......@@ -6,20 +6,19 @@ import re
import warnings
import numpy as np
from enum import Enum, IntEnum
from enum import IntEnum
DEFAULT_NUM_FORMAT = "%f"
DEFAULT_FIELD_DELIM = ", "
class Formats(IntEnum): # TODO: FormatIndex
"""File Format Indicators (FFI)""" # TODO: File Format Indices
class Formats(IntEnum):
"""File Format Indices (FFI)"""
FFI1001 = 1001
FFI2110 = 2110
class VariableType(Enum): # TODO: could use IntEnum here as well
class VariableType(IntEnum):
IndependentVariable = 1
IndependentBoundedVariable = 2
AuxiliaryVariable = 3
......@@ -935,4 +934,4 @@ class Dataset:
self.readHeader(splitChar)
if loadData:
self.endDefineMode()
self.readData(splitChar)
\ No newline at end of file
self.readData(splitChar)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment