mirror of
				https://github.com/Brandon-Rozek/matmod.git
				synced 2025-11-03 03:11:12 +00:00 
			
		
		
		
	Code cleanup
This commit is contained in:
		
							parent
							
								
									6b4d5828c8
								
							
						
					
					
						commit
						6bb863da97
					
				
					 3 changed files with 57 additions and 33 deletions
				
			
		
							
								
								
									
										5
									
								
								model.py
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								model.py
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -13,7 +13,8 @@ from itertools import combinations_with_replacement, permutations, product
 | 
			
		|||
from typing import Dict, List, Set, Tuple
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
__all__ = ['ModelValue', 'ModelFunction', 'Model']
 | 
			
		||||
__all__ = ['ModelValue', 'ModelFunction', 'Model', 'Interpretation']
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class ModelValue:
 | 
			
		||||
    def __init__(self, name):
 | 
			
		||||
| 
						 | 
				
			
			@ -63,6 +64,8 @@ class ModelFunction:
 | 
			
		|||
    def __call__(self, *args):
 | 
			
		||||
        return self.mapping[args]
 | 
			
		||||
 | 
			
		||||
Interpretation = Dict[Operation, ModelFunction]
 | 
			
		||||
 | 
			
		||||
class Model:
 | 
			
		||||
    def __init__(
 | 
			
		||||
            self,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue