Skip to content

Commit 976d79c

Browse files
committed
Alpha v0.2.0 build
1 parent 40b3ce0 commit 976d79c

File tree

4 files changed

+29
-35
lines changed

4 files changed

+29
-35
lines changed

build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
icon = r"icon\\app_colored_bottle.ico"
1010

11-
version = "0.1.1"
11+
version = "0.2.0"
1212

1313
executables = [Executable("PetroAlchemy.py", base=base, icon=icon,)]
1414

@@ -44,10 +44,10 @@
4444
include_files = [
4545
os.path.join(PYTHON_INSTALL_DIR, "DLLs", "tk86t.dll"),
4646
os.path.join(PYTHON_INSTALL_DIR, "DLLs", "tcl86t.dll"),
47-
icon,
47+
r"icon",
4848
r"data_example",
4949
r"app_settings.json",
50-
r"icon",
50+
r"themes",
5151
]
5252

5353
setup(

dist/PetroAlchemy-0.1.0-amd64.msi

-81.7 MB
Binary file not shown.

docs/alpha_tutorial.rst

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ How to get PetroAlchemy
5656

5757
The first release of the package is available in Alpha phase. The
5858
easiest way to get the software if you are using a Windows 64-bit
59-
machine is to download the Windows installer from the `Alpha
60-
Release <https://github.com/mwentzWW/PetroAlchemy/releases>`__ page. If
59+
machine is to download the Windows installer from the `README
60+
<https://github.com/mwentzWW/PetroAlchemy>`__ installation section. If
6161
you do not know if you are running 32-bit or 64-bit then type *about
6262
your pc* in the Windows search bar and it should list it under **System
6363
type**.
6464

6565
The Windows installer will ask you where to store the application and
66-
the associated files. Once the installer is finished you should be able
66+
the associated files. Once the installer is finished there will be a *PetroAlchemy* shortcut on your desktop. You should also be able
6767
to search for PetroAlchemy or find the PetroAlchemy.exe file wherever
6868
you saved it and run the application.
6969

@@ -74,13 +74,7 @@ with that I would appreciate the input.
7474

7575
The alternative from using a Windows or Linux installer would be to
7676
clone the github repository and run the python code yourself if you
77-
already are comfortable with doing that. Taking this approach will hit a
78-
roadblock in that a small feature of the application uses my EIA data
79-
API key and module to pull the most recent EIA spot prices for WTI and
80-
NYMEX Gas. I plan on fixing this API secret issue soon, but in the
81-
meantime if you are cloning the repo I can send you the EIA module where
82-
you can use your own API key or you can just remove the EIA module from
83-
the python code.
77+
already are comfortable with doing that.
8478

8579
How to import data
8680
------------------
@@ -93,9 +87,9 @@ Currently the production file **must** use the below column format:
9387

9488
.. image:: img/data_import_example.png
9589

96-
The column names must be Well Name”, “Date”, “Oil, and Gas. If your
90+
The column names must be *Well Name*, *Date*, *Oil*, and *Gas*. If your
9791
data is not set up this way you will have an import error in the
98-
application.
92+
application. You can import multiple wells at once if your file has more than one well in the *Well Name* column of your import file.
9993

10094
Once the application is running you can import your data by clicking the
10195
**Import Well Data** button on the home page, or by clicking File >
@@ -106,14 +100,14 @@ on the home page.
106100
How to fit decline curves
107101
-------------------------
108102

103+
You can select which well to analyze by using the dropdown box on the home page. The current well selected will appear in the status bar in blue at the bottom of the screen. You can also go to the next well by pressing **ctrl+j**, and go to the previous well by pressing **ctrl+f**.
104+
109105
The selected well’s production will be shown on the **Production Plot**
110106
tab. Click the tab to view the data you just imported. On the left side
111-
of the screen you will see all of the decline curve parameters for Arps
112-
Hyperbolic Decline. This tool is only useful if you have a reasonable
107+
of the screen you will see all of the decline curve parameters for Arps Decline. PetroAlchemy will use either an exponential, hyperbolic, or harmonic decline depending on what *B Factor* is selected. PetroAlchemy will automatically switch to exponential terminal decline based on the *minimim decline* selected. This tool is only useful if you have a reasonable
113108
understanding of how decline curves are constructed. For a refresher on
114109
decline curves and the equations used in PetroAlchemy refer to the
115-
*References* section of the
116-
`README <https://github.com/mwentzWW/PetroAlchemy>`__ on github.
110+
`References <https://petroalchemy.readthedocs.io/en/latest/references.html>`__.
117111

118112
PetroAlchemy models one decline curve or forecast at a time. First
119113
select the phase to model (Oil or Gas), the Date you want the forecast
@@ -127,38 +121,33 @@ Once your parameters have been filled in for a first look type in a
127121
special name for the curve linked to the phase you have selected. It
128122
will save the curve with the default name if you do not provide one.
129123
Select *Create/Update Decline Curve* to save the curve model based on
130-
the parameters and show it on the plot. Once a curve is created you can
131-
select it from the *Enter/Select Curve Name* dropdown to either remove
132-
it from the plot (but not delete it), plot it to the screen if not
133-
already shown, or delete the curve from the application. If you want to
134-
modify a curve you have already made instead of making a new curve every
135-
time you change the parameters, then select the curve name from the
136-
dropdown box, modify any parameters, and select *Create/Update Decline
124+
the parameters and show it on the plot. Once a curve exists you have four options represented as buttons:
125+
126+
#. **Create/Update Decline Curve:** if a curve already exists and is selected in the **Enter/Select Curve Name** box, this button will update the curve parameters and plot it to the graph
127+
#. **Remove Decline Curves:** removes the decline curves from the plot, but **does not** delete them. This button is to clear the plot if too many curves are plotted.
128+
#. **Plot Selected Curve:** this will add the selected curve in the **Enter/Select Curve Name** box to the plot.
129+
#. **Delete Selected Curve:** this will **delete** the selected curve in the **Enter/Select Curve Name** box from the application.
130+
131+
If you want to modify a curve you have already made instead of making a new curve every time you change the parameters, then select the curve name from the dropdown box, modify any parameters, and select *Create/Update Decline
137132
Curve* again to update the named curve.
138133

139134
.. image:: img/forecast_plot_example.png
140135

141136
How to run financials for a well using decline curves
142137
-----------------------------------------------------
143138

144-
Once a curve has been saved for an oil and gas phase a cashflow using
139+
Once a curve has been saved for an oil and gas phase, a cashflow using
145140
the forecasts can be created. Select the *Cashflow Inputs* tab to see
146141
the economic input options. Any curve saved can be selected to be used
147142
for the cashflow using the dropdowns. The key inputs for any petroleum
148143
evaluation cash flow can be entered. If any of the terms are unfamiliar
149144
look back to the references previously provided.
150145

151-
In the Alpha release the prices, operating expense (OPEX), and capital
146+
In this Alpha release the prices, operating expense (OPEX), and capital
152147
expense (CAPEX) are static and can not change by month. The prices and
153148
OPEX will be used for every month’s calculation of income. The CAPEX is
154149
applied in the first month as one lump sum.
155150

156-
The default oil and gas prices are the most recent spot prices for WTI
157-
and NYMEX gas from EIA, which typically lag about 5 days from current.
158-
This is handy to use at current market spot prices for scenarios, but
159-
more advanced pricing features are planned for future releases to
160-
include strip prices and the ability to import your own prices by month.
161-
162151
Once you have changed the Cashflow Input parameters however you like,
163152
select the **Run Financials** button on the bottom right. The Cashflow
164153
Run Outputs will be filled in with the summary results for a high level
@@ -179,6 +168,11 @@ You can save the entire cashflow output run to excel by selecting **File
179168
> Save Cashflow**. Once exported to excel it is easy to use a pivot
180169
table to change or alter the data in how you would like to see it.
181170

171+
How to get EIA front month futures prices
172+
-----------------------------------------
173+
174+
If you want PetroAlchemy to automatically use the WTI and Natural Gas futures front month contract prices, then you need to get a free API key from eia.gov `here <https://www.eia.gov/opendata/register.php/>`__. Once you register and receive an API key from eia.gov, find your **app_settings.json** file which should be in your **PetroAlchemy** folder you installed the program in. Open the json file and replace **EIA_API_KEY** with your API key eia.gov emailed you. Make sure your api key is surrounded by quotes in the json file. Now PetroAlchemy will pull the front month prices and place them as the oil and gas prices on the **Cashflow Input** tab.
175+
182176
Looking forward
183177
---------------
184178

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
author = "Michael Wentz"
2424

2525
# The full version, including alpha/beta/rc tags
26-
release = "v0.1.0"
26+
release = "v0.2.0"
2727

2828

2929
# -- General configuration ---------------------------------------------------

0 commit comments

Comments
 (0)