Skip to content

Commit

Permalink
test: 🚚 update names and paths
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jan 7, 2024
1 parent b784f3e commit c48aece
Show file tree
Hide file tree
Showing 79 changed files with 100 additions and 148 deletions.
20 changes: 15 additions & 5 deletions examples/sensor.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
/* eslint-disable no-console */
import { Sensor } from '../src/objects';
import { Satellite } from '../src/objects/Satellite';
import { Degrees, Kilometers, SensorParams, SpaceObjectType, TleLine1, TleLine2 } from '../src/ootk';
import { calcGmst, ecf2eci, eci2lla, eci2rae } from '../src/transforms/transforms';
import { DEG2RAD } from '../src/utils/constants';
import {
calcGmst,
DEG2RAD,
Degrees,
ecf2eci,
eci2lla,
eci2rae,
Kilometers,
Satellite,
Sensor,
SensorParams,
SpaceObjectType,
TleLine1,
TleLine2,
} from '../lib/ootk-core';

const capeCodRadar = new Sensor({
lat: <Degrees>41.754785,
Expand Down
3 changes: 1 addition & 2 deletions examples/sun.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Degrees, Meters } from '@src/ootk';
import { Sun } from '../src/body/Sun';
import { Degrees, Meters, Sun } from '../lib/ootk-core';
/* eslint-disable no-console */

console.log(Sun.getTimes(new Date(), 41 as Degrees, -71 as Degrees, 0 as Meters));
24 changes: 9 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ootk",
"version": "4.0.0",
"description": "Orbital Object Toolkit including SGP4 Propagator and Coordinate Transforms",
"name": "ootk-core",
"version": "0.0.0",
"description": "Orbital Object Toolkit Core including SGP4 Propagator and Coordinate Transforms",
"scripts": {
"build": "node ./scripts/cleanup.mjs && ttsc -p tsconfig.build.json",
"lcov": "node ./scripts/openLcov.mjs",
Expand All @@ -10,17 +10,16 @@
"lint:test": "eslint test",
"test": "npm run build && jest",
"test:coverage": "jest --coverage",
"test:performance": "node test/performance/timing.test.mjs",
"version": "auto-changelog -p && git add CHANGELOG.md"
},
"main": "./lib/ootk.js",
"main": "./lib/ootk-core.js",
"exports": {
"import": "./lib/ootk.js",
"require": "./lib/ootk.js"
"import": "./lib/ootk-core.js",
"require": "./lib/ootk-core.js"
},
"repository": {
"type": "git",
"url": "git://github.com/thkruz/ootk"
"url": "git://github.com/thkruz/ootk-core"
},
"keywords": [
"sgp4",
Expand All @@ -29,10 +28,10 @@
"space",
"satellite"
],
"author": "Theodore Kruczek <[email protected]> (https://github.com/ootk/)",
"author": "Theodore Kruczek <[email protected]> (https://github.com/thkruz/ootk-core/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/thkruz/ootk/issues"
"url": "https://github.com/thkruz/ootk-core/issues"
},
"devDependencies": {
"@babel/core": "^7.22.9",
Expand Down Expand Up @@ -61,11 +60,6 @@
"webpack-cli": "^4.10.0"
},
"homepage": "https://github.com/thkruz/ootk",
"directories": {
"lib": "lib",
"src": "src",
"test": "test"
},
"dependencies": {
"ttypescript": "^1.5.15",
"typescript-transform-paths": "^3.4.6"
Expand Down
2 changes: 1 addition & 1 deletion src/body/Celestial.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AzEl, Degrees, RaDec, Radians } from '../ootk';
import { AzEl, Degrees, RaDec, Radians } from '../ootk-core';
import { RAD2DEG } from '../utils/constants';
import { Sun } from './Sun';

Expand Down
2 changes: 1 addition & 1 deletion src/body/Earth.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DataHandler } from '../data/DataHandler';
import { AngularDiameterMethod, Kilometers, Radians } from '../ootk';
import { AngularDiameterMethod, Kilometers, Radians } from '../ootk-core';
import { Vector3D } from '../operations/Vector3D';
import { EpochUTC } from '../time/EpochUTC';
import { asec2rad, DEG2RAD, RAD2DEG, secondsPerDay, secondsPerSiderealDay, TAU, ttasec2rad } from '../utils/constants';
Expand Down
2 changes: 1 addition & 1 deletion src/body/Moon.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AngularDiameterMethod } from '../ootk';
import { AngularDiameterMethod } from '../ootk-core';
import { Vector3D } from '../operations/Vector3D';
import { EpochUTC } from '../time/EpochUTC';
import { DEG2RAD } from '../utils/constants';
Expand Down
2 changes: 1 addition & 1 deletion src/body/NutationAngles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Radians } from '../ootk';
import { Radians } from '../ootk-core';

// / Earth nutation angles _(rad)_.
export type NutationAngles = {
Expand Down
2 changes: 1 addition & 1 deletion src/body/PrecessionAngles.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Radians } from '../ootk';
import { Radians } from '../ootk-core';

