Skip to content

Commit

Permalink
fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin IGARASHI committed Jul 24, 2020
1 parent a876140 commit cdf54db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@watergis/geojson2inp",
"version": "0.1.3",
"version": "0.1.4",
"description": "This module converts GeoJSON to EPANET INP file",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/inp/InpCurves.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export default class InpPumps extends InpBase {
if (!data)return;
const contents = [
pad(data.id, 16),
pad(data.flow.toString(), 12),
pad(data.head.toString(), 12)
pad(data.flow?data.flow.toString():'', 12),
pad(data.head?data.head.toString():'', 12)
];
this.addText(` ${contents.join('\t')}\t;\n`);
}
Expand Down

0 comments on commit cdf54db

Please sign in to comment.