Skip to content

Commit 4746ede

Browse files
authored
Operator Docs (#26)
* initial attempt at incorporating dpf html * add light coloring for menu when webpage width drops past half page * doc reorg * added to user_guide
1 parent 984a926 commit 4746ede

File tree

20 files changed

+2873
-22
lines changed

20 files changed

+2873
-22
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# DPF - Ansys Data Processing Framework
22

3+
[![PyPI version](https://badge.fury.io/py/ansys-dpf-core.svg)](https://badge.fury.io/py/ansys-dpf-core)
4+
5+
[![Build Status](https://dev.azure.com/pyansys/pyansys/_apis/build/status/pyansys.DPF-Core?branchName=docs%2Foperators)](https://dev.azure.com/pyansys/pyansys/_build/latest?definitionId=2&branchName=docs%2Foperators)
6+
37
The Data Processing Framework (DPF) is designed to provide numerical
48
simulation users/engineers with a toolbox for accessing and
59
transforming simulation data. DPF can access data from solver result

ansys/dpf/core/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import inspect
21
import os
32
import socket
43

ansys/dpf/core/available_result.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ def __init__(self, availableresult):
1616
self._message = availableresult
1717

1818
def __str__(self):
19-
2019
txt = self.name+'\n' +\
2120
'Operator name: "%s"\n' % self.operator_name +\
2221
'Number of components: %d\n' % self.n_components +\

ansys/dpf/core/inputs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _update_doc_str(self, docstr, class_name):
7878
self.__class__ = child_class
7979

8080
def __str__(self):
81-
docstr = '\033[1m' + self._spec.name + '\033[0m : '
81+
docstr = self._spec.name + ' : '
8282
type_info = self._python_expected_types.copy()
8383
if self._spec.optional:
8484
type_info += ['optional']

ansys/dpf/core/outputs.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ def get_data(self):
1414
"""Returns this output of this operator"""
1515
type_output = self._spec.type_names[0]
1616
if type_output == 'abstract_meshed_region':
17-
type_output= 'meshed_region'
18-
17+
type_output = 'meshed_region'
18+
1919
elif type_output == "fields_container":
20-
type_output = ['collection','field']
20+
type_output = ['collection', 'field']
2121

2222
return self._operator.get_output(self._pin, type_output)
2323

2424
def __call__(self):
2525
return self.get_data()
2626

27-
def __str__(self):
28-
docstr = '\033[1m' + self._spec.name+'\033[0m'
27+
def __str__(self):
28+
docstr = self._spec.name
2929
if self._spec.optional:
3030
docstr += " (optional)"
3131
docstr += ", expects types:"+'\n'
32-
for types in self._python_expected_types:
32+
for types in self._python_expected_types:
3333
docstr += " -" + types + '\n'
3434
if self._spec.document:
3535
docstr += "help: " + self._spec.document + '\n'

docs/source/_static/css/ansys.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ h1, h2, h3, h4, h5, h6 {
1414
font-family: 'Source Sans Pro', sans-serif;
1515
}
1616

17+
.navbar-toggler-icon {
18+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
19+
}
1720

1821
.sig-prename {
1922
color: var(--ansysBronze);

0 commit comments

Comments
 (0)