// / Earth precession angles _(rad)_.
export type PrecessionAngles = {
Expand Down
2 changes: 1 addition & 1 deletion src/body/Sun.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AngularDiameterMethod, AzEl, Degrees, Kilometers, Meters, RaDec, Radians, SunTime } from '../ootk';
import { AngularDiameterMethod, AzEl, Degrees, Kilometers, Meters, RaDec, Radians, SunTime } from '../ootk-core';
import { Vector3D } from '../operations/Vector3D';
import { EpochUTC } from '../time/EpochUTC';
import { astronomicalUnit, cKmPerSec, DEG2RAD, MS_PER_DAY, RAD2DEG, TAU } from '../utils/constants';
Expand Down
2 changes: 1 addition & 1 deletion src/coordinate/Geodetic.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Earth } from '../body/Earth';
import { AngularDistanceMethod } from '../ootk';
import { AngularDistanceMethod } from '../ootk-core';
import { Vector3D } from '../operations/Vector3D';
import { EpochUTC } from '../time/EpochUTC';
import { DEG2RAD, RAD2DEG } from '../utils/constants';
Expand Down
2 changes: 1 addition & 1 deletion src/observation/RAE.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-undefined */
import { ITRF } from '../coordinate/ITRF';
import { J2000 } from '../coordinate/J2000';
import { Radians } from '../ootk';
import { Radians } from '../ootk-core';
import { Vector3D } from '../operations/Vector3D';
import { EpochUTC } from '../time/EpochUTC';
import { AngularDistanceMethod } from '../types/types';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/transforms/conversions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Degrees, Radians } from '../ootk';
import { Degrees, Radians } from '../ootk-core';
import { DEG2RAD, PI, RAD2DEG } from '../utils/constants';

/**
Expand Down
2 changes: 1 addition & 1 deletion src/transforms/transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Orbital Object ToolKit. If not, see <http://www.gnu.org/licenses/>.
*/

