Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Molstar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michal Malý
Molstar
Commits
10b221b0
Commit
10b221b0
authored
7 years ago
by
David Sehnal
Browse files
Options
Downloads
Patches
Plain Diff
tweaks
parent
4d2c7996
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/apps/cif2bcif/index.ts
+5
-1
5 additions, 1 deletion
src/apps/cif2bcif/index.ts
src/mol-io/reader/cif/data-model.ts
+3
-3
3 additions, 3 deletions
src/mol-io/reader/cif/data-model.ts
with
8 additions
and
4 deletions
src/apps/cif2bcif.ts
→
src/apps/cif2bcif
/index
.ts
+
5
−
1
View file @
10b221b0
...
@@ -5,9 +5,13 @@
...
@@ -5,9 +5,13 @@
*/
*/
import
*
as
fs
from
'
fs
'
import
*
as
fs
from
'
fs
'
import
convert
from
'
./
cif2bcif/
converter
'
import
convert
from
'
./converter
'
(
async
function
()
{
(
async
function
()
{
if
(
process
.
argv
.
length
!==
4
)
{
console
.
log
(
'
Usage:
\n
node cif2bcif input.cif output.bcif
'
);
return
;
}
const
src
=
process
.
argv
[
2
];
const
src
=
process
.
argv
[
2
];
const
out
=
process
.
argv
[
3
];
const
out
=
process
.
argv
[
3
];
...
...
This diff is collapsed.
Click to expand it.
src/mol-io/reader/cif/data-model.ts
+
3
−
3
View file @
10b221b0
...
@@ -17,6 +17,7 @@ export function File(blocks: ArrayLike<Block>, name?: string): File {
...
@@ -17,6 +17,7 @@ export function File(blocks: ArrayLike<Block>, name?: string): File {
export
interface
Frame
{
export
interface
Frame
{
readonly
header
:
string
,
readonly
header
:
string
,
// Category names stored separately so that the ordering can be preserved.
readonly
categoryNames
:
ReadonlyArray
<
string
>
,
readonly
categoryNames
:
ReadonlyArray
<
string
>
,
readonly
categories
:
Categories
readonly
categories
:
Categories
}
}
...
@@ -54,9 +55,8 @@ export namespace Category {
...
@@ -54,9 +55,8 @@ export namespace Category {
/**
/**
* Implementation note:
* Implementation note:
* Always implement this as a "plain" object so that the functions are "closures"
* Always implement without using "this." in any of the interface functions.
* by default. This is to ensure that the schema access works without definiting
* This is to ensure that the functions can invoked without having to "bind" them.
* additional closures.
*/
*/
export
interface
Field
{
export
interface
Field
{
readonly
'
@array
'
:
ArrayLike
<
any
>
|
undefined
readonly
'
@array
'
:
ArrayLike
<
any
>
|
undefined
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment