Project

General

Profile

Bug #5701

CT was removed, demo workflows need to be updated

Added by Derik Barseghian about 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
general
Target version:
Start date:
08/31/2012
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5701

Description

The CTDirector and associated actors were removed:
----------
Author: cxh
Date: 2011-07-26 14:55:43 -0700 (Tue, 26 Jul 2011)
New Revision: 61607

Log:
CTDirector is deprecated because ct no longer works with de. Thus, all code that uses CTDirector should be marked as deprecated so that we avoid lots of deprecation warnings in Eclipse.
----------

Demo workflows must be updated, and actor references removed from our tree.
E.g. the 02-LotkaVolterraPredatorPrey.xml demo is broken, it used the CTDirector and ptolemy.domains.ct.lib.Integrator actor.

History

#1 Updated by Christopher Brooks about 7 years ago

I updated the demos to use Continous.
The affected demos were
./workflows/demos/getting-started/02-LotkaVolterraPredatorPrey.xml
./workflows/demos/SEEK/Elk_Wolf.xml
./workflows/demos/SEEK/LogisticsModel_CT_Director.xml

To update the demos, I used
ptolemy/domains/continuous/lib/ct2continuous

There were two issues with the script:
1) The solver was not updated
The workaround was to run the model and update the solver

2) The Integrator did not get hooked up properly. The input and output were connected to the old ports. This was a problem in the SEEK demos, but
not in the 02-LotkaVolterraPredatorPrey.xml
The workaround was to drag in a Continuous Integrator.

To close this bug:
The CT Director, integrator and any other actors must be removed
It would be nice if the Continuous Integrator had the Integrator icon
used with the CT Integrator.

#2 Updated by Daniel Crawl about 7 years ago

I removed the CT Director and Integrator from the actor tree, and changed the icon for the Continuous Integrator.

I was able to run getting-started/02-LotkaVolterraPredatorPrey.xml and SEEK/Elk_Wolf.xml, but not SEEK/LogisticsModel_CT_Director.xml - the director's ODESolver value had a set of quotes. I also had to fix the ports for Integrator.

All three workflows still had references to solvers in CT; perhaps ct2continuous could convert these? I fixed these references in the workflows.

#3 Updated by Christopher Brooks about 7 years ago

I updated ct2continuous so that it handles converting
./workflows/demos/SEEK/Elk_Wolf.xml
./workflows/demos/SEEK/LogisticsModel_CT_Director.xml

In particular, the solver section is removed and the connections to
the Integrator are now correctly created. The CT Integrator has
input and output, the Continuous Integrator has derivative and state.

#4 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 5701

Also available in: Atom PDF