import { Earth, Sensor, Sgp4, Utils } from '../ootk';
import { Earth, Sensor, Sgp4, Utils } from '../ootk-core';
import {
Degrees,
EcefVec3,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/moon-math.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

import { Celestial } from '../body/Celestial';
import { Sun } from '../body/Sun';
import { Degrees, Kilometers, RaDec, Radians } from '../ootk';
import { Degrees, Kilometers, RaDec, Radians } from '../ootk-core';
import { MS_PER_DAY } from '../utils/constants';
import { DEG2RAD } from './constants';

Expand Down
2 changes: 1 addition & 1 deletion test/objects/star.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import { Star } from '../../lib/objects';
import { Degrees, Kilometers, Radians } from '../../lib/ootk';
import { Degrees, Kilometers, Radians } from '../../lib/ootk-core';

describe('Basic Star functionality', () => {
const star = new Star({
Expand Down
2 changes: 1 addition & 1 deletion test/sat/sat.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @since 1.2.0
*/

import { Satellite } from '../../lib/ootk';
import { Satellite } from '../../lib/ootk-core';
import { RAD2DEG } from '../../lib/utils/constants';

const dateObj = new Date(1661400000000);
Expand Down
2 changes: 1 addition & 1 deletion test/sat/sensor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @since 1.2.0
*/

import { Degrees, Kilometers, Satellite, Sensor, SpaceObjectType, TleLine1, TleLine2 } from '../../lib/ootk';
import { Degrees, Kilometers, Satellite, Sensor, SpaceObjectType, TleLine1, TleLine2 } from '../../lib/ootk-core';

const dateObj = new Date(1661400000000);

Expand Down
3 changes: 1 addition & 2 deletions test/sgp4/full-catalog/sgp4-catalog-0.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* eslint-disable no-sync */
/* eslint-disable prefer-destructuring */
/**
Expand All @@ -12,7 +11,7 @@ import * as fs from 'fs';
/**
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022
*/
import { Sgp4 } from '../../../lib/ootk';
import { Sgp4 } from '../../../lib/ootk-core';

const fileName = 'TLE_0';
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8');
Expand Down
3 changes: 1 addition & 2 deletions test/sgp4/full-catalog/sgp4-catalog-1.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* eslint-disable no-sync */
/* eslint-disable prefer-destructuring */
/**
Expand All @@ -12,7 +11,7 @@ import * as fs from 'fs';
/**
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022
*/
import { Sgp4 } from '../../../lib/ootk';
import { Sgp4 } from '../../../lib/ootk-core';

const fileName = 'TLE_1';
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8');
Expand Down
3 changes: 1 addition & 2 deletions test/sgp4/full-catalog/sgp4-catalog-10.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* eslint-disable no-sync */
/* eslint-disable prefer-destructuring */
/**
Expand All @@ -12,7 +11,7 @@ import * as fs from 'fs';
/**
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022
*/
import { Sgp4 } from '../../../lib/ootk';
import { Sgp4 } from '../../../lib/ootk-core';

const fileName = 'TLE_10';
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8');
Expand Down
3 changes: 1 addition & 2 deletions test/sgp4/full-catalog/sgp4-catalog-11.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* eslint-disable no-sync */
/* eslint-disable prefer-destructuring */
/**
Expand All @@ -12,7 +11,7 @@ import * as fs from 'fs';
/**
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022
*/
import { Sgp4 } from '../../../lib/ootk';
import { Sgp4 } from '../../../lib/ootk-core';

const fileName = 'TLE_11';
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8');
Expand Down
3 changes: 1 addition & 2 deletions test/sgp4/full-catalog/sgp4-catalog-12.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* eslint-disable no-sync */
/* eslint-disable prefer-destructuring */
/**
Expand All @@ -12,7 +11,7 @@ import * as fs from 'fs';
/**
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022
*/
import { Sgp4 } from '../../../lib/ootk';
import { Sgp4 } from '../../../lib/ootk-core';

const fileName = 'TLE_12';
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8');
Expand Down
3 changes: 1 addition & 2 deletions test/sgp4/full-catalog/sgp4-catalog-13.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* eslint-disable no-sync */
/* eslint-disable prefer-destructuring */
/**
Expand All @@ -12,7 +11,7 @@ import * as fs from 'fs';
/**
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022
*/
import { Sgp4 } from '../../../lib/ootk';
import { Sgp4 } from '../../../lib/ootk-core';

const fileName = 'TLE_13';
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8');
Expand Down
3 changes: 1 addition & 2 deletions test/sgp4/full-catalog/sgp4-catalog-14.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* eslint-disable no-sync */
/* eslint-disable prefer-destructuring */
/**
Expand All @@ -12,7 +11,7 @@ import * as fs from 'fs';
/**
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022
*/
import { Sgp4 } from '../../../lib/ootk';
import { Sgp4 } from '../../../lib/ootk-core';

const fileName = 'TLE_14';
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8');
Expand Down
3 changes: 1 addition & 2 deletions test/sgp4/full-catalog/sgp4-catalog-15.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* eslint-disable no-sync */
/* eslint-disable prefer-destructuring */
/**
Expand All @@ -12,7 +11,7 @@ import * as fs from 'fs';
/**
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022
*/
import { Sgp4 } from '../../../lib/ootk';
import { Sgp4 } from '../../../lib/ootk-core';

const fileName = 'TLE_15';
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8');
Expand Down
3 changes: 1 addition & 2 deletions test/sgp4/full-catalog/sgp4-catalog-16.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* eslint-disable no-sync */
/* eslint-disable prefer-destructuring */
/**
Expand All @@ -12,7 +11,7 @@ import * as fs from 'fs';
/**
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022
*/
import { Sgp4 } from '../../../lib/ootk';
import { Sgp4 } from '../../../lib/ootk-core';

const fileName = 'TLE_16';
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8');
Expand Down
3 changes: 1 addition & 2 deletions test/sgp4/full-catalog/sgp4-catalog-17.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* eslint-disable no-sync */
/* eslint-disable prefer-destructuring */
/**
Expand All @@ -12,7 +11,7 @@ import * as fs from 'fs';
/**
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022
*/
import { Sgp4 } from '../../../lib/ootk';
import { Sgp4 } from '../../../lib/ootk-core';

const fileName = 'TLE_17';
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8');
Expand Down
3 changes: 1 addition & 2 deletions test/sgp4/full-catalog/sgp4-catalog-18.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* eslint-disable no-sync */
/* eslint-disable prefer-destructuring */
/**
Expand All @@ -12,7 +11,7 @@ import * as fs from 'fs';
/**
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022
*/
import { Sgp4 } from '../../../lib/ootk';
import { Sgp4 } from '../../../lib/ootk-core';

const fileName = 'TLE_18';
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8');
Expand Down
3 changes: 1 addition & 2 deletions test/sgp4/full-catalog/sgp4-catalog-19.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* eslint-disable no-sync */
/* eslint-disable prefer-destructuring */
/**
Expand All @@ -12,7 +11,7 @@ import * as fs from 'fs';
/**
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022
*/
import { Sgp4 } from '../../../lib/ootk';
import { Sgp4 } from '../../../lib/ootk-core';

const fileName = 'TLE_19';
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8');
Expand Down
3 changes: 1 addition & 2 deletions test/sgp4/full-catalog/sgp4-catalog-2.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* eslint-disable no-sync */
/* eslint-disable prefer-destructuring */
/**
Expand All @@ -12,7 +11,7 @@ import * as fs from 'fs';
/**
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022
*/
import { Sgp4 } from '../../../lib/ootk';
import { Sgp4 } from '../../../lib/ootk-core';

const fileName = 'TLE_2';
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8');
Expand Down
3 changes: 1 addition & 2 deletions test/sgp4/full-catalog/sgp4-catalog-20.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/* eslint-disable no-sync */
/* eslint-disable prefer-destructuring */
/**
Expand All @@ -12,7 +11,7 @@ import * as fs from 'fs';
/**
* sgp4Data is from SGP4Prop 8.3 Build: Apr 27 2022
*/
import { Sgp4 } from '../../../lib/ootk';
import { Sgp4 } from '../../../lib/ootk-core';

const fileName = 'TLE_20';
const rawData = fs.readFileSync(`test/sgp4/full-catalog/${fileName}.json`, 'utf8');
Expand Down
Loading

0 comments on commit c48aece

Please sign in to comment.