Forum Replies Created
December 8, 2022 at 7:16 pm in reply to: Error loading ssim #21442
Just 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.December 8, 2022 at 5:00 pm in reply to: Error loading ssim #21441
Hi Kevin, Please send us the library and let us know what versions of SyncroSim and packages you are using.November 1, 2022 at 6:47 pm in reply to: ST-Sim Library with an external program example #21384
The 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.
October 25, 2022 at 10:53 pm in reply to: Availability of Burn-P3+ #21322
- 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.
Note that you will need the latest SyncroSim release (2.4.10).October 25, 2022 at 6:49 pm in reply to: Availability of Burn-P3+ #21304
There is a Beta version (0.3.4) now available. You can find more info, and a Getting Started tutorial here:
LeonardoOctober 18, 2022 at 4:20 pm in reply to: Availability of Burn-P3+ #21276
Thanks 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? #21200
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.
LeonardoAugust 24, 2022 at 5:42 pm in reply to: Grid for stock flow model flow values independent of state #21149
Yes, that’s possible. You would use the Flow Spatial Multipliers. See https://docs.stsim.net/reference/prop_stockflow_flow_spatial_mults.html
LeonardoAugust 4, 2022 at 5:23 pm in reply to: Grouping state classes #21129
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.July 7, 2022 at 10:19 pm in reply to: Advanced menu -> Referenc Condition #21074
There 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”.April 13, 2022 at 9:28 pm in reply to: How much memory will my SyncroSim run need? #21002
The 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.April 3, 2022 at 10:42 pm in reply to: Library size #20980
You can try the following:
In the Windows Interface: File | Compact [note that this can take a few minutes for a large library]
LeonardoMarch 15, 2022 at 9:52 pm in reply to: pysyncrosim – scenarios, datafeeds and datasheets #20948
Q: 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!March 15, 2022 at 7:05 pm in reply to: Tracking deterministic transitions #20947
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.
LeonardoMarch 10, 2022 at 10:27 pm in reply to: Stock limit observance #20938
Just 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.