Skip to content

Commit

Permalink
FTP as a predefined constant and unreplace_special_chars in the simul…
Browse files Browse the repository at this point in the history
…ator
  • Loading branch information
tpressburger authored and anmavrid committed Aug 25, 2022
1 parent c2ffe25 commit 65f13cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion fret-electron/app/components/TimeSeriesChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
// ANY SUCH MATTER SHALL BE THE IMMEDIATE, UNILATERAL TERMINATION OF THIS
// AGREEMENT.
// *****************************************************************************
const utils = require('../../support/utils');
import React, { Component, FunctionComponent } from 'react';
import PropTypes from 'prop-types';
import { withStyles, withTheme } from '@material-ui/core/styles';
Expand Down Expand Up @@ -425,7 +426,7 @@ const CustomizedLabel: FunctionComponent<any> = (props: any) => {
//-------------------customizedlabel----------------

let longName = this.props.name.length > maxNameLength;
let Oname = ID_to_arithexpr(this.props.name);
let Oname = ID_to_arithexpr(utils.unreplace_special_chars(this.props.name));
let name = (longName) ? Oname.slice(0, maxNameLength-1) + "..." : Oname;
//console.log("TSC:render: longName="+longName);
//console.log("TSC:render: origname="+this.props.name);
Expand Down
2 changes: 1 addition & 1 deletion fret-electron/app/parser/Constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,6 @@ module.exports = Object.freeze({
// variable mapping dialog. When, from the analysis portal, we
// handle export of future-time formalizations, then we can add
// persists and occurs to the list of predefined vars.
predefinedVars: ["persisted","occurred","prevOcc","nextOcc","preBool","preInt","preReal","absReal","absInt","minReal","minInt","maxReal","maxInt"]//,"persists","occurs"
predefinedVars: ["persisted","occurred","prevOcc","nextOcc","preBool","preInt","preReal","absReal","absInt","minReal","minInt","maxReal","maxInt","FTP"]//,"persists","occurs"

});

0 comments on commit 65f13cf

Please sign in to comment.