Changelog¶
v0.3.1¶
Bug fixes¶
Bugfix regarding the phase multiplier for the
CSDM.fft()
methods where an incorrect phase was multiplied to the signal vector.
v0.3.0¶
What’s new!¶
- Support for
matplotlib.pyplot
functions fromCSDM
objects. plot
,scatter
,imshow
,contour
, andcontourf
Now you can directly plot CSDM objects as an argument to the above matplotlib methods.
- Support for
v0.2.2¶
Bug fixes¶
Fixed bug where the metadata from the
csdm.application
key was not serialized to the file when usingcsdm.save()
method.Fixed a bug where the transpose of a CSDM object failed to retain the quantity_type information after the transpose.
Other changes¶
Add a new diffusion tensor MRI dataset to the example gallery.
Added
dict()
as an alias to theto_dict()
method for all objects.Added an alias of the
cp.plot()
function to the CSDM object as theplot()
method.
v0.2.1¶
What’s new!¶
Add
reciprocal_coordinates()
andreciprocal_increment()
methods to the LinearDimension class.Added
fft()
function to the CSDM class.Added
transpose()
method to the CSDM class.
v0.2.0¶
What’s new!¶
- Added following methods to the
CSDM
class: __eq__()
for all class__add__()
= Adds two csdm object.__iadd__()
= Adds two csdm objects in-place.__sub__()
= Subtrace two csdm objects.__isub__()
= Subtrace two csdm objects in-place.__mul__()
= Multiply the components of the csdm object by a scalar.__imul__()
= Multiply the components of the csdm object by a scalar in-place.__truvdiv__()
= Divide the components of the csdm object by a scalar.__itruediv__()
= Divide the components of the csdm object by a scalar in-place.split()
= Split the dependent-variables into individual csdm objects.
- Added following methods to the
- Support for Numpy dimension reduction functions
sum()
: Sum along a given dimension.prod()
: Product along a given dimension.
- Support for Numpy ufunc functions:
sin
,cos
,tan
,arcsin
,arccos
,arctan
,sinh
,cosh
,tanh
,arcsinh
,arccosh
,arctanh
,exp
,exp2
,log
,log2
,log10
,expm1
,log1p
,negative
,positive
,square
,absolute
,fabs
,rint
,sign
,conj
,conjugate
,sqrt
,cbrt
,reciprocal
- Added apodization functions.
sin
,cos
,tan
,arcsin
,arccos
,arctan
,exp
Bug fixes¶
Fixed a bug in
cp.plot()
method.
v0.1.5¶
Added method to convert the frequency dimension to nmr dimensionless frequency ratio with syntax,
dimension.to('ppm', 'nmr_frequency_ratio')
, where dimension is a LinearDimension object.The
csdmpy.plot()
method also displays the dimension index on the axis label.
v0.1.4¶
Added
to_dict()
method to the CSDM, Dimension, and DependentVariable objects.
v0.1.3¶
Fixed warning message when physical quantity name is not found in the astropy units package.
Added dumps and loads function to dump and load the data model as json serialized string, respectively without serializing it to a file.
v0.0.11 to v0.1.2¶
Add a required unsigned_interger_type for SparseSampling dimension.
Fixed minor bugs.
Added a tags attribute to the CSDmodel object.
Changed ‘sampling_interval’ key to ‘count’.
Changed ‘quantity’ key to ‘quantity_name’.
Changed ‘index_zero_value’ key to ‘coordinates_offset’.
Changed ‘fft_output_order’ key to ‘complex_fft’.
Renamed IndependentVariable class to Dimension.
Renamed LinearlySpacedDimension class to LinearDimension.
Renamed ArbitrarilySpacedDimension class to MonotonicDimension.
Added a reciprocal attribute to LinearDimension and MonotonicDimension classes.
Removed the reverse attribute from all Dimension classes.
Changed ‘sampling_interval’ keyword to ‘increment’.
Changed ‘reference_offset’ keyword to ‘index_zero_value’.
Changed ‘linear_spacing’ literal to ‘linear’.
Changed ‘arbitrarily_sampled’ literal to ‘monotonic’.
Changed the defining of the coordinates for the LinearDimension from
(11)¶\[X^\text{ref} = m_k J_k - c_k {\bf 1}\]to
(12)¶\[X^\text{ref} = m_k J_k + c_k {\bf 1},\]where \(c_k\) is the reference offset, \(m_k\) is the increment, and \(J_k\) is the set of integer indices along the dimension.
Added ‘description’ key to ‘Dimension’, ‘DependentVariable’ and ‘CSDM’ object.
Changed ‘CSDM’ keyword to ‘csdm’
Changed ‘FFT_output_order’ keyword to ‘fft_output_order’
Changed ‘components_URL’ keyword to ‘components_url’