rafaqz / DimensionalData.jl

Named dimensions and indexing for julia arrays and other data
https://rafaqz.github.io/DimensionalData.jl/stable/
MIT License
265 stars 38 forks source link

typos #752

Closed spaette closed 1 week ago

spaette commented 2 weeks ago

@rafaqz

cf: https://github.com/rafaqz/Rasters.jl/pull/693#issuecomment-2214118272

$ cat typos.sh
#!/bin/sh

sed -i "s/Inrerence/Inference/g" DimensionalData.jl/test/indexing.jl
sed -i "s/Thed/The/g" DimensionalData.jl/src/array/array.jl
sed -i "s/Theres/There's/g" DimensionalData.jl/src/dimindices.jl
sed -i "s/accross/across/g" DimensionalData.jl/test/stack.jl
sed -i "s/acepted/accepted/g" DimensionalData.jl/src/array/array.jl
sed -i "s/alligned/aligned/g" DimensionalData.jl/src/Dimensions/primitives.jl
sed -i "s/alligned/aligned/g" DimensionalData.jl/src/Dimensions/indexing.jl
sed -i "s/alligned/aligned/g" DimensionalData.jl/src/Lookups/selector.jl
sed -i "s/attachs/attaches/g" DimensionalData.jl/test/selector.jl
sed -i "s/curresponding/corresponding/g" DimensionalData.jl/src/Lookups/lookup_arrays.jl
sed -i "s/innacurate/inaccurate/g" DimensionalData.jl/src/Lookups/lookup_arrays.jl
sed -i "s/inteface/interface/g" DimensionalData.jl/src/interface_tests.jl
sed -i "s/maxium/maximum/g" DimensionalData.jl/test/methods.jl
sed -i "s/passsed/passed/g" DimensionalData.jl/ext/DimensionalDataMakie.jl
sed -i "s/prefereble/preferable/g" DimensionalData.jl/src/groupby.jl
sed -i "s/simulataneously/simultaneously/g" DimensionalData.jl/src/stack/stack.jl
sed -i "s/stardard/standard/g" DimensionalData.jl/src/Lookups/selector.jl
sed -i "s/thoe/the/g" DimensionalData.jl/test/utils.jl
sed -i "s/trailng/trailing/g" DimensionalData.jl/test/broadcast.jl
sed -i "s/unwraped/unwrapped/g" DimensionalData.jl/src/array/array.jl
sed -i "s/wont/won't/g" DimensionalData.jl/src/array/methods.jl
sed -i "s/wont/won't/g" DimensionalData.jl/src/Lookups/selector.jl
$

The string sliceunalligneddims is changed via the shell script.

alldims
axdims
axisdims
basedims
broadcastdims
catdims
checkdims
colordims
combinedims
commondims
comparedims
dropdims
extradims
fdims
firstdims
hassamedims
joindims
layerdims
mergedims
mydimstack
ndims
newcatdims
newdims
newrealdims
newrefdims
odims
orderdims
otherdims
permutedims
pointdims
print_ndims
print_refdims
realdims
rebuild_layerdims
rebuild_layerdims_kw
reducedims
refdims
refdims_base
refdims_title
resultdims
seldims
setdims
slicedims
sliceunalligneddims
sortdims
sorteddims
swapdims
testdims
uadims
uadimsand
udims
unmergedims
urefdims
_combinedims
_commondims
_comparedims
_extradimserror
_extradimsmsg
_extradimswarn
_mergedims
_otherdims
_otherdims_from_nothing
_reducedims
_rotdims_180
_rotdims_270
_rotdims_90
_rotdims_k
_slicedims
_sortdims
_sortdims_gen
_swapdims
_unmergedims
_wrongdimserr
spaette commented 2 weeks ago

supposing this is correct

$ grep -nr anothing DimensionalData.jl
DimensionalData.jl/test/plotrecipes.jl:100:da3_other = DimArray(A3, (X=1:10:400, other=1:5:100, anothing=NoLookup()); name=:Normal)
$
rafaqz commented 2 weeks ago

Ah I think it should be :another

spaette commented 2 weeks ago

typos.sh uses GNU sed

modify for BSD sed by replacing -i with -ie

spaette commented 2 weeks ago

The script is authorised for use and/or modification by the Developers.

I accept no responsibility for breakage of other code which uses this package if the changes are implemented.

spaette commented 1 week ago

think it should be :another

if you intended to include the colon insert it in this line which can then be added to the shell script

sed -i "s/anothing/another/g" DimensionalData.jl/test/plotrecipes.jl
spaette commented 1 week ago

This can be reopened if appropriate and an associated commit is to be pursued.