Skip to content

Commit 65f13cf

Browse files
tpressburgeranmavrid
authored andcommitted
FTP as a predefined constant and unreplace_special_chars in the simulator
1 parent c2ffe25 commit 65f13cf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

fret-electron/app/components/TimeSeriesChart.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
// ANY SUCH MATTER SHALL BE THE IMMEDIATE, UNILATERAL TERMINATION OF THIS
3131
// AGREEMENT.
3232
// *****************************************************************************
33+
const utils = require('../../support/utils');
3334
import React, { Component, FunctionComponent } from 'react';
3435
import PropTypes from 'prop-types';
3536
import { withStyles, withTheme } from '@material-ui/core/styles';
@@ -425,7 +426,7 @@ const CustomizedLabel: FunctionComponent<any> = (props: any) => {
425426
//-------------------customizedlabel----------------
426427

427428
let longName = this.props.name.length > maxNameLength;
428-
let Oname = ID_to_arithexpr(this.props.name);
429+
let Oname = ID_to_arithexpr(utils.unreplace_special_chars(this.props.name));
429430
let name = (longName) ? Oname.slice(0, maxNameLength-1) + "..." : Oname;
430431
//console.log("TSC:render: longName="+longName);
431432
//console.log("TSC:render: origname="+this.props.name);

fret-electron/app/parser/Constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,6 @@ module.exports = Object.freeze({
110110
// variable mapping dialog. When, from the analysis portal, we
111111
// handle export of future-time formalizations, then we can add
112112
// persists and occurs to the list of predefined vars.
113-
predefinedVars: ["persisted","occurred","prevOcc","nextOcc","preBool","preInt","preReal","absReal","absInt","minReal","minInt","maxReal","maxInt"]//,"persists","occurs"
113+
predefinedVars: ["persisted","occurred","prevOcc","nextOcc","preBool","preInt","preReal","absReal","absInt","minReal","minInt","maxReal","maxInt","FTP"]//,"persists","occurs"
114114

115115
});

0 commit comments

Comments
 (0)