Giter Site home page Giter Site logo

cadnano2's People

Contributors

alextessier avatar grinner avatar jjoonathan avatar leemiadsk avatar matthewmcateer avatar sdouglas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cadnano2's Issues

Paint tool colors not saving

  1. Set colors in paint tool
  2. Switch back to select tool
  3. Switch back to paint tool

The colors are reset back to Black and Red.

Slice View inconsistency with crossovers

  1. Click Cadnano
  2. Click Honeycomb
  3. Add two adjacent scaffold strands
  4. Add a crossover
  5. Remove the non-crossed over scaffold strands

Note that the slice view thinks that the virtual helix is empty, and allows you to click and create another scaffold strand, even though it's already occupied.

Error log, trying to delete wrong object number

  1. Created 2 shaped:
  • DNAShapeTransform_1
    • DNACylinderShape_1
  • DNAShapeTransform_2
    • DNACylinderShape_2
  1. Select both
    select -r DNAShapeTransform_1 DNAShapeTransform_2 ;

  2. delete; (* please ignore the line numbers)

Traceback (most recent call last):
File "C:\cadnano2b\views\solidview\stranditem.py", line 171, in strandHasNewOligoSlot
self.updateColor(mID, strand.oligo().color())
File "C:\cadnano2b\views\solidview\stranditem.py", line 323, in updateColor
cmds.sets(meshName, forceElement="%sSG" % shaderName)
ValueError: No object matches name: DNACylinderShape_3

Is trying to delete the wrong object

Seems like inside file removeMsgCmd

def dagParentRemovedCallback(child, parent, clientData):

mom.removeIDMapping(mID, strand)

this line seems causing the issue in somehow.

thanks

Thiago

Deleting and reconstructing crossovers causes crash

  1. Open Maya
  2. Open Script Editor
  3. Click CadNano
  4. Click Honeycomb
  5. Add 2 adjacent scaffold strands
  6. Extend the strands all the way to the right
  7. Add a crossover on the right (Creating a C with the right strands)
  8. Delete the top left strand
  9. Click on the crossover point on the top strand to break the crossover
  10. Click again
// Warning: line 1: Nothing is selected. Select objects or components to delete. // 
# Traceback (most recent call last):
#   File "c:\git\cadnano2\views\pathview\pathselection.py", line 261, in itemChange
#     self.setParentItem(self.selectionbox.boxParent())
#   File "c:\git\cadnano2\views\pathview\pathselection.py", line 491, in boxParent
#     temp = self._itemGroup.childItems()[0].partItem()
#   File "c:\git\cadnano2\views\pathview\strand\stranditem.py", line 254, in partItem
#     return self._virtualHelixItem.partItem()
# AttributeError: 'NoneType' object has no attribute 'partItem'
# Traceback (most recent call last):
#   File "c:\git\cadnano2\views\pathview\pathselection.py", line 261, in itemChange
#     self.setParentItem(self.selectionbox.boxParent())
#   File "c:\git\cadnano2\views\pathview\pathselection.py", line 491, in boxParent
#     temp = self._itemGroup.childItems()[0].partItem()
#   File "c:\git\cadnano2\views\pathview\strand\endpointitem.py", line 130, in partItem
#     return self._strandItem.partItem()
#   File "c:\git\cadnano2\views\pathview\strand\stranditem.py", line 254, in partItem
#     return self._virtualHelixItem.partItem()
# AttributeError: 'NoneType' object has no attribute 'partItem'
# Traceback (most recent call last):
#   File "c:\git\cadnano2\views\pathview\strand\endpointitem.py", line 200, in mousePressEvent
#     getattr(self, toolMethodName)(modifiers, event, self.idx())  # call tool method
#   File "c:\git\cadnano2\views\pathview\strand\endpointitem.py", line 345, in selectToolMousePress
#     selectionGroup.processPendingToAddList()
#   File "c:\git\cadnano2\views\pathview\pathselection.py", line 123, in processPendingToAddList
#     item.modelSelect(doc)
#   File "c:\git\cadnano2\views\pathview\strand\endpointitem.py", line 488, in modelSelect
#     test = document.isModelStrandSelected(strand)
#   File "c:\git\cadnano2\model\document.py", line 147, in isModelStrandSelected
#     sS = strand.strandSet()
# AttributeError: 'NoneType' object has no attribute 'strandSet'
# Traceback (most recent call last):
#   File "c:\git\cadnano2\views\customqgraphicsview.py", line 406, in mouseReleaseEvent
#     self._selectionLock.processPendingToAddList()
#   File "c:\git\cadnano2\views\pathview\pathselection.py", line 123, in processPendingToAddList
#     item.modelSelect(doc)
#   File "c:\git\cadnano2\views\pathview\strand\endpointitem.py", line 488, in modelSelect
#     test = document.isModelStrandSelected(strand)
#   File "c:\git\cadnano2\model\document.py", line 147, in isModelStrandSelected
#     sS = strand.strandSet()
# AttributeError: 'NoneType' object has no attribute 'strandSet'

