Skip to content

Commit 7b2240b

Browse files
committed
Merge branch 'norm_for_each_many_vars' of https://github.com/wright-group/WrightTools into norm_for_each_many_vars
2 parents c9f0561 + 41d876a commit 7b2240b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

WrightTools/data/_data.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,10 @@ def norm_for_each(
794794
if not isinstance(new_channel, dict):
795795
new_channel = {}
796796
self.create_channel(
797-
new_channel.pop("name", f"{channel.natural_name}_norm_{''.join([f'v{self.variable_names.index(v.natural_name)}' for v in variables])}"),
797+
new_channel.pop(
798+
"name",
799+
f"{channel.natural_name}_norm_{''.join([f'v{self.variable_names.index(v.natural_name)}' for v in variables])}"
800+
),
798801
values=new,
799802
**new_channel,
800803
)

tests/data/norm_for_each.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def test_two_norms():
2626
assert np.all(data.channels[0][:].max(axis=0) == 1)
2727

2828

29-
3029
if __name__ == "__main__":
3130
test_3D()
3231
test_two_norms()

0 commit comments

Comments
 (0)