polymerist.polymers.exceptions
Custom Exceptions specific to Polymers and related objects
Exceptions
Raised when the polymer molecule being built is too short |
|
Raised when the polymer molecule being built is too long |
|
Raised to indicate there are more end groups present in a chain than are monomer possibly allowed |
|
Raised when a polymer does not have the morphology (i.e. crosslinking, molecular weight, etc) an application expects |
|
Raised when a trivial sequence of copolymer block (i.e. the empty string "") is provided when no expected |
|
Raised when an non-whole number of copolymer blocks is needed to reach a target chain length (and is not allowed) |
|
Raised when attempting to add solvent to a molecule which already has solvent |
|
Raised when attempting to merge two objects which disagree on their charging status |
|
Raised when a managed molecule has no associated structure file (e.g. PDB, SDF, etc.) |
|
Raised when no monomer fragment information is found for a Polymer |
Module Contents
- exception polymerist.polymers.exceptions.InsufficientChainLength[source]
Bases:
ExceptionRaised when the polymer molecule being built is too short
- exception polymerist.polymers.exceptions.ExcessiveChainLength[source]
Bases:
ExceptionRaised when the polymer molecule being built is too long
- exception polymerist.polymers.exceptions.EndGroupDominatedChain[source]
Bases:
ExceptionRaised to indicate there are more end groups present in a chain than are monomer possibly allowed
- exception polymerist.polymers.exceptions.MorphologyError[source]
Bases:
ExceptionRaised when a polymer does not have the morphology (i.e. crosslinking, molecular weight, etc) an application expects
- exception polymerist.polymers.exceptions.EmptyBlockSequence[source]
Bases:
ExceptionRaised when a trivial sequence of copolymer block (i.e. the empty string “”) is provided when no expected
- exception polymerist.polymers.exceptions.PartialBlockSequence[source]
Bases:
ExceptionRaised when an non-whole number of copolymer blocks is needed to reach a target chain length (and is not allowed)
- exception polymerist.polymers.exceptions.AlreadySolvated[source]
Bases:
ExceptionRaised when attempting to add solvent to a molecule which already has solvent
- exception polymerist.polymers.exceptions.ChargeMismatch[source]
Bases:
ExceptionRaised when attempting to merge two objects which disagree on their charging status