Removing/Adding strand causes strandSet inconsistency

  1. Open Maya
  2. Open Script Editor
  3. Click CadNano button
  4. Add a scaffold strand
  5. Delete the strand in 2D view
  6. Add the scaffold strand back
  7. Resize the strand
# Traceback (most recent call last):
#   File "c:\git\cadnano2\views\pathview\strand\endpointitem.py", line 200, in mousePressEvent
#     getattr(self, toolMethodName)(modifiers, event, self.idx())  # call tool method
#   File "c:\git\cadnano2\views\pathview\strand\endpointitem.py", line 345, in selectToolMousePress
#     selectionGroup.processPendingToAddList()
#   File "c:\git\cadnano2\views\pathview\pathselection.py", line 123, in processPendingToAddList
#     item.modelSelect(doc)
#   File "c:\git\cadnano2\views\pathview\strand\endpointitem.py", line 488, in modelSelect
#     test = document.isModelStrandSelected(strand)
#   File "c:\git\cadnano2\model\document.py", line 147, in isModelStrandSelected
#     sS = strand.strandSet()
# AttributeError: 'NoneType' object has no attribute 'strandSet'
# Traceback (most recent call last):
#   File "c:\git\cadnano2\views\customqgraphicsview.py", line 406, in mouseReleaseEvent
#     self._selectionLock.processPendingToAddList()
#   File "c:\git\cadnano2\views\pathview\pathselection.py", line 123, in processPendingToAddList
#     item.modelSelect(doc)
#   File "c:\git\cadnano2\views\pathview\strand\endpointitem.py", line 488, in modelSelect
#     test = document.isModelStrandSelected(strand)
#   File "c:\git\cadnano2\model\document.py", line 147, in isModelStrandSelected
#     sS = strand.strandSet()
# AttributeError: 'NoneType' object has no attribute 'strandSet'

Selection box missing when redoing after delete all

  1. Create multiple strands.
  2. Select all strands
  3. Delete.
  4. Undo until it's a blank document
  5. Press and hold Ctrl+Shift+Z to redo

// Error: underlying C/C++ object has been deleted
Traceback (most recent call last):
File "c:/git/cadnano2/controllers/mayacontrollers/mayaSelectionContex.py", line 93, in selectionCallback
m.strandsSelected(helixList)
File "c:\git\cadnano2\controllers\mayacontrollers\mayaObjectManager.py", line 156, in strandsSelected
doc.win.pathroot.clearStrandSelections()
File "c:\git\cadnano2\views\pathview\pathrootitem.py", line 193, in clearStrandSelections
self._strandItemSelectionGroup.clearSelection(False)
File "c:\git\cadnano2\views\pathview\pathselection.py", line 237, in clearSelection
self.selectionbox.hide()
RuntimeError: underlying C/C++ object has been deleted //

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.