Changelog for v.0.8.x#
v.0.8.5#
Issue fixes.
Modified the string representations (__repr__) for some nodes. Added a printDebugInfo function to some classes which prints some debug info from SAMSON to C++ standard output (stdout) that can be checked with the Log Viewer Element.
Below are listed the changes in the Python Scripting API per sub-module.
DataModel#
DataModel.Quantity#
Renamed str function to toString function.
DataModel.DataGraph#
Node
Class: samson.DataModel.DataGraph.Node.
Added
setColorScheme- a convenience function that directly sets the color scheme to a node.Removed
addMaterialin favor ofsetMaterial.Modified
DataModel.DataGraph.NodeIndexer.getRootNodes().
Group
Class: samson.DataModel.DataGraph.Group.
Added
samson.DataModel.DataGraph.Group.getGroupNodes()
DataModel.Document#
Document
Class: samson.DataModel.Document.Document.
Added
samson.DataModel.Document.Document.getSelectedNodes().
Folder
Class: samson.DataModel.Document.Folder.
Fixed exposures for the following functions:
getChildren,getFolderList,getModelList,getStructuralModelList,getVisualModelList,getDynamicalModelList,getInteractionModelList,getPropertyModelList,getSimulatorList,getControllerList,getNodeGroupList,getConformationList,getPathList,getLabelList,getCameraList.
Modeling#
Modeling.Element#
ElementTable
Class: samson.Modeling.Element.ElementTable.
Fixes in the class: all functions and properties are now static.
Element
Class: samson.Modeling.Element.Element.
The
colorCPKproperty now returnssamson.DataModel.Color.Color.
Modeling.StructuralModel#
StructuralModel
Class: samson.Modeling.StructuralModel.StructuralModel.
Added
samson.Modeling.StructuralModel.StructuralModel.getChildren().
Conformation
Class: samson.Modeling.StructuralModel.Conformation.
Fixed exposure for
samson.Modeling.StructuralModel.Conformation.getStructuralParticleIndexer().Function
getNumberOfStructuralParticleschanged tonumberOfStructuralParticlesproperty.
Atom
Class: samson.Modeling.StructuralModel.Atom.
Fixed exposure for
samson.Modeling.StructuralModel.Atom.getBondList().
Grid
Class: samson.Modeling.StructuralModel.Grid.
Fixed exposure for
samson.Modeling.StructuralModel.Conformation.getNeighborIndexer().
Modeling.DynamicalModel#
Fixes in functions returning and receiving Type objects for a number of classes.
RigidBodySystem
Class: samson.Modeling.DynamicalModel.RigidBodySystem.
Added
samson.Modeling.DynamicalModel.RigidBodySystem.getPosition(),samson.Modeling.DynamicalModel.RigidBodySystem.setPosition().
ParticleSystem
Class: samson.Modeling.DynamicalModel.ParticleSystem.
Added
samson.Modeling.DynamicalModel.ParticleSystem.removeParticles().
v.0.8.4#
GUI#
Class Action (samson.GUI.Action.Action) was moved from samson.GUI to samson.GUI.Action sub-module.
Modeling#
Modeling.Model#
Class
SBMModelrenamed toModel(samson.Modeling.Model.Model);Class
SBMModelNoderenamed toModelNode(samson.Modeling.Model.ModelNode).
Modeling.StructuralModel#
Class
NodeParticlerenamed toParticle(samson.Modeling.StructuralModel.Particle).
Core#
Core.Class#
Class
SBCClassrenamed toClass(samson.Core.Class.Class)
Core.Reference#
Class
SBCReferenceTargetrenamed toReferenceTarget(samson.Core.Reference.ReferenceTarget).
v.0.8.3#
No changes in public API.
v.0.8.2#
Fixes in some docstrings.
No changes in public API.
v.0.8.1#
DataModel#
DataModel.Type#
samson.DataModel.Type: fixed some issues with unit types.
DataModel.Quantity#
samson.DataModel.Quantity: exposed mathematical functions for units, e.g.: fabs, floor, ceil, round, pow, sqrt, root, exp, log, sin, asin, …
v.0.8.0#
Major changes according to changes in SAMSON SDK 0.8.0. The SAMSON 0.8.0 release brings major changes in SAMSON and SAMSON SDK. It also improves stability and fixes known issues.
Below are listed the changes in the Python Scripting API per sub-module.
Facade#
Facade.SAMSON#
The getActiveModel function has been renamed to getActiveStructuralModel (samson.Facade.SAMSON.getActiveStructuralModel).
New/updated functions:
samson.Facade.SAMSON.importFromFile()function now receives apreferredFolderinstead of apreferredLayer;samson.Facade.SAMSON.setActiveStructuralModel()get node at a particular (x, y) position (
getAtom,getBond,getNode);get nodes in a rectangle
getNodes.
DataModel#
DataModel.Type#
samson.DataModel.Type: small changes and issue fixes.
DataModel.Document#
Folder
Class: samson.DataModel.Document.Folder
samson.DataModel.Document.Layer has been changed to samson.DataModel.Document.Folder.
Layer has been changed to a more general Folder (samson.DataModel.Document.Folder). A Folder object can contain almost any node types, including other folders. Any usage of an active layer (samson.Facade.SAMSON.getActiveLayer()) should be modified to e.g. an active document (samson.Facade.SAMSON.getActiveDocument()). Any other usages of an Layer should be modified to use either a Folder or an active document.
Folder (samson.DataModel.Document.Folder) has parts of the Layer functionality and some new functionality e.g. get lists of nodes of different types.
Document
Class: samson.DataModel.Document.Document.
New functionality:
getActiveCamerasetActiveCameragetActiveStructuralModelsetActiveStructuralModelcreateGroupgroupSelectionselectGroupNodesaddGroupNodesToSelectionremoveGroupNodesFromSelectionintersectGroupNodesWithSelection
Camera
Class: samson.DataModel.Document.Camera.
New/updated functionality:
transform;center- centers the camera around nodes in the provided node indexer (samson.DataModel.DataGraph.NodeIndexer).
DataModel.DataGraph#
Node
Class: samson.DataModel.DataGraph.Node.
New/updated functionality:
getNextNodegetPreviousNodegetDocumentcanAddChildcanAddChildTypeisOneOfisTypeisModelisStructuralModelisVisualModelisDynamicalModelisInteractionModelisPropertyModelisSimulatorisStructuralParticle
These changes also affect all classes derived from the samson.DataModel.DataGraph.Node class i.e.: samson.DataModel.Document.Folder.html, samson.Modeling.StructuralModel.StructuralModel.html, samson.Modeling.StructuralModel.Group.html, samson.Modeling.StructuralModel.Molecule.html, samson.Modeling.StructuralModel.Residue.html, samson.Modeling.StructuralModel.Backbone.htm, samson.Modeling.StructuralModel.Particle.html, samson.Modeling.StructuralModel.Atom.html, etc.
NodeIndexer
Class: samson.DataModel.DataGraph.NodeIndexer.
New functionality:
samson.DataModel.DataGraph.NodeIndexer.getRootNodes()
Modeling#
Modeling.StructuralModel#
Root
Class: samson.Modeling.StructuralModel.Root.
The structural root (samson.Modeling.StructuralModel.Root) is now hidden and implicit. When creating a structural model (samson.Modeling.StructuralModel.StructuralModel) it is not necessary anymore to add it to the structural root of a Document (samson.DataModel.Document.Document), it will be done implicitly.
Path
Class: samson.Modeling.StructuralModel.Path.
Major changes in the samson.Modeling.StructuralModel.Path class:
Setter and getter functions for position, velocity, and force data have been changed from 1d arrays to 2d arrays; functions have been updated accordingly:
setPositionArraymodified and renamed tosetPositionDatagetPositionArraymodified and renamed togetPositionDatasetVelocityArraymodified and renamed tosetVelocityDatagetVelocityArraymodified and renamed togetVelocityDatasetForceArraymodified and renamed tosetForceDatagetForceArraymodified and renamed togetForceDatasetEnergyArraymodified and renamed tosetEnergyDatagetEnergyArraymodified and renamed togetEnergyDatasetTimeArraymodified and renamed tosetTimeDatagetTimeArraymodified and renamed togetTimeData
New functionality:
add, insert, and remove
Particle(samson.Modeling.StructuralModel.Particle):addStructuralParticle,insertStructuralParticle,removeStructuralParticle;add, insert, remove, and copy frames:
add,insert,remove,copy;create
Conformation(class:samson.Modeling.StructuralModel.Conformation) fromPath:createConformation,createConformations;create
StructuralModel(samson.Modeling.StructuralModel.StructuralModel) fromPath:createStructuralModels;change the stride of the
Pathanimation:strideattribute.
Conformation
Class: samson.Modeling.StructuralModel.Conformation.
Renamings:
getNumberOfPositionsrenamed togetNumberOfStructuralParticles;getAtomIndexerrenamed togetStructuralParticleIndexer.
New/updated functionality:
createStructuralModels- create structural models from this conformation;getter and setter functions for position data:
getPositionDataandsetPositionData;getter and setter functions for velocity data:
getVelocityDataandsetVelocityData;getter and setter functions for force data:
getForceDataandsetForceData;getter and setter functions for energy:
getEnergyandsetEnergy;getter and setter functions for time:
getTimeandsetTime;getter and setter functions for position of a structural particle:
getPositionandsetPosition;getter and setter functions for velocity of a structural particle:
getVelocityandsetVelocity;getter and setter functions for force of a structural particle:
getForceandsetForce.
Residue
Class: samson.Modeling.StructuralModel.Residue.
New functionality:
samson.Modeling.StructuralModel.setSecondaryStructureType()- allows you to set the secondary structure type.