cellpy icon indicating copy to clipboard operation
cellpy copied to clipboard

Optional loading of user prms

Open jepegit opened this issue 4 years ago • 1 comments

Loading the prms (the user config file) should not be done if cellpy is used purely as a library. Only the following "API"s should load as default:

# the cellpy get function
cellpy.get()

# the batch utility
b = batch.init()

# other "large" utilities (when they get implemented), for example
cellpy.live()  # monitor (a) running experiment(s)

# most likely the easyplot should also load the prms
cellpy.utils.easyplot()

jepegit avatar Aug 07 '21 20:08 jepegit

Consider splitting core cellpy features and utils etc


# Using cellpy only as a library:
import cellpy  # only imports core

# Using cellpy as an app:
import cellpy.something as clp  # matplotlib-like solution - loads prms etc
# or
cellpy.init() # or somthing similar - loads prms etc

@asbjorul: what do you think?

jepegit avatar Mar 09 '23 10:03 jepegit