Skip to content

Commit

Permalink
chore: house cleaning Oct 2023 (#2080)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwdchang authored Oct 23, 2023
1 parent 699a403 commit 3fcc24d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const getStates = (amr: Model) => {
const matrixData: any[] = [];

const dupe: Set<string> = new Set();
const uniqueStates: any[] = []; // FIXME: grounding typing incorrect
const uniqueStates: any[] = [];

for (let i = 0; i < model.states.length; i++) {
const state = model.states[i];
Expand Down
4 changes: 1 addition & 3 deletions packages/client/hmi-client/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ export enum RoutePath {
Theia = '/theia',
Ta2Playground = '/ta2-playground',
ResponsivePlaygroundPath = '/responsive-playground',
EvaluationScenariosPath = '/evaluation-scenarios',
ModelEditor = '/model-editor',
ModelRunner = '/model-runner'
EvaluationScenariosPath = '/evaluation-scenarios'
}

const routes = [
Expand Down
1 change: 0 additions & 1 deletion packages/client/hmi-client/src/services/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export const runDagreLayout = <V, E>(graphData: IGraph<V, E>, lr: boolean = true
g.setEdge(edge.source, edge.target);
}

// FIXME: Hackathon show-n-tell, remove
if (lr === true) {
g.graph().rankDir = 'LR';
g.graph().nodesep = 100;
Expand Down
2 changes: 2 additions & 0 deletions packages/client/hmi-client/src/services/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export async function getModelConfigurations(modelId: string): Promise<ModelConf

/**
* Reconstruct an petrinet AMR's ode semantics
*
* @deprecated moving to mira-stratify
*/
export async function reconstructAMR(amr: any) {
const response = await API.post('/mira/reconstruct_ode_semantics', amr);
Expand Down
3 changes: 0 additions & 3 deletions packages/client/hmi-client/src/services/workflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ import { v4 as uuidv4 } from 'uuid';
* not optimized, on the account that we don't expect most workflow graphs to
* exceed say ... 10-12 nodes with 30-40 edges.
*
* TODO:
* - Should we update workflow node status on modification???
*/

export const emptyWorkflow = (name: string = 'test', description: string = '') => {
const workflow: Workflow = {
id: uuidv4(),
Expand Down

0 comments on commit 3fcc24d

Please sign in to comment.