SimonEnsemble / PorousMaterials.jl

Julia package towards classical molecular modeling of nanoporous materials
GNU General Public License v3.0
50 stars 11 forks source link

write data line as first line in `write_cif` #44

Closed SimonEnsemble closed 6 years ago

SimonEnsemble commented 6 years ago

The first line of a .cif file written by write_cif(framework, filename) writes as its first line _data_xtalname_PM, PM for PorousMaterials.jl.

I removed the file extension to avoid problems with dots.

The split("")[1] gives error because it is trying to call entry 1 of a 0-D array so I handle this case separately.