musicode:start
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
musicode:start [2021/12/02 11:48] – created bp | musicode:start [2023/12/07 02:06] (current) – [Setting up Model Server] stanislavsulc | ||
---|---|---|---|
Line 6: | Line 6: | ||
==== Prerequisites ==== | ==== Prerequisites ==== | ||
- | * MuPIF Installation, | + | * MuPIF Installation |
+ | * | ||
==== Connecting to MuPIF infrastructure ==== | ==== Connecting to MuPIF infrastructure ==== | ||
Line 20: | Line 21: | ||
==== MuPIF Services ==== | ==== MuPIF Services ==== | ||
- | * Platform online monitor | + | * Platform online monitor |
+ | * Model API generator https:// | ||
+ | |||
+ | ==== Changelog of Important MuPIF updates (in chronological order) === | ||
+ | |||
+ | 1. 1. 2022 | ||
+ | * Instead of PropertyID, FieldID, ParticleSetID, | ||
+ | * meatadata Inputs contain key " | ||
+ | * In initialize() function the argument " | ||
+ | * Only generalized set() and get() functions can be used. Functions setProperty, | ||
+ | |||
+ | 9. 2. 2022 | ||
+ | * Obj_ID in Inputs/ | ||
+ | * For Type mupif.Property in Inputs/ | ||
+ | |||
+ | 18. 5. 2022 | ||
+ | * The workflow metadata contain item " | ||
+ | * The default value of metadata argument in the initialize function was changed to None. | ||
+ | |||
+ | ==== Setting up Model Server ==== | ||
+ | |||
+ | Assuming we have a properly implemented model class named ' | ||
+ | < | ||
+ | import mupif as mp | ||
+ | from model_example import ClassnameOfModel | ||
+ | </ | ||
+ | Then we locate the nameserver with | ||
+ | < | ||
+ | ns = mp.pyroutil.connectNameServer(nshost=' | ||
+ | </ | ||
+ | Then the script contains a code, which creates a jobmanager instance with given parameters, runs it and registers it on the nameserver. The maxJobs is an optional parameter specifying how many remote model instances can exist at the same time. | ||
+ | < | ||
+ | mp.SimpleJobManager( | ||
+ | ns=ns, | ||
+ | appClass=ClassnameOfModel, | ||
+ | appName=' | ||
+ | jobManWorkDir=' | ||
+ | maxJobs=5 | ||
+ | ).runServer() | ||
+ | </ | ||
+ | After this script is executed, the jobmanager can be obtained from the nameserver by its name ' | ||
+ | |||
+ | |||
+ | ==== Interaction with test jobmanager ==== | ||
+ | |||
+ | An existing jobmanager " | ||
+ | < | ||
+ | MUPIF_NS=172.22.2.1: | ||
+ | </ | ||
+ | It asks the given nameserver for the jobmanager named " | ||
+ | |||
+ | ==== Getting help ==== | ||
+ | |||
+ | * The preferred way to get support from CVUT Team is to create a new ticket on GitHub (https:// |
musicode/start.1638442098.txt.gz · Last modified: 2021/12/02 11:48 by bp