Skip to content

Commit

Permalink
fix TextDataStorage load_data (#128)
Browse files Browse the repository at this point in the history
fix TextDataStorage load_data to load all data and not skip the first line of data

---------

Co-authored-by: Tobias Spohn <tobias@qo-243-128.physik.uni-ulm.de>
  • Loading branch information
TobiasSpohn and Tobias Spohn authored Dec 2, 2024
1 parent c796bd2 commit 048ce63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ None

### Bugfixes
- Fixed a bug where qudi would deadlock when starting a GUI module via the ipython terminal
- Fixed a bug with the `qtconsole` package no longer being part of `jupyter`. It is now listed
- Fixed a bug with the `qtconsole` package no longer being part of `jupyter`. It is now listed
explicitly in the dependencies.
- Fixed SystemTrayIcon error when activating GUI modules
- Fixed `TextDataStorage.load_data` to load all lines of data and not skip the first line of data

### New Features
None
Expand All @@ -30,7 +31,7 @@ None
- Fixed syntax error in `qudi.util.fit_models.lorentzian.LorentzianLinear` fit model

### New Features
- Introduced `DiscreteScalarConstraint` that expands the functionality of `ScalarConstraint` to check whether a value
- Introduced `DiscreteScalarConstraint` that expands the functionality of `ScalarConstraint` to check whether a value
is in a set of discrete values

### Other
Expand Down
2 changes: 1 addition & 1 deletion src/qudi/util/datastorage.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ def load_data(file_path):
dtype=dtype,
comments=general['comments'],
delimiter=general['delimiter'],
skip_header=header_lines + 2)
skip_header=header_lines + 1)
except UnicodeError as err:
raise ValueError(f'Loading data from file "{file_path}" failed. The file you are '
f'trying to load is most likely no unicode textfile.') from err
Expand Down

0 comments on commit 048ce63

Please sign in to comment.