APSIMInitiative / ApsimX

ApsimX is the next generation of APSIM
http://www.apsim.info
Other
137 stars 167 forks source link

What are Model overrides and Operations #7606

Closed lie112 closed 1 year ago

lie112 commented 2 years ago

I have come across ModelOverrides and Operations in the add new models and wondered what they are? The code isn't very clear on what they do. Can I have a quick description to see if they are of use to me?

hol353 commented 2 years ago

A ModelOverrides models can be added somewhere in your simulation. At the start of simulation it will apply the user specified property=value lines.

An operations model lets the user specify management actions like sowing, fertiliser, irrigation etc on specific dates. Look in any of validation .apsimx files for examples.

femiguez commented 1 year ago

I'm looking at APSIM2022.10.7104.0 and I see 'ModelOverrides' but it appears as if 'Replacements' have disappeared. To be more specific. I right-click under 'simulations', then 'add model' and 'Replacements' used to be under 'Core' (if I'm not mistaken), but I can't find them

sarchontoulis commented 1 year ago

Fernando, try adding a "folder" and then rename it to "replacements"

femiguez commented 1 year ago

@sarchontoulis I was creating a 'Sorghum' example for today's class. This is what I see

Screen Shot 2022-11-10 at 11 51 45 AM

So it is not allowing me to add 'Replacements' to this simulation apparently...? This might be issue #7539. I had missed that. In previous versions, this was not a problem

sarchontoulis commented 1 year ago

instead of adding a simulation, try to add a crop model or a report under the replacements. Will that work?

femiguez commented 1 year ago

@sarchontoulis Apparently, it does not work. There are work arounds, but the problem with the GUI was mentioned in #7539 and that is what I was running into

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had any activity in the last 30 days. It will be closed in one week if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This issue is being closed because there has been no recent activity. Feel free to re-open or open a new issue if needed.

daSilva5 commented 2 months ago

Hi, I would like to re-open it. I actually to not understand what "it will apply the user specified property=value lines" looks like. If I want to change crit_residue_wt and opt_temp from SurfaceOM and sen_detach_frac in sugar model that has values for ratoon and plant crop. Can I do this using ModelOverrides? If yes, what does it looks like?

Cheers, Isis