chemcoord icon indicating copy to clipboard operation
chemcoord copied to clipboard

Error during reading of .xyz file

Open p-walt opened this issue 2 years ago • 2 comments

Code Sample, a copy-pastable example if possible

compound = cc.Cartesian.read_xyz('mm.xyz', start_index=1)
connection_table = compound.get_bonds()

When generating a z-matrix for a given .xyz file I receive the following warning that never previously occurred:

FutureWarning: Passing a set as an indexer is deprecated and will raise in a future version. Use a list instead. new_frame = data.loc[atoms, set(new_cols) - set(self.columns)] This warning is generated multiple times for each instance the function is called.

[mm.txt](https://github.com/mcocdawc/chemcoord/files/8042396/mm.txt)

p-walt avatar Feb 10 '22 16:02 p-walt

Thank you for reporting.

May I ask what your pandas version is? I don't get that warning.

mcocdawc avatar Feb 10 '22 18:02 mcocdawc

Hi there,

I am currently using pandas v1.4

p-walt avatar Feb 11 '22 10:02 p-walt

I am really sorry that I somehow forgot about this issue. Will close it in the referencing one.

mcocdawc avatar Jun 11 '23 21:06 mcocdawc

This issue is resolved now as well.

Mayank447 avatar Jun 19 '23 09:06 Mayank447

Indeed it is. Thank you very much!

mcocdawc avatar Jun 19 '23 10:06 mcocdawc