Skip to content

Commit 611d219

Browse files
add xtype=d in dump function
1 parent fae4cd6 commit 611d219

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/diffpy/utils/scattering_objects/diffraction_objects.py

+2
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ def dump(self, filepath, xtype=None):
445445
data_to_save = np.column_stack((self.on_q[0], self.on_q[1]))
446446
elif xtype == "tth":
447447
data_to_save = np.column_stack((self.on_tth[0], self.on_tth[1]))
448+
elif xtype == "d":
449+
data_to_save = np.column_stack((self.on_d[0], self.on_d[1]))
448450
else:
449451
print(f"WARNING: cannot handle the xtype '{xtype}'")
450452
self.metadata.update(get_package_info("diffpy.utils", metadata=self.metadata))

0 commit comments

Comments
 (0)