Skip to content

Commit eb174d4

Browse files
authored
Rename format to format_string in Description as per SDDS definition. (#63)
1 parent b64217e commit eb174d4

File tree

3 files changed

+29
-19
lines changed

3 files changed

+29
-19
lines changed

CHANGELOG.md

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,44 @@
11
# SDDS-Files Changelog
22

3+
## Version 0.4.2
4+
5+
- Using `format_string` instead of `format` in `Definition` class.
6+
37
## Version 0.4.1
8+
49
- Writing empty arrays doesn't throw errors
510

611
## Version 0.4
12+
713
- Added:
8-
- Support for reading gzipped compressed file and arbitrary compression formats if the opener abstraction is provided.
14+
- Support for reading gzipped compressed file and arbitrary compression formats if the opener abstraction is provided.
915

1016
## Version 0.3
17+
1118
- Added:
12-
- little endian support.
13-
- manual endian selection for reader.
14-
- string and representation for classes
19+
- little endian support.
20+
- manual endian selection for reader.
21+
- string and representation for classes
1522

1623
## Version 0.2
24+
1725
- Added:
18-
- Support for ascii files.
19-
- Support for `pathlib.Path` objects in read and write operations.
26+
- Support for ascii files.
27+
- Support for `pathlib.Path` objects in read and write operations.
2028

2129
## Version 0.1.2 and Version 0.1.3
22-
- Fixed:
23-
- From relative to absolute imports (IMPORTANT FIX!!)
30+
31+
- Fixed:
32+
- From relative to absolute imports (IMPORTANT FIX!!)
2433

2534
## Version 0.1.1
26-
- Fixed:
27-
- Imports (for doc)
28-
29-
- Added:
30-
- Versioning
31-
- Changelog
35+
36+
- Fixed:
37+
- Imports (for doc)
38+
- Added:
39+
- Versioning
40+
- Changelog
3241

3342
## Version 0.1.0
34-
- Initial Release
43+
44+
- Initial Release

sdds/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
__title__ = "sdds"
77
__description__ = "SDDS file handling."
88
__url__ = "https://github.com/pylhc/sdds"
9-
__version__ = "0.4.1"
9+
__version__ = "0.4.2"
1010
__author__ = "pylhc"
1111
__author_email__ = "[email protected]"
1212
__license__ = "MIT"

sdds/classes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ class Definition:
113113
to produce Greek or mathematical characters.
114114
units (str): Optional. Allows specification of the units of the parameter.
115115
description (str): Optional. Provides for an informal description of the parameter.
116-
format (str): Optional. Specification of the print format string to be used to print the data
117-
(e.g. for ASCII in SDDS or other formats). NOT IMPLEMENTED!
116+
format_string (str): Optional. Specification of the print format string to be used to print the data
117+
(e.g. for ASCII in SDDS or other formats).
118118
119119
"""
120120

@@ -123,7 +123,7 @@ class Definition:
123123
symbol: Optional[str] = None
124124
units: Optional[str] = None
125125
description: Optional[str] = None
126-
format: Optional[str] = None
126+
format_string: Optional[str] = None
127127
TAG: ClassVar[Optional[str]] = None
128128

129129
def __post_init__(self):

0 commit comments

Comments
 (0)