[msschem] Add pressure contours to MSSChem hsects
[This replaces https://bitbucket.org/andreas-h/mss/issues/2]
I would like to add pressure countour lines to the hsec styles for MSSChem. However, I was a bit unsure how to do this in a robust way. The problem is that for some CTMs, there are no pressure information. So the HS_MSSChemStyle
objects would need to know a way to know if they're being used with a model for which pressure data are available or not.
Is there a way in which I can access the DataAccess
class with which a HS_MSSChemStyle
is being used?
Comments (8)
-
reporter -
- changed milestone to 1.4.0
- marked as enhancement
-
-
assigned issue to
-
assigned issue to
-
Each plotting style has access to the DataAccess object via the plotting driver: self.driver.data_access With respect to the pressure contours, the simplest way would be to define two different Styles with and without pressure contours, as can be rather easily done using the class-generator you copied from our generic plotting style. Identifying the availability of data on the fly would indeed be a nice feature. This would require some restructuring of the current data providing infrastructure.
-
reporter fixed by pull request #299 and pull request #296
-
- changed status to resolved
-
- changed status to open
-
- changed status to resolved
fixed by pull request #299 and pull request #296
- Log in to comment
Similarly, I would like to add the model's name to the plot title. Again, this only seems possible if from the
HS_MSSChemStyle
object I can access theDataAccess
object.