Releases: sim-agent/json2ciw
Releases · sim-agent/json2ciw
v0.10.0
Added renege functionality to the JSON schema and ciw converter engine.
Changed
ProcessModel.to_mermaid()refactored. Refactored distribution formatting to function. Added Renege as hexagon with dashed arrow.ProcessModel.get_distributions_df()now handles renege distributionsengine.CiwConverternow handles renege distributions as part ofgenerate_paramsuimodified to handle renege distributions.example_app.pynew models demonstrating renege have been added.
Added
schema.Activitynow has a optionalrenege_distributionfield.- Two new examples in
datasets:load_mm1_renege_modelandload_renege_call_model 04_call_centre_renege.ipynbexample notebook added.
v0.9.0
v0.8.1
v0.8.0
Added
six_node_ucc.json- a simple version of the 6 node treat-sim urgent care treatment centre example with stationary arrivals.example_app.py: added the example treatment centre model.03_urgent_care_treatment_centre_example.ipynb- example of converting treat-sim json2ciw
Changed
engine.CiwConverter._normal_moments_from_lognormalupdated to static method.
Removed
03_three_node_network_example.ipynbnotebook not needed and removed.
Fixed
uipatched so that mean and sd of lognormal is converted to underlying normal before passing toupdated_params
v0.7.0
0.7.0
Added
three_node_network.json: example that modifies the basic jackson network and uses lognormal and normal service distributions in v0.7.0example_app.py: added three node example
Changed
schema.Distributionnow supports "normal" with sample mean and std (ciwauto truncates normal at 0)engine.CiwConverterupdated to handleciwnormal distribution. Handles standard deviation parameter when expressed as "std", "sd" or "var" using_extract_std()method.
Fixed
engine.CiwConverterupdated handling log normal. Fixed incorrect parameter "standard_deviation". Should have been "sd".jackson_network.json: updated activity "type" parameter to "activity".
v0.6.0
Changed
schema.Distributionnow supports "lognormal" with sample mean and std along with "gamma" (shape, scale)engine.CiwConverterupdated to handleciwlognormal and gamma distributions. Lognormal parameters converted to mu and sigma of underlying normal.
Fixed
- Included missing distribution type in
json2ciwapp sidebar. - Service distribution now displays mean parameter for the exponential distribution.
v0.5.0
Added
datasets.load_jackson_network_model()to load a open jackson network model in JSON format to convert into aProcessModelProcessModelhas new methodsget_distributions_dfandget_routing_matrix_dfto help with face validation of model.
Changed
app.pyupdated the app to switch dynamically between models.
v0.4.0
Added
json2ciw.uiandrender_simulation_appfunction to automatically create a basic streamlit dashboard interface for a json schema andciwmodel.tidy_to_wide_formatfunction added toresultsmodule. This provides quick conversion of the tidy format replications data frommultiple_replicationsto wide format.
Changed
- Added
streamlitas package dependency. - Added
plotlyas package dependency.
v0.3.0
json2ciw is sotfware to convert a pydantic specified JSON schema to a functioning ciw discrete-event simulation model.
Changed
engine.CiwConvertercan now handle "Exponential" being passed with mean or rate parameters. If mean is passed them rate is calculated as1/mean.schemaa.ProcessModel.to_mermaid()updated to handle mean and rate.engine.multiple_replicationsnow runs using parallel replications forciw(implemented usingjoblib).pyproject.tomlandenvironment.ymlupdated to includejoblibdependency.
Fixed
pyproject.tomlupdated to include missingpydanticdependency.environment.ymlupdated to include missingrichdependency.call_centre.jsoninter-arrival distribution fixed to usemeanas parameter rather thanrate.