Skip to content

Commit

Permalink
Update PI-DAS server and issue warning in README
Browse files Browse the repository at this point in the history
  • Loading branch information
einarsi committed Apr 2, 2020
1 parent 39bde84 commit 461fd99
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
16 changes: 16 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# 0.2
* Major rewrite to accommodate for other types of connections than ODBC in the future.
* Breaking change: It is now necessary to specify imstype when initiating a client.
* Updated to new DAS server address.
* Forced keep_tz=False to suppress FutureWarning in Pandas >= 0.24
* Fixed reading of digital states from PI.
* Added get_units() and get_descriptions() methods to fetch engineering units and description for
specified tags.
* Enabled tag search by description.
* pyims.__version__ can be used to check package version.

# 0.0.8
* Improved documentation
* Added commonly requested documentation, including docstring, for specifying query method for
read_tags.

# 0.0.7
* Fixed bug where timezone was fixed to Europe/Oslo
* Discovered that Pandas 0.23 is required. 0.22 causes a weird timezone bug during DST folds when
Expand Down
2 changes: 1 addition & 1 deletion pyims/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .clients import IMSClient
from .odbc_handlers import list_aspen_servers, \
list_pi_servers
from .version import __version__
from .version import __version__
5 changes: 4 additions & 1 deletion pyims/odbc_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,10 @@ def __init__(self, host, port, options={}):
self.cursor = None
self._max_rows = options.get('max_rows', 100000)
# TODO: Find default das_server under HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\PISystem\Analytics\InstallData/AFServer
self._das_server = options.get('das_server', 'ST-W4189.statoil.net')
# It seems that is actually not possible anymore.
self._das_server = options.get('das_server', 'ws3099.statoil.net')

#print(self._das_server)

@staticmethod
def generate_connection_string(host, port, das_server):
Expand Down
2 changes: 1 addition & 1 deletion pyims/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.1.2-dev'
__version__ = '0.2'
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ pandas>=0.23
tables
pyodbc
git+https://github.com/dcbark01/PI-Web-API-Client-Python.git
requests_ntlm # Required for PI-Web-API-Client-Python
requests_ntlm # Required for PI-Web-API-Client-Python

0 comments on commit 461fd99

Please sign in to comment.