Skip to content

Commit 3116b05

Browse files
author
Dilawar Singh
committed
Removed melement.
1 parent 8baffdc commit 3116b05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/moose/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,9 @@ def setDefaultDt(elecdt=1e-5, chemdt=0.01, tabdt=1e-5, plotdt1=1.0, plotdt2=0.25
482482
moose.setClock(9, plotdt2) # electrical sim
483483

484484
def assignDefaultTicks(modelRoot='/model', dataRoot='/data', solver='hsolve'):
485-
if isinstance(modelRoot, moose.melement) or isinstance(modelRoot, moose.vec):
485+
if not isinstance(modelRoot, str):
486486
modelRoot = modelRoot.path
487-
if isinstance(dataRoot, moose.melement) or isinstance(dataRoot, moose.vec):
487+
if not isinstance(dataRoot, str):
488488
dataRoot = dataRoot.path
489489
if solver != 'hsolve' or len(moose.wildcardFind('%s/##[ISA=HSolve]' % (modelRoot))) == 0:
490490
moose.useClock(0, '%s/##[ISA=Compartment]' % (modelRoot), 'init')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy