Floodmodeller-api

Latest version: v0.4.4

Safety actively analyzes 641872 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.4.4

What's Changed
* update reqs by joe-pierce in https://github.com/People-Places-Solutions/floodmodeller-api/pull/111
* Bump tqdm from 4.66.2 to 4.66.3 by dependabot in https://github.com/People-Places-Solutions/floodmodeller-api/pull/110
* decorator for exception handling by scleakey in https://github.com/People-Places-Solutions/floodmodeller-api/pull/109
* 113 implement cross section conveyance calculation by joe-pierce in https://github.com/People-Places-Solutions/floodmodeller-api/pull/115


**Full Changelog**: https://github.com/People-Places-Solutions/floodmodeller-api/compare/v0.4.3...v0.4.4

0.4.3

What's Changed
* pyproject.toml & ruff by scleakey in https://github.com/People-Places-Solutions/floodmodeller-api/pull/91
* Bump black from 23.9.1 to 24.3.0 by dependabot in https://github.com/People-Places-Solutions/floodmodeller-api/pull/99
* TUFLOW HPC linked models in LF1 by scleakey in https://github.com/People-Places-Solutions/floodmodeller-api/pull/101
* ZZN binaries by scleakey in https://github.com/People-Places-Solutions/floodmodeller-api/pull/102
* 93 tofrom json methods by VicCabPo in https://github.com/People-Places-Solutions/floodmodeller-api/pull/98
* DAT insert many by scleakey in https://github.com/People-Places-Solutions/floodmodeller-api/pull/103
* regex test fix by scleakey in https://github.com/People-Places-Solutions/floodmodeller-api/pull/105
* update button to be able to resume codespace by scleakey in https://github.com/People-Places-Solutions/floodmodeller-api/pull/106
* prep pipelines by scleakey in https://github.com/People-Places-Solutions/floodmodeller-api/pull/107
* error message for LD_LIBRARY_PATH by scleakey in https://github.com/People-Places-Solutions/floodmodeller-api/pull/108
* reviews and merging by joe-pierce

New Contributors
* dependabot made their first contribution in https://github.com/People-Places-Solutions/floodmodeller-api/pull/99
* VicCabPo made their first contribution in https://github.com/People-Places-Solutions/floodmodeller-api/pull/98

**Full Changelog**: https://github.com/People-Places-Solutions/floodmodeller-api/compare/v0.4.2.post1...v0.4.3

0.4.2.post1

Minor fix to address issue when writing generated HTBDY units.

0.4.2

New features
- Integration with GitHub codespace
- Flood Modeller API Toolbox - run and develop custom tools that use the API

Updates
- Lots of improvements behind the scenes
- Support for rules and varrules
- Supports latest Flood Modeller 2D XML schema
- Full support for CONDUIT units
- Unsupported units now included in IED class
- COMMENT unit class added
- WEIR unit class added

Bug fixes
- Fix missing default general parameters in DAT class (61 )
- Fix XML2D multi-value key issue (52 )

Contributors
- [scleakey](scleakey)
- [BRgit7](BRgit7)
- [r-gilchrist](r-gilchrist)
- [daisy-jacobs](daisy-jacobs)
- [matthewjwhittle-jacobs](matthewjwhittle-jacobs)
- [philcrawford](philcrawford)

0.4.1.post1

0.4.1

What's new in 0.4.1 (March 2023)

This page details the changes for version 0.4.1 of Flood Modeller Python API

New features
--------------
- Add/remove units from 1D networks
- Add/remove elements from 2D models
- Simulate method added to XML2D
- Automatic backups

Updates
--------------
- Event Data attributes in IEF files are now treated as a dictionary object as opposed to
a list. This allows for each event data to have an associated title which is defined in
the IEF file as a comment before the event data attribute. The dictionary keys represent
the titles, and the values represent the event data paths. An example would look like
this:
python
ief = IEF("path/to/file.ief")
ief.eventdata = {
'MainInflow' : 'Q100.IED',
'TribInflow' : 'Q100_trib.IED',
'TidalBoundary' : 'T100_DSBDY.IED'
}

This would then write out the following lines in the IEF file::

;MainInflow
EventData=Q100.IED
;TribInflow
EventData=Q100_trib.IED
;TidalBoundary
EventData=T100_DSBDY.IED


> :warning: Please note, this introduces a change which is incompatible with previous versions of
the API in how event data in IEF files is handled. Any existing code that treats eventdata
as a list will need to be updated in order to run this version.


- Find and return the next unit in reach with ``.next()`` function::
python
dat = DAT('some_network.dat')
some_unit = dat.sections['some_unit_name']
dat.next(some_unit)

- Find previous unit in reach with ``.prev()`` function::
python
dat = DAT('some_network.dat')
dat.prev(dat.strucutre['structure_name'])

- Improved test module
- CRUMP Unit Class added
- FLAT_V_WEIR Unit Class added
- INTERPOLATE Unit Class added
- REPLICATE Unit Class added
- OUTFALL Unit Class added
- UNSUPPORTED Unit Class added

Bug fixes
--------------
- Addressed 'FutureWarning' raised by lf_helpers module (27)
- Addressed Iteritems > items: futurewarning (30)




v.0.4.0

What's new in 0.4.0 (September 2022)

This page details the changes for version 0.4.0 of Flood Modeller Python API

New features
--------------
- 2D model support (XML2D Class): Read and edit Flood Modeller 2D model xml files
- 1D & 2D log file support (LF1 & LF2 Classes): Read and analyse simulation logs and
diagnostics

Updates
--------------
- Updated methods for testing equivalence between Flood Modeller class instances. Two
instances of the same class can now be tested using ``==`` to check whether they are
equivalent. In addition, a detailed breakdown of any differences can be found using
the ``.diff()`` method:
python
dat_a = DAT('some_network.dat')
dat_b = DAT('another_similar_network.dat')

if dat_a == dat_b: returns True/False
print('Files are equivalent')
else:
print('Files not equivalent')

dat_a.diff(dat_b) prints a list of differences to terminal

- RNWEIR Unit Class added (Broad Crested Weir)


Bug fixes
--------------
- Fix issue that occured in IEF class if any values contained '=' in the value, for
example within a flowtimeprofile line.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.