Skip to content

Create a structure for the GEMDAT tool #10

@v1kko

Description

@v1kko

It might look something like this:

option 1

  • GEMDAT
    • plot_all
    • plot_1
    • plot_2
    • plot_3
from GEMDAT import plot_1, plot_all
plot_1(<data_and_config>)
plot_all(<data_and_config>)

Or something like this:

option 2

  • GEMDAT
    • plot(<data_and_config>, )
    • plots
      • plot_1(<data_and_config>)
      • plot_2(<data_and_config>)
from GEMDAT import plot
plot(<data_and_config>, ['diffusivity', 'MSD'])  
from GEMDAT.plots import plot_diffusivity
plot_diffusivity(<data_and_config>)

data_and_config:
There will probably be the need to adjust plots with some configuration (splitting into x number of multiple smaller simulations, or cutting away the first few timesteps). I think it would be okay to just pass those through **kwargs and let all plot functions accept **kwargs, so they can extract those keywords that they will use.
All the possible keywords should be listed in the plot (or plot_all for option 1) function, but how they are implemented can be explained in the specific plot_xxx function.


I prefer option two, what are your thoughts about this, @stefsmeets ?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions