Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change ramda imports to wildcard style #350

Merged
merged 2 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cli/src/sde-compare.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { existsSync } from 'fs'

import { pr } from 'bufx'
import R from 'ramda'
import * as R from 'ramda'

import { readDat } from '@sdeverywhere/compile'

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/sde-log.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'path'

import B from 'bufx'
import byline from 'byline'
import R from 'ramda'
import * as R from 'ramda'

import { canonicalName } from '@sdeverywhere/compile'

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'path'
import { fileURLToPath } from 'url'

import B from 'bufx'
import R from 'ramda'
import * as R from 'ramda'
import sh from 'shelljs'

import { canonicalName } from '@sdeverywhere/compile'
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/_shared/helpers.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import util from 'util'
import B from 'bufx'
import { parse as parseCsv } from 'csv-parse/sync'
import R from 'ramda'
import * as R from 'ramda'
import split from 'split-string'
import XLSX from 'xlsx'

Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/_shared/read-dat.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'fs'
import B from 'bufx'
import byline from 'byline'
import R from 'ramda'
import * as R from 'ramda'

import { canonicalVensimName } from './helpers.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/_shared/subscript.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import util from 'util'
import B from 'bufx'
import yaml from 'js-yaml'
import R from 'ramda'
import * as R from 'ramda'
import { canonicalName, asort, vlog } from './helpers.js'

// A subscript is a dimension or an index.
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/generate/code-gen.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import R from 'ramda'
import * as R from 'ramda'

import { asort, lines, strlist, abend, mapIndexed } from '../_shared/helpers.js'
import { sub, allDimensions, allMappings, subscriptFamilies } from '../_shared/subscript.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/generate/equation-gen.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path'
import { ModelLexer, ModelParser } from 'antlr4-vensim'
import R from 'ramda'
import * as R from 'ramda'
import XLSX from 'xlsx'

import {
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/generate/model-lhs-reader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import R from 'ramda'
import * as R from 'ramda'

import { canonicalName } from '../_shared/helpers.js'
import { sub, isDimension } from '../_shared/subscript.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/model/equation-reader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ModelParser } from 'antlr4-vensim'
import R from 'ramda'
import * as R from 'ramda'

import {
canonicalName,
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/model/model.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import B from 'bufx'
import yaml from 'js-yaml'
import R from 'ramda'
import * as R from 'ramda'

import { decanonicalize, isIterable, listConcat, strlist, vlog, vsort } from '../_shared/helpers.js'
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/model/subscript-range-reader.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path'
import { ModelParser } from 'antlr4-vensim'
import R from 'ramda'
import * as R from 'ramda'
import XLSX from 'xlsx'

import { cFunctionName, matchRegex, readCsv } from '../_shared/helpers.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/model/var-name-reader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import R from 'ramda'
import * as R from 'ramda'

import { canonicalName } from '../_shared/helpers.js'
import { sub, isIndex, normalizeSubscripts } from '../_shared/subscript.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/model/variable-reader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ModelParser } from 'antlr4-vensim'
import R from 'ramda'
import * as R from 'ramda'

import { canonicalName, vlog, strlist, cartesianProductOf } from '../_shared/helpers.js'
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/compile/src/preprocess/preprocessor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'path'
import B from 'bufx'
import R from 'ramda'
import * as R from 'ramda'
import { splitEquations, replaceDelimitedStrings } from '../_shared/helpers.js'

export let preprocessModel = (mdlFilename, spec, profile = 'genc', writeFiles = false, outDecls = []) => {
Expand Down