Changelog¶
v0.3.0¶
Whats 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.
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.
Bug fixes¶
Fixed a bug where the transpose of a CSDM object failed to retain the quantity_type information after the transpose.
v0.2.1¶
Whats 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¶
Whats 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â