diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml new file mode 100644 index 0000000..91b8d44 --- /dev/null +++ b/.idea/dataSources.xml @@ -0,0 +1,17 @@ + + + + + sqlite.xerial + true + org.sqlite.JDBC + jdbc:sqlite:D:\111\office\ZHLduijie\6\UAV-CO2\web_api_data\outputs\gasflux.db + $ProjectFileDir$ + + + file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/Xerial SQLiteJDBC/3.51.1/org/xerial/sqlite-jdbc/3.51.1.0/sqlite-jdbc-3.51.1.0.jar + + + + + \ No newline at end of file diff --git a/src/gasflux/gas.py b/src/gasflux/gas.py index 4e5620f..280e3ca 100644 --- a/src/gasflux/gas.py +++ b/src/gasflux/gas.py @@ -33,7 +33,7 @@ def gas_density(local_pressure: float, local_temperature_celsius: float, gas: st local_volume = ( gas_variables["standard_molar_volume"] * (gas_variables["standard_pressure"] / local_pressure) - * ((local_temperature_kelvin + gas_variables["standard_temperature"]) / gas_variables["standard_temperature"]) + * (local_temperature_kelvin / gas_variables["standard_temperature"]) ) # m3â‹…mol-1 return mass(gas) / 1000 / local_volume