Skip to content

Commit

Permalink
additional fixed flake8 errors identified in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stuchalk committed Dec 18, 2023
1 parent 9cc6386 commit e40b639
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion scidatalib/io/jcamp.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def _read_post_process_data_xy(
x = np.append(x, xstart[n] + (dx * np.arange(xnum[n])))

if xnum[len(xnum) - 1] > 1:
numerator = (jcamp_dict['lastx'] - xstart[len(xnum)-1])
numerator = (jcamp_dict['lastx'] - xstart[len(xnum) - 1])
denominator = (xnum[len(xnum) - 1] - 1.0)
dx = numerator / denominator

Expand Down
19 changes: 10 additions & 9 deletions tests/test_scidata.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,15 +437,16 @@ def test_datagroup_with_datapoints(sd):
"label": "datagroup 2",
"ids": ["datapoint/3/", "datapoint/4/"]}

out = [{
"@id": "datagroup/1/",
"@type": "sdo:datagroup",
"label": "datagroup 1",
"ids": [
"datapoint/1/",
"datapoint/2/"
]
},
out = [
{
"@id": "datagroup/1/",
"@type": "sdo:datagroup",
"label": "datagroup 1",
"ids": [
"datapoint/1/",
"datapoint/2/"
]
},
{
"@id": "datagroup/2/",
"@type": "sdo:datagroup",
Expand Down

0 comments on commit e40b639

Please sign in to comment.