[msschem] Add pressure contours to MSSChem hsects

Issue #164 resolved
Andreas Hilboll created an issue

[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)

  1. Andreas Hilboll reporter

    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 the DataAccess object.

  2. Joern Ungermann

    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.

  3. Log in to comment