jepegit / cellpy

extract and tweak data from electrochemical tests of cells
MIT License
85 stars 31 forks source link

Optional loading of user prms #165

Open jepegit opened 3 years ago

jepegit commented 3 years ago

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 commented 1 year ago

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?