﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	notify_on_close	platform	project
699	core.commands.rename issues	Tristan Croll	Eric Pettersen	"If I create an empty model first:

{{{
from chimerax.core.models import Model
m = Model('test', session)
session.models.add([m])
}}}

... then load a structure via the gui, and in the command line do:


{{{
rename #2 id 1
}}}

... then I get the following error:


{{{
Error processing trigger ""frame drawn""
Traceback (most recent call last):
File ""/home/tic20/apps/chimerax/lib/python3.6/site-packages/chimerax/core/triggerset.py"", line 126, in invoke
return self._func(self._name, data)
File ""/home/tic20/apps/chimerax/lib/python3.6/site-packages/chimerax/model_panel/tool.py"", line 147, in _fill_tree
item.setText(self.ID_COLUMN, model_id_string)
AttributeError: 'NoneType' object has no attribute 'setText'
}}}

If I load two structures after adding the Model to the session and do

{{{
rename #3 id 1
}}}

... or the structure is loaded before the Model is added to the session and I do

{{{
rename #1 id 2
}}}

... then it seems to work fine. 

Also, 


{{{
rename #{n} newname
}}}

... fails to update the name in the Models panel.


Finally, a request: would it be possible to add a function essentially equivalent to change_model_id, that allows re-parenting to a model that hasn't yet been added to the session? I'm using the session.triggers 'add models' trigger in downstream code, and that expects the hierarchy under the new parent model to be complete at the point it's added to the session."	defect	closed	minor		Sessions		fixed		Tom Goddard				all	ChimeraX
