Skip to content

Commit

Permalink
refactor analyze module and restructure databases
Browse files Browse the repository at this point in the history
  • Loading branch information
marcantondahmen committed Dec 9, 2021
1 parent 98c5fd8 commit 157a54c
Show file tree
Hide file tree
Showing 12 changed files with 456 additions and 330 deletions.
2 changes: 1 addition & 1 deletion cli/run/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
config = revitron.AttrDict(json.load(file))
file.close()

analyzer = revitron.ModelAnalyzer(config.database, config.providers, config.model)
analyzer = revitron.ModelAnalyzer(config)
analyzer.snapshot()
6 changes: 5 additions & 1 deletion docs/source/_templates/package.rst_t
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@
{%- if is_namespace %}
{{- [pkgname, "namespace"] | join(" ") | e | heading }}
{% else %}
{{- "Developer Guide" | e | heading }}
{%- if pkgname == "revitron" %}
{{- "Developer Guide" | e | heading }}
{% else %}
{{- pkgname | e | heading }}
{% endif %}
{% endif %}

{%- if modulefirst and not is_namespace %}
Expand Down
20 changes: 20 additions & 0 deletions docs/source/analyze.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Model Analytics
===============

Revitron ships with a small CLI wrapper that uses the pyRevit CLI in the background in order to
collect model analytics using some kind of task scheduler such as the *Windows Task Scheduler*.

.. code-block:: python
revitron analyse "path/to/config.json"
Setup
-----

Run setup to add to path ...

Configuration
-------------

use config file

9 changes: 9 additions & 0 deletions docs/source/revitron.analyze.providers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
revitron.analyze.providers
==========================

.. automodule:: revitron.analyze.providers
:members:
:undoc-members:
:inherited-members:
:show-inheritance:
:autosummary:
12 changes: 10 additions & 2 deletions docs/source/revitron.analyze.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
revitron.analyze
================


.. automodule:: revitron.analyze
:members:
:undoc-members:
:inherited-members:
:show-inheritance:
:autosummary:

Submodules
----------

.. toctree::
:maxdepth: 4

revitron.analyze.providers
revitron.analyze.storage
9 changes: 9 additions & 0 deletions docs/source/revitron.analyze.storage.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
revitron.analyze.storage
========================

.. automodule:: revitron.analyze.storage
:members:
:undoc-members:
:inherited-members:
:show-inheritance:
:autosummary:
10 changes: 9 additions & 1 deletion docs/source/revitron.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
Developer Guide
===============


.. automodule:: revitron
:members:
:undoc-members:
:show-inheritance:

Subpackages
-----------

.. toctree::
:maxdepth: 4

revitron.analyze

Submodules
----------

.. toctree::
:maxdepth: 4

revitron.analyze
revitron.boundingbox
revitron.category
revitron.create
Expand Down
2 changes: 1 addition & 1 deletion revitron/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
import pyrevit
import os

from revitron.analyze import *
from revitron._utils import *
from revitron.analyze import *
from revitron.boundingbox import *
from revitron.element import *
from revitron.excel import *
Expand Down
Loading

0 comments on commit 157a54c

Please sign in to comment.