Commit 37f9ecaa authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

added package structure

parents
# The default ``config.py``
# flake8: noqa
def set_prefs(prefs):
"""This function is called before opening the project"""
# Specify which files and folders to ignore in the project.
# Changes to ignored resources are not added to the history and
# VCSs. Also they are not returned in `Project.get_files()`.
# Note that ``?`` and ``*`` match all characters but slashes.
# '*.pyc': matches 'test.pyc' and 'pkg/test.pyc'
# 'mod*.pyc': matches 'test/mod1.pyc' but not 'mod/1.pyc'
# '.svn': matches 'pkg/.svn' and all of its children
# 'build/*.o': matches 'build/lib.o' but not 'build/sub/lib.o'
# 'build//*.o': matches 'build/lib.o' and 'build/sub/lib.o'
prefs['ignored_resources'] = ['*.pyc', '*~', '.ropeproject',
'.hg', '.svn', '_svn', '.git', '.tox']
# Specifies which files should be considered python files. It is
# useful when you have scripts inside your project. Only files
# ending with ``.py`` are considered to be python files by
# default.
#prefs['python_files'] = ['*.py']
# Custom source folders: By default rope searches the project
# for finding source folders (folders that should be searched
# for finding modules). You can add paths to that list. Note
# that rope guesses project source folders correctly most of the
# time; use this if you have any problems.
# The folders should be relative to project root and use '/' for
# separating folders regardless of the platform rope is running on.
# 'src/my_source_folder' for instance.
#prefs.add('source_folders', 'src')
# You can extend python path for looking up modules
#prefs.add('python_path', '~/python/')
# Should rope save object information or not.
prefs['save_objectdb'] = True
prefs['compress_objectdb'] = False
# If `True`, rope analyzes each module when it is being saved.
prefs['automatic_soa'] = True
# The depth of calls to follow in static object analysis
prefs['soa_followed_calls'] = 0
# If `False` when running modules or unit tests "dynamic object
# analysis" is turned off. This makes them much faster.
prefs['perform_doa'] = True
# Rope can check the validity of its object DB when running.
prefs['validate_objectdb'] = True
# How many undos to hold?
prefs['max_history_items'] = 32
# Shows whether to save history across sessions.
prefs['save_history'] = True
prefs['compress_history'] = False
# Set the number spaces used for indenting. According to
# :PEP:`8`, it is best to use 4 spaces. Since most of rope's
# unit-tests use 4 spaces it is more reliable, too.
prefs['indent_size'] = 4
# Builtin and c-extension modules that are allowed to be imported
# and inspected by rope.
prefs['extension_modules'] = []
# Add all standard c-extensions to extension_modules list.
prefs['import_dynload_stdmods'] = True
# If `True` modules with syntax errors are considered to be empty.
# The default value is `False`; When `False` syntax errors raise
# `rope.base.exceptions.ModuleSyntaxError` exception.
prefs['ignore_syntax_errors'] = False
# If `True`, rope ignores unresolvable imports. Otherwise, they
# appear in the importing namespace.
prefs['ignore_bad_imports'] = False
# If `True`, rope will insert new module imports as
# `from <package> import <module>` by default.
prefs['prefer_module_from_imports'] = False
# If `True`, rope will transform a comma list of imports into
# multiple separate import statements when organizing
# imports.
prefs['split_imports'] = False
# If `True`, rope will sort imports alphabetically by module name
# instead of alphabetically by import statement, with from imports
# after normal imports.
prefs['sort_imports_alphabetically'] = False
def project_opened(project):
"""This function is called after opening the project"""
# Do whatever you like here!
This diff is collapsed.
{"type":"FeatureCollection","crs":{"type":"name","properties":{"name":"EPSG:4326"}},"properties":{"status":"PARTIAL","uuid":"376899fb-0dcd-4334-b625-1460db468cc9","simulation":{"startDate":1510567200000,"stopDate":1510578000000,"mode":"Normal","forecast":"NEMO","forwardCalculation":true,"amount":"100","amountUnit":"m3","oilclass":"Oil classes","substance":"Medium oils (100-1000 cSt)","fresh":true,"instantaneous":true,"uncertainty":false,"winddrag":"0.00","depth":"0","duration":"24","durationUnit":"hours"}},"features":[]}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
2017-11-13 10:00 26.9471 60.3559 0.0000
2017-11-13 10:15 26.9485 60.3557 0.0000
2017-11-13 10:30 26.9498 60.3556 0.0008
2017-11-13 10:45 26.9512 60.3555 0.0000
2017-11-13 11:00 26.9526 60.3553 0.0000
2017-11-13 11:15 26.9539 60.3552 0.0000
2017-11-13 11:30 26.9553 60.3551 0.0037
2017-11-13 11:45 26.9567 60.3549 0.0000
2017-11-13 12:00 26.9581 60.3548 0.0021
2017-11-13 12:15 26.9595 60.3546 0.0063
2017-11-13 12:30 26.9610 60.3543 0.0077
2017-11-13 12:45 26.9625 60.3541 0.0065
2017-11-13 13:00 26.9639 60.3539 0.0018
1
1.0
60.35612797806093 26.961650443838113
60.34804872455907 26.934164170849897
60.35773173384632 26.93584015405431
60.36245765251777 26.95838516721654
>
driftmodel=driftmodel.x
logfile=driftmodel.stdout_stderr
resulttimestep=900
domain=HELCOM
forcingtimestep=3600
CONTINUED_CASE
F
CHANGE_CENTER_POSITION
F
CHANGE_CENTER_POSITION_LAT
CHANGE_CENTER_POSITION_LON
FORECASTMETHOD
NEMO
OUTLETTYPE
AREA
FORWARDCALCULATION
T
STARTTIME
2017
11
13
10
00
ENDTIME
2017
11
13
13
00
CALCTYPE
Oil classes
SUBSTANCE
Medium oils (100-1000 cSt)
FRESH
T
EXTRA WIND DRAG (%)
0.00
NROFOUTLETPOINTS
4
OUTLETFILE
coordinates.dat
DEPTH
0
INSTANTANEOUS
T
AMOUNT
100
AMOUNTUNIT
m3
DURATION
24
DURATIONUNIT
hours
PRESCRIBEDCURRENT
F
UNCERTAINTY
F
CALCULATIONMODE
Normal
ISOPOINTOUTPUT
F
ISOPOINTS_DURING_SIMULATION
F
ISOLEVELFILE
isolevels.dat
NUMBER_OF_NEAREST_NEIGHBOURS
25
GENERATE DENSITY NETCDF-FILE
F
NETCDF FILE NAME
density.nc
OIL SPILL ID
NOT_USED
NETCDF DENSITY UNIT
ton/km2
NUMBER OF GRIDPOINTS ALONG THE LONGITUDE DIMENSION [max 500]
120
NUMBER OF GRIDPOINTS ALONG THE LATITUDE DIMENSION [max 300]
100
NUMBER OF GRIDPOINTS ALONG THE DEPTH DIMENSION [max 35]
4
This diff is collapsed.
{
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"properties": {
"uuid": "376899fb-0dcd-4334-b625-1460db468cc9",
"domain": "HELCOM",
"model": "NEMO",
"type": "oil",
"subtype": "instant",
"meanLng": 26.947907307344003,
"meanLat": 60.35525318853842,
"simulation": {
"startDate": 1510567200000,
"stopDate": 1510578000000,
"mode": "Normal",
"forecast": "NEMO",
"forwardCalculation": true,
"amount": "100",
"amountUnit": "m3",
"oilclass": "Oil classes",
"substance": "Medium oils (100-1000 cSt)",
"fresh": true,
"instantaneous": true,
"uncertainty": false,
"winddrag": "0.00",
"depth": "0",
"duration": "24",
"durationUnit": "hours"
},
"observation": []
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[26.961650443838113, 60.35612797806093],
[26.934164170849897, 60.34804872455907],
[26.93584015405431, 60.35773173384632],
[26.95838516721654, 60.36245765251777],
[26.961650443838113, 60.35612797806093]
]
]
}
}]
}
\ No newline at end of file
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><simulation><forecastMethod>NEMO</forecastMethod><outletType>AREA</outletType><forwardCalculation>true</forwardCalculation><start>2017-11-13 10:00:00</start><end>2017-11-13 13:00:00</end><calculationType>Oil classes</calculationType><substance>Medium oils (100-1000 cSt)</substance><fresh>true</fresh><winddrag>0.00</winddrag><prescribedCurrent>false</prescribedCurrent><outletPoints>4</outletPoints><depth>0</depth><instantaneous>true</instantaneous><amount>100</amount><amountUnit>m3</amountUnit><duration>24</duration><durationUnit>hours</durationUnit><uncertainty>false</uncertainty><calculationMode>Normal</calculationMode><isoPointOutput>false</isoPointOutput><isoPointsDuringSimulation>false</isoPointsDuringSimulation><isoLevelFile>isolevels.dat</isoLevelFile><isoNumberOfNearestNeighbours>25</isoNumberOfNearestNeighbours><outputNetCDF>false</outputNetCDF><netCDFFile>density.nc</netCDFFile><oilSpillId>NOT_USED</oilSpillId><netCDFDensityUnit>ton/km2</netCDFDensityUnit><gridpointsLon>120</gridpointsLon><gridpointsLat>100</gridpointsLat><gridpointsDepth>4</gridpointsDepth><modelDescription>Unknown model</modelDescription><modelTimestep>10800000</modelTimestep></simulation>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
from __init__ import run
run()
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment