Skip to content

Commit

Permalink
New release version, update readme, remove cols from trading load
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-gorman committed May 24, 2021
1 parent c1ea130 commit 85e9ebe
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ nemosis/build/gui/gui.exe.manifest
nemosis/build/gui/base_library.zip
env/*
nemosis/raw_aemo_data/*
NEMOSIS.exe
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Dynamic tables contain a datetime column that allows NEMOSIS to filter their con

To learn more about each dynamic table visit the [wiki](https://github.com/UNSW-CEEM/NEMOSIS/wiki).

You can view the static tables available by printing the NEMOSIS default settings.
You can view the dynamic tables available by printing the NEMOSIS default settings.

```python
from nemosis import defaults
Expand Down Expand Up @@ -108,8 +108,8 @@ To return only a subset of a particular table's columns, use the `select_columns
```python
from nemosis import dynamic_data_compiler

dynamic_data_compiler(start_time, end_time, table, raw_data_cache,
select_columns=['REGIONID', 'SETTLEMENTDATE', 'RRP'])
price_data = dynamic_data_compiler(start_time, end_time, table, raw_data_cache,
select_columns=['REGIONID', 'SETTLEMENTDATE', 'RRP'])
```

To see what columns a table has, you can inspect NEMOSIS' defaults.
Expand All @@ -128,15 +128,15 @@ In the example below, the table will be filtered to only return rows where `REGI
```python
from nemosis import dynamic_data_compiler

dynamic_data_compiler(start_time, end_time, table, raw_data_cache, filter_cols=['REGIONID'], filter_values=(['SA1'],))
price_data = dynamic_data_compiler(start_time, end_time, table, raw_data_cache, filter_cols=['REGIONID'], filter_values=(['SA1'],))
```

Several filters can be applied simultaneously. A common filter is to extract pricing data excluding any physical intervention dispatch runs (`INTERVENTION == 0` is the appropriate filter, see [here](https://github.com/UNSW-CEEM/NEMOSIS/wiki/Column-Summary#intervention)). Below is an example of filtering to get data for Gladstone Unit 1 and Hornsdale Wind Farm 2 excluding any physical dispatch runs:

```python
from nemosis import dynamic_data_compiler

dynamic_data_compiler(start_time, end_time, 'DISPATCHLOAD', raw_data_cache, filter_cols=['DUID', 'INTERVENTION'], filter_values=(['GSTONE1', 'HDWF2'], [0]))
unit_dispatch_data = dynamic_data_compiler(start_time, end_time, 'DISPATCHLOAD', raw_data_cache, filter_cols=['DUID', 'INTERVENTION'], filter_values=(['GSTONE1', 'HDWF2'], [0]))
```

###### Caching options
Expand Down Expand Up @@ -170,7 +170,7 @@ The example below downloads parquet data into the cache.
```python
from nemosis import cache_compiler

price_data = cache_compiler(start_time, end_time, table, raw_data_cache, fformat='parquet')
cache_compiler(start_time, end_time, table, raw_data_cache, fformat='parquet')
```

### Data from static tables
Expand Down
2 changes: 1 addition & 1 deletion nemosis/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
'LOWER60SECLOCALDISPATCH', 'LOWER6SECLOCALDISPATCH', 'RAISE5MINLOCALDISPATCH',
'RAISE60SECLOCALDISPATCH', 'RAISE6SECLOCALDISPATCH', 'LOWERREGLOCALDISPATCH',
'RAISEREGLOCALDISPATCH', 'INITIALSUPPLY', 'CLEAREDSUPPLY', 'TOTALINTERMITTENTGENERATION',
'DEMAND_AND_NONSCHEDGEN', 'UIGF', 'SEMISCHEDULE_CLEAREDMW', 'SEMISCHEDULE_COMPLIANCEMW'],
'DEMAND_AND_NONSCHEDGEN', 'UIGF'],

'TRADINGINTERCONNECT': ['SETTLEMENTDATE', 'INTERCONNECTORID', 'MWFLOW', 'METEREDMWFLOW', 'MWLOSSES'],

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

setuptools.setup(
name="nemosis",
version="1.4.0",
author="Nicholas Gorman",
version="2.0.1",
author="Nicholas Gorman, Abhijith Prakash",
author_email="n.gorman305@gmail.com",
description="A tool for accessing AEMO data.",
long_description="A tool for accessing AEMO data.",
Expand Down

0 comments on commit 85e9ebe

Please sign in to comment.