mxgmn / MarkovJunior

Probabilistic language based on pattern matching and constraint propagation, 153 examples
MIT License
7.49k stars 316 forks source link

Symmetry issue (or missunderstanding) #54

Open TieSKey opened 2 years ago

TieSKey commented 2 years ago

When running this sequence with a size of say, 24x24x5:

<sequence values="WRBUPYA" origin="True">
            <one in="*****/*****/*****/*****/***** *****/*****/*****/*****/***** *****/*****/**R**/*****/*****"
                 out="*****/*****/**R**/*****/***** *****/*****/**R**/*****/***** *****/*****/**R**/*****/*****" symetry="()"/>
</sequence>

I get the "origin" voxel replaced by a 3 voxel bar in any of all the possible directions. Shouldn't empty symmetry mean a literal match for the rule template? I only what a vertical 3 voxel pillar.

mxgmn commented 2 years ago

Because it spells "symmetry".

Todo for myself: check for non-keyword attributes in xml.

TieSKey commented 2 years ago

Omg, hahahhaahahahhaha yeah, it's friday.... thx for the quick answer. Now I can enjoy my weekend :P

mxgmn commented 2 years ago

No problem. Shouldn't close the issue though, I plan to add checks for non-keyword attributes and elements.