-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into extended_data
- Loading branch information
Showing
17 changed files
with
170 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"files.associations": { | ||
"dictionaryFile.C": "cpp" | ||
}, | ||
"python.testing.pytestArgs": [ | ||
"tests" | ||
], | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from .pyvnt.DictionaryElement.foamDS import * | ||
from .pyvnt.DictionaryElement.keyData import * | ||
from .pyvnt.Reference.basic import * | ||
from pyvnt import * | ||
|
||
prop1 = EnumProp('val1', items={'PCG', 'PBiCG', 'PBiCGStab'}, default='PCG') | ||
|
||
key1 = KeyData('solver', prop1) | ||
|
||
head = Foam(name="test_head", children = [key1]) | ||
head = Foam("test_head", None, None, key1) | ||
|
||
head.dispTree() | ||
# head.dispTree() | ||
|
||
showTree(head) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from pyvnt.DictionaryElement import * | ||
|
||
def writeTo(root, path): | ||
''' | ||
Function to write the dictionary object to the file | ||
Parameters: | ||
Foam: Dictionary object to be written | ||
path: Path to the file where the dictionary object is to be written | ||
''' | ||
with open(path, "w") as file: | ||
root.writeOut(file) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
from pyvnt.Reference.basic import * | ||
from pyvnt.DictionaryElement.foamDS import * | ||
from pyvnt.DictionaryElement.showTree import * | ||
from pyvnt.DictionaryElement.keyData import * | ||
from pyvnt.Converter.Writer.writer import * | ||
from pyvnt.utils import * | ||
from pyvnt.utils.showTree import * |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
|
||
def makeIndent(file, indent: int): | ||
for i in range(indent): | ||
file.write("\t") |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,15 @@ | |
author="", | ||
author_email="<[email protected]>", | ||
description=DESCRIPTION, | ||
packages_dir={"": "pyvnt"}, | ||
packages=find_packages(exclude=['test']), | ||
# packages_dir={"": "pyvnt"}, | ||
# data_files=[('Shared_Objects', [ | ||
# './pyvnt/Converter/cpp_src/dictionaryFile/lib/dictionaryFile.so', | ||
# './pyvnt/Converter/cpp_src/dictionaryFileIterator/lib/dictionaryFileIterator.so' | ||
# ])], | ||
packages=find_packages(include=['pyvnt', 'pyvnt.*']), | ||
# py_modules=['pyvnt'], | ||
# include_package_data=True, | ||
# package_data={'': ['./pyvnt/Converter/cpp_src/dictionaryFile/lib/dictionaryFile.so', './pyvnt/Converter/cpp_src/dictionaryFileIterator/lib/dictionaryFileIterator.so']}, | ||
install_requires=['anytree', 'dataclasses'], | ||
keywords=['python'], | ||
classifiers=[ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
test_head | ||
{ | ||
test_child | ||
{ | ||
test_child2 | ||
{ | ||
solver PCG PBiCG; | ||
} | ||
|
||
test_child3 | ||
{ | ||
solver PCG PBiCG; | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters