Forum Replies Created
-
AuthorPosts
-
Leonardo Frid
KeymasterJust a follow-up: when expanding the details of the message there was an additional note “The given key was not present in the dictionary.” My apologies that this is not the most informative error. In the case of your library it appears that there are scenarios referencing a project that does not exist in the library. Somehow it looks like the project got deleted but the scenarios did not. Is this a library that was accessible on a network via multiple users? One possible use case leading to this problem is multiple users making edits to the library at the same time.
Leonardo Frid
KeymasterHi Kevin, Please send us the library and let us know what versions of SyncroSim and packages you are using.
Leonardo Frid
KeymasterThe steps to run an External Program using a Python script are similar to the above example, with a few minor changes outlined below.
The example was created using the following software and packages:
- SyncroSim version 2.4.10
- ST-Sim version 3.3.9
- Python version 3.10.6
- Python packages (Note these need to be pre-installed using conda or pip):
- pysyncrosim version 1.0.19
- pandas version 1.5.1
- numpy version 1.23.4
- rasterio version 1.3.3
You can use the same ST-Sim Library as the above example. However, you will also need to download the external program Python script example here.
Update the External Program Datasheet within the Scenario Properties to include your Python executable file and Python script.
Follow the remaining instructions above to retrieve the desired outputs.
-
This reply was modified 4 months, 2 weeks ago by
Katie Birchard.
-
This reply was modified 4 months, 2 weeks ago by
Leonardo Frid.
-
This reply was modified 4 months, 2 weeks ago by
Katie Birchard.
Leonardo Frid
KeymasterNote that you will need the latest SyncroSim release (2.4.10).
Leonardo Frid
KeymasterHi David,
There is a Beta version (0.3.4) now available. You can find more info, and a Getting Started tutorial here:
https://burnp3.github.io/BurnP3Plus/getting_started.htmlCheers,
LeonardoLeonardo Frid
KeymasterThanks for reaching out David. We are planning for a Beta release by October 28th, 2022. Will let you know when it is ready.
September 16, 2022 at 7:00 pm in reply to: Dispersal less than cell size, spread distribution from center or edge? #21200Leonardo Frid
KeymasterHi Anthony,
Sarah is correct, spread distance is accumulated over time for each possible source and destination cell combination. ST-Sim uses the age of the source cell as a proxy for how much time has elapsed and hence how many draws to make from the spread distribution for each source/destination vector. For this reason, the initial age of the source cells is important. In your simulations you will see spread happening soonest to neighbors of the oldest source cells. Spread distance is calculated from center to center. When this distance threshold is exceeded, the destination cell will transition.
Regards,
LeonardoAugust 24, 2022 at 5:42 pm in reply to: Grid for stock flow model flow values independent of state #21149Leonardo Frid
KeymasterHi David,
Yes, that’s possible. You would use the Flow Spatial Multipliers. See https://docs.stsim.net/reference/prop_stockflow_flow_spatial_mults.html
Cheers,
LeonardoLeonardo Frid
KeymasterHi Audrey,
You can define State Class groupings using State Attribute Values. However, there is currently no way to define probabilities or probability multipliers across State Class groupings.
Probabilities can be defined at the level of individual State Classes in the Transition Pathways.
Probabilities can also be defined at the level of State Class and/or Strata in Transition Multipliers.
Leonardo Frid
KeymasterThere is a new release of the stsimecodep package (version 3.3.1) that fixes this problem. This was an incompatibility with the most recent version of SyncroSim. You can install this version of the package from the Windows interface by going to “File | Packages | Install” or update from an older version using “File | Packages | Update”.
Leonardo Frid
KeymasterThe amount of memory that a SyncroSim/ST-Sim run will require depends on a number of factors including: Landscape size, model complexity, number of concurrent jobs being used for multiprocessing. The latter is something an end user has control over, with the tradeoff being between run times and memory usage. Something I often do when trying to decide how much memory to allocate to a VM for a particular simulation is to run a test simulation for a single realization of my model for a couple of timesteps. After starting the simulation I fire up the resource monitor and track it to identify peak memory use. This will allow me to calculate memory required per job, and decide on the amount of memory to allocate to my VM and how many multiprocessing jobs I should be targeting. Users can set the maximum number of concurrent jobs from the Windows interface under “File | Library Properties | Multiprocessing” or by editing the core_Multiprocessing datahseet with rsyncrosim, pysyncrosim, or the console.
Leonardo Frid
KeymasterHi Brian,
You can try the following:
In the Windows Interface: File | Compact [note that this can take a few minutes for a large library]Cheers,
LeonardoLeonardo Frid
KeymasterQ: Is there a way, other than using try and except( for when the datasheet call fails), to determine which datasheets are active in a scenario – ala replicate the datafeeds tab in the GUI?
A: This is a good idea for a feature. It does not currently exist but we will consider implementing it.Q: Also is there a crosswalk between the datafeed names and the datasheet names?
A: Another good idea. We will also consider implementing.Thanks for the great suggestions!
Leonardo Frid
KeymasterHi Audrey,
There currently is no way to output deterministic transitions. One thing you could do is setup your succession transitions as probabilistic transitions with a minimum age at the age when the succession transition occurs and a probability of 1. These would then essentially be deterministic and you would get output for them.
Regards,
LeonardoLeonardo Frid
KeymasterJust a quick follow-up that there actually was a bug in stsim sf whereby the limits are not properly checked when the cell size is not equal to 1 area unit. Absolute stock amounts on a cell were being compared to limits on stock density per unit area. A fix will be ready shortly in the package stsimsf v3.3.5.
-
AuthorPosts