Opened 9 years ago

Closed 9 years ago

#451 closed defect (fixed)

cellpack fails creating surface

Reported by: Greg Couch Owned by: Tom Goddard
Priority: blocker Milestone:
Component: Higher-Order Structure Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

Traceback (most recent call last):
  File "/home/gregc/src/chimerax/ChimeraX.app/lib/python3.5/site-packages/chimerax/core/ui/nogui.py", line 186, in execute
    self._cmd.run(text)
  File "/home/gregc/src/chimerax/ChimeraX.app/lib/python3.5/site-packages/chimerax/core/commands/cli.py", line 2206, in run
    results.append(ci.function(session, **kw_args))
  File "/home/gregc/src/chimerax/ChimeraX.app/lib/python3.5/site-packages/chimerax/core/commands/open.py", line 76, in open
    format=format, name=name, ignore_cache=ignore_cache, **kw)
  File "/home/gregc/src/chimerax/ChimeraX.app/lib/python3.5/site-packages/chimerax/core/fetch.py", line 258, in fetch_from_database
    models, status = df.fetch(session, id, format=format, ignore_cache=ignore_cache, **kw)
  File "/home/gregc/src/chimerax/ChimeraX.app/lib/python3.5/site-packages/chimerax/core/fetch.py", line 299, in fetch
    return fetch(session, database_id, ignore_cache=ignore_cache, **kw)
  File "/home/gregc/src/chimerax/ChimeraX.app/lib/python3.5/site-packages/chimerax/cellpack/fetch_cellpack.py", line 23, in fetch_cellpack
    surf = fetch_autopack(session, path, cellpack_id, database, ignore_cache)
  File "/home/gregc/src/chimerax/ChimeraX.app/lib/python3.5/site-packages/chimerax/cellpack/fetch_cellpack.py", line 99, in fetch_autopack
    isurf = read_apr.create_surface(session, mesh_path, ingr_name, placements)
  File "/home/gregc/src/chimerax/ChimeraX.app/lib/python3.5/site-packages/chimerax/cellpack/read_apr.py", line 81, in create_surface
    d.colors = copy_colors(d.colors, len(p))
  File "/home/gregc/src/chimerax/ChimeraX.app/lib/python3.5/site-packages/chimerax/cellpack/read_apr.py", line 94, in copy_colors
    c[:] = colors
ValueError: could not broadcast input array from shape (25,4) into shape (625,4)

Change History (1)

comment:1 by Tom Goddard, 9 years ago

Resolution: fixed
Status: newclosed

Fixed.

Incorrect numpy code to make several copies of a color array.

Note: See TracTickets for help on using tickets.