Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3eed788

Browse files
authoredJul 16, 2019
Adjust sensor init (magpylib#206)
* Remove double axis check * capitalize test for Sensor class
1 parent 0189fd7 commit 3eed788

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed
 

‎magpylib/_lib/classes/sensor.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ class Sensor(RCS):
3232
"""
3333

3434
def __init__(self, pos=[0, 0, 0], angle=0, axis=[0, 0, 1]):
35-
assert any(
36-
ax != 0 for ax in axis), "Invalid Axis input for Sensor (0,0,0)"
3735
RCS.__init__(self, pos, angle, axis)
3836

3937
def __repr__(self):
File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.