Skip to content

Commit

Permalink
ENH UTS dimension: expose name
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbrodbeck committed Jun 2, 2021
1 parent a1d03dd commit cbfd801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eelbrain/_data_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -10519,8 +10519,8 @@ class UTS(Dimension):
_default_connectivity = 'grid'
_tol = 0.000001 # tolerance for deciding if time values are equal

def __init__(self, tmin: float, tstep: float, nsamples: int, unit: str = 's'):
Dimension.__init__(self, 'time', 'grid')
def __init__(self, tmin: float, tstep: float, nsamples: int, unit: str = 's', name: str = 'time'):
Dimension.__init__(self, name, 'grid')
self.tmin = float(tmin) # Python float has superior precision
self.tstep = float(tstep)
self.nsamples = int(nsamples)
Expand Down

0 comments on commit cbfd801

Please sign in to